#intro {
    position: absolute;
    left: 0%; top: 0; width: 100%; height: 100%;
    background-image: url(images/intro_bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 1000;
    overflow: hidden;
}

#intro::before {
    content: '';
    position: absolute;
    left: 0%; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 66, 55, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 0;
}



#intro .popup {
    position: absolute;
    box-sizing: border-box;
    left: 50%; top: 50%; width: 25rem; height: auto;
    transform: translate(-50%,-50%);
    border-radius: 2rem;
    /* background-color: rgba(34, 34, 34, 0.85); */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgb(0, 66, 55, 0.65);
    padding: 3rem 5rem;
    z-index: 2;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5) ;
    opacity: 0.0;
    pointer-events: none;
    transition: opacity 1s;
}

#intro .popup .logo {
    position: absolute;
    left: 50%; bottom: 100%; transform: translate(-50%,calc(-100% + 8rem));
    width: 32rem;
}

#intro .popup .logo svg {
    width: 100%; height: 100%;
}

#intro .title {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.7rem;
    color: white;
    text-align: center;
    opacity: 0.7;
}

#intro .popup button.sound {
    width: 100%; height: 4rem;
    border-radius: 2rem;
    background-color: #D9D9D9;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.7rem;
    color: #004237;
    text-align: center;
    margin-top: 1rem;
    outline: 1px solid #ffffff;
    /* outline-offset: 2px; */
    border: 2px solid rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
}

#intro .popup .soundon {
}

#intro .popup .soundoff {
}

#intro_icon_audio {
    margin-top: 1rem;
    margin-left: 0.5rem;    
    cursor: pointer;
}

#intro_icon_audio .question,
#intro_icon_audio .waves,
#intro_icon_audio .cross {
    opacity: 0;
    transition: 
        opacity var(--transition-duration),
        transform var(--transition-duration);
    transform-origin: center;
    transform: scale(0);
}


body:not(.sound) #intro_icon_audio .cross,
body.sound #intro_icon_audio .waves,
#intro_icon_audio .question.visible,
#intro_icon_audio .cross.visible,
#intro_icon_audio .waves.visible {
    opacity: 1;
    transform: scale(1);
}

#intro_icon_audio .question.visible {
    transform: scale(1.2);
}

#intro_icon_audio .wave1,
#intro_icon_audio .wave2 { 
    transform-origin: center;
}

#intro_icon_audio .wave1 { 
    /* animation-delay: calc(var(--transition-duration) * 0.5); */
    animation: audioWaveAnim calc(var(--transition-duration) / 2 ) ease-out infinite reverse;
}

#intro_icon_audio .wave2 { 
    animation: audioWaveAnim calc(var(--transition-duration) / 2) ease-out infinite;
}

@keyframes audioWaveAnim {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
    
}

#intro .popup .dictor {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    color: white;
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}


#intro .video {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

#intro .video video {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1);
    animation: zoom 10s linear infinite;
    opacity: 0;
    transition: opacity 1s;
}

@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

#intro .video .overlay {
    position: absolute;
    width: 100%; height: 100%;
    /* background-color: rgb(0, 66, 55, 0.1); */
    background-image: url("images/doted_overlay4.svg"); 
    background-repeat: repeat;
    background-size: 0.4rem;
    z-index: 2;
    opacity: 0.8;
}

#intro_star {
    position: absolute;
    left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 100dvw; 
    /* background-color: rgba(245, 80, 60, 0.4); */
    transform-origin: center;
    z-index: 100;
    opacity: 0;
    transition: 
        left 1s,
        top 1s,
        width 1s,
        height 1s,
        transform 1s,
        opacity 1s
    ;
}

#intro .description {
    position: absolute;
    left: 20%; bottom: 4%; width: 60%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.8rem;
    color: white;
    /* padding-bottom: 2rem; */
    text-align: justify;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-duration);
    text-shadow: 0 0 2rem rgba(0, 0, 0, 0.9);
}

#sound_overlay {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgb(0, 66, 55, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10000;
}

#sound_overlay .notify {
    position: absolute;
    left: 50%; top: 50%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.8rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-origin: center;
    /* transform: scale(0.5); */
    /* opacity: 0; */
    animation: show_sound_overlay 2s forwards;
}

@media (width < 500px) {
    #sound_overlay .notify {
        font-size: 1.2rem;
    }
}

@keyframes show_sound_overlay {
    from { transform: translate(-50%,-50%) scale(0.6); opacity: 0; }
    to { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
}

#sound_overlay .notify button {
    width: 8rem; height: 4rem;
    border-radius: 2rem;
    background-color: #D9D9D9;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.8rem;
    color: #004237;
    text-align: center;
    margin: 0 auto;
    margin-top: 1rem;

    outline: 1px solid #ffffff;
    /* outline-offset: 2px; */
    border: 2px solid rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
}