.background-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #000;
}

.main-title {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    height: 100px;
}

#backgroundVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(150px);
    opacity: 0.6;
}

.background-video-wrapper::before { /* vinjette over video on backgrnd */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        circle, 
        rgba(0, 0, 0, 0.4) 40%, /* center point (lighter) */
        rgba(0, 0, 0, 0.7) 70%, /* slowly fading at 70% from center */
        rgba(0, 0, 0, 1) 100% /* heavy darking */
    );
    z-index: 1; 
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #f0f0f0;
    background-color: #000;
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.cta-text {
    font-size: 3em;
    text-align: center;
    margin-top: 40px;
    padding-right: 30px;
    padding-left: 30px;
    color: #dbdbdb;
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}


.selection-screen {
    display: flex;
    flex-direction: column; /* vertical */
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    color: #f0f0f0;
    background-color: #000;
    flex-wrap: wrap;
    border-width: 1px;
    border-color: #dbdbdb;
}

.video-option {
    width: 200px;
    height: 70px;
    margin: 0 20px;
    padding-bottom: 40px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-mask {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8em; /* For PC */
    font-weight: bold;
    color: transparent;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    -webkit-background-clip: text; /* clipping bckgrnd */
    background-clip: text;
    background-size: cover;
    transition: transform 0.15s ease;
}

#videoOption1 .text-mask {
    background-image: url('assets/img/video1.jpg');
}

#videoOption2 .text-mask {
    background-image: url('assets/img/video2.png');
}

#videoOption3 .text-mask {
    background-image: url('assets/img/video3.jpg');
}

/* Эффект при наведении */
.video-option:hover .text-mask {
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

/* 768px */
@media (max-width: 768px) { /* for iPads */
    .cta-text {
        font-size: 2.5em;
    }

    .text-mask {
        font-size: 2em;
    }

    .video-option {
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
        height: 70px;
    }

    .selection-screen {
        flex-direction: column;
        transition: 0.3s ease;
    }
}

/* 480px */
@media (max-width: 480px) { /* for cellphones */
    .cta-text {
        font-size: 2em;
    }

    .text-mask {
        font-size: 1.5em;
    }

    .video-option {
        margin: 10px 0;
        width: 100%;
        max-width: 250px;
        height: 50px;
    }
}

/* Style of spinna */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease infinite;
    z-index: 2;
}

/* Rotating animation */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* hiding spinner */
.hidden {
    display: none;
}


#backButton {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background-color: #00000000;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.main-border {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.play-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 10em;
    color:rgba(223, 223, 223, 0.377);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.play-pause-overlay.visible {
    opacity: 1;
    transition: opacity 0.15s ease;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.controls.visible {
    opacity: 1;
}

.icon {
    width: 1em;
    height: 1em;
    object-fit: cover;
}


.icon-black {
    width: 1em;
    height: 1em;
    object-fit: cover;
    /* border: none ;
    background: none;
    background-image: rgba(0, 0, 0, 0); */
    -webkit-filter: invert(100%);
            filter: invert(100%);
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress, .volume {
    flex-grow: 1;
    margin: 0 10px;
}

#progressBar, #volumeBar {
    width: 100%;
}

.volume {
    max-width: 100px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    text-align: center;
    justify-content: center;
    padding: 5px 0;
    background-color: #f0f0f000;
    color: #c0c0c0;
    font-size: 0.8em;
    font-weight: 300;
    font-style: normal;
}

.footer a {
    color: #cc8b00; 
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline; /* animate hovering */
}