*{
    margin: 0;
    padding: 0;
    /* height: 100%; */
    /* overflow-x: hidden; */
    box-sizing: border-box;
}

h1 {
    font-size: 44px;
    font-weight: 600;
}

#loading-animation {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    background-color:transparent;
    z-index: 1000;
}

.googlePlayBtn > figure {
    width: 200px;
    height: auto;

}

.googlePlayBtn img {
    width: 100%;
}

.color-line {
    width: 30%;
    height: 0;
    position: relative; /* Añadimos posición relativa */
        animation: paint-drop 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
    /* animation: paint-drop 4s ease-in-out forwards; Aumentamos la duración para dar tiempo a ambas fases */
}

@keyframes paint-drop {
    0% {
        height: 0;
        top: 0;
    }
    50% {
        height: 100%;
        top: 0;
    }
    100% {
        height: 0;
        top: 100%;
    }
}

.cyan { background-color: cyan; }
.magenta { background-color: magenta; }
.yellow { background-color: yellow; }
.black { 
    background-color: black;
    width: 5%;
 }

.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    width: 300vw;
    height: 100vh;
    background-size: contain;
    background-repeat: repeat-x;
    top: 0;
    left: 0;
}

.parallax-layer:nth-of-type(1) {
    background-image: url('../imgs/FondoAtras.png');
    animation: moveBackground 30s linear infinite;
}

.parallax-layer:nth-of-type(2) {
    background-image: url('../imgs/FondoMedio.png');
    animation: moveBackground 20s linear infinite;
}

.parallax-layer:nth-of-type(3) {
    background-image: url('../imgs/FondoDelante.png');
    animation: moveBackground 10s linear infinite;
}

/* Ajusta el position de los duplicados */
.parallax-layer::before {
    left: -100%;
    background-image: inherit; /* Copia la imagen del padre */
}
.parallax-layer::after {
    right: -100%;
    background-image: inherit;
}

/* Reutiliza la animación de desplazamiento para cada capa */
@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -100vw 0;
    }
}

#content {
    height: 64.72vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

main {
    width: 50%;
    z-index: 1;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

aside {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 300px;
}

aside img{
    object-fit: contain;
}

.character-wrapper {
    position: relative;
    width: 177px; 
    height: 219px; 
    overflow: hidden;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: flex-end; /* Alinea verticalmente al fondo */
}

.character-layer {
    position: absolute;
    bottom: 0; /* Alinea al fondo del contenedor */
    left: 50%; /* Centro horizontalmente */
    transform: translateX(-50%); /* Ajusta el centro de la capa */
    width: 100%; /* Ocupará todo el ancho del contenedor */
    height: auto; /* Permite que la altura se ajuste automáticamente */
    display: none; /* Oculta por defecto */
}

.portal {
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px; /* Grosor de la línea del portal */
    background: gold;
    transition: top 1s linear, transform 0.5s ease-in-out;
    z-index: 2;
    transform-origin: center;
    display: none;
}

.portal.active {
    top: 0;
}

@media (max-width: 768px) {
    #content {
        flex-direction: column-reverse; /* Cambiar a vertical */
        height: auto;
    }

    main {
        padding-block-start: 40px;
        width: 90%;
        margin: 0 auto;
    }

    aside {
        top: -1%;
        left: 55%;
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        width: fit-content;
    }

    .character-wrapper{
        transform: scale(0.5);
    }
}

#nav-placeholder, .navbar{
    background-color: transparent;
}
nav{
    background: linear-gradient(#fff 60%, rgba(255,255,255,0) );
}

footer{
    width: 100%;
    background: linear-gradient(rgba(255,255,255,0) 60%, #fff );
}