body {
    background-color: black;
    background-image: url();
    height: 100vh;
}

a {
    text-decoration: none;
}

#intro-button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, 0);
}

.first-frame {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    opacity: 1;
    transition: 1s;
}

.first-frame.hidden {
    opacity: 0;
    pointer-events: none;
}

.first-frame-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

#logo-anim {
    height: 12rem;
    transform: translate(0, 100%);
    opacity: 0;
}

#logotipo {
    height: 7.5rem;
    transform: translate(0, 150%);
    opacity: 0;
}

.first-frame-text {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.introduction-subtitle {
    font-family: HN_light;
    font-size: 1.4rem;
    color: white;
    text-align: center;
}

.introduction-description {
    font-family: HN_light;
    color: white;
    text-align: center;
}

#lang-button {
    font-family: HN_light;
    font-size: 0.9rem;
    color: var(--green);
    cursor: pointer;
}

#lang-button:hover {
    text-decoration: underline;
}

.first-frame-bottom {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 20vw;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
}

.first-frame-bottom p{
    font-size: 0.9rem;
}

.first-frame-bottom a{
    text-decoration: underline;
    color: white;
}




.second-frame {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100dvh;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    opacity: 1;
    transition: 1s;
}

.second-frame.hidden {
    opacity: 0;
}

.intro-video {
    opacity: 0.2;
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    transition: 3s;
}

.intro-video.hidden {
    opacity: 0;
}


.second-frame-text {
    width: 40%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: start;
    justify-content: start;
    overflow-y: scroll;
  scrollbar-width: 1px;
    margin-bottom: 2rem;
}

/* width */
.second-frame-text::-webkit-scrollbar {
    width: 7px;
  }
  /* Track */
  .second-frame-text::-webkit-scrollbar-track {
    background: #00000000; 
  }
  /* Handle */
  .second-frame-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.202); 
  }


.bg-image-sx {
    opacity: 0;
}

.bg-image-dx {
    opacity: 0;
}

.bottom-menu {
    opacity: 0;
}

.rotate-device-overlay {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: black;
    z-index: 1000;
    position: absolute;
    top: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    gap: 5rem;
}

#logo-anim-overlay {
    height: 4rem;
    filter: invert(1);
}

#logotipo-overlay {
    height: 3rem;
}

#rotate-icon {
    width: 30px;
    filter: invert(1);
    margin-bottom: 10px;
}



/* ----- VERTICAL ----- */


@media screen and (max-width: 1500px) {
    .first-frame-text {
        width: 70%;
    }

    .second-frame-text {
        width: 70%;
    }

    .first-frame-bottom {
        width: 30vw;
    }
}


@media screen and (max-width: 900px) {

    #logo-anim {
        height: 9rem;
    }

    #logotipo {
        height: 5.5rem;
    }


    .first-frame {
        padding: 1.5rem;
    }
}


@media screen and (max-width: 600px) and (orientation: portrait)  {

    #logo-anim {
        height: 7rem;
    }

    #logotipo {
        height: 3.75rem;
    }

    .first-frame-text {
        width: 100%;
    }

    .introduction-description {
        font-size: 0.9rem;
    }

    .second-frame-text {
        width: 100%;
    }


    .first-frame {
        padding: 1.5rem;
    }

    .second-frame {
        padding: 1.5rem;
    }


    .bg-image-sx {
        display: none;
    }

    .bg-image-dx {
        display: none;
    }

    .rotate-device-overlay {
        display: flex;
    }
}




/* ----- HORIZONTAL ----- */

@media screen and (max-height: 450px) and (orientation: landscape) {
    #logo-anim {
        height: 5rem;
    }

    #logotipo {
        height: 2.75rem;
    }

    .first-frame {
        flex-direction: row;
        align-items: center;
        justify-content: start;
        padding: 1rem;
        gap: 2rem;
    }

    .second-frame {
        padding: 1rem;
    }
    

    .first-frame-text {
        gap: 1rem;
        width: 95%;
        align-items: start;
    }

    .second-frame-text {
        width: 95%;
    }

    .second-frame-text {
        gap: 1rem;
    }

    .second-frame-text .introduction-description {
        text-align: center;
    }
    
    

    .introduction-subtitle {
        font-size: 1.1rem;
        text-align: left;
    }

    .introduction-description {
        font-size: 0.7rem;
        text-align: left;
    }

    .bottom-menu {
        bottom: 12px !important;
      right: 16px !important;
      gap: 10px !important;
    }

    .bottom-menu-item {
        font-size: 0.7rem;
    }
    

    .logo {
        bottom: 12px !important;
        left: 16px !important;
    }

    .rotate-device-overlay {
        display: none;
    }

    .first-frame-bottom {
        bottom: 15px;
        left: 15px;
        width: 35vw;
        gap: 0.3rem;
    }
    
    .first-frame-bottom p{
        font-size: 0.6rem;
    }
    

}


