@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,700;1,100&display=swap');
:root{
    /* --yellow: #ffd602;*/
    --red:#d5040a; 
    --blue:#02b1c8;
    --green:#70ca13;
}
body{
    font-family: 'Lato', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    height: 100vh;
}

.page{
    position: relative;
    height: 100vh;
    width: 100%;
}

.container{
    position: absolute;
    z-index: 1;
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: 20% 50% 30%;
    grid-template-areas: "nav aside"
                        "section aside"
                        "footer aside";
    height: 100%;
    width: 100%;
}

.navbar{
    display: flex;
    grid-area: nav;
    /* background-color: var(--yellow); */
}

.navbar__content{
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 0 0 80px;
    animation: 2s navbar 0.5s ease-in-out; /* cuando inicia en tiempo de carga, nombre, duracion de 
                                            animacion, tipo de aceleracion*/

}

@keyframes navbar {
    0%{
        transform: translateY(-200px);
    }

    100%{
        transform: translateY(0px);

    }
}

.navbar__content img{
    width: 350px;

}



.main-content{
    display: flex;
    grid-area: section;
    flex-direction:column;
    justify-content: center;
    padding-left: 80px;
    animation: 2s main-content 0.5s ease-in-out;
}



.main-content h1{
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;

}

.main-content input[type="text"]{
    width: 300px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid var(--blue);
}

.main-content button{
    width: 120px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background:  var(--blue);
    color: white;
    font-weight: bold;

}



@keyframes main-content {
    0%{
        transform: translateY(-600px);
    }

    100%{
        transform: translateY(0px);

    }
}


.side-content{
    grid-area: aside;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
}

.side-content  img{
    cursor: pointer;
    width: 100%;
    grid-column: 2 / 6;
    grid-row: 1 / 2;
    animation: 2s img-hero 0.7 ease;
    z-index: 1;
    
   
}

.side-content .next{
    display: none;
    justify-content: space-between;
    position: relative;
    bottom: -550px;
    
}

.side-content .next p{
    cursor: pointer;
    font-size: 40px;
    font-weight: bold;
    position: relative;
    right: 120px;
    transform: rotate(0deg);
}

.next #left{
    color: var(--blue);
}

.next #right{
    color: white;
}


.side-content div{
    background-color: var(--blue);
    grid-column: 4/7;
    grid-row:  1/2;
    height: 100vh;
}


@keyframes img-hero {
    0%{
        transform: translateY(900px);
        
    }


    100%{
        transform: translateY(0px);
        

    }
}

.side-content p{
    width: 250px;
    margin: 0;
    padding: 0;
    transform: rotate(-90deg);
    font-size: 30px;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    animation-name: side-content-text;
    animation-duration: 0.5s;
    animation-delay: 2.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes side-content-text {
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}




.loader{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: absolute;
    z-index: 3;
    animation: loader 2s linear forwards; /* Forwars estado final*/
}

.loader div{
    background: var(--blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 10px;
    transform: scale(0);
    animation: scaling 4s ease-in-out infinite;
}

.loader div:nth-child(1){
    animation-delay: 0.2s;
}

.loader div:nth-child(2){
    animation-delay: 0.4s;
}

.loader div:nth-child(3){
    animation-delay: 0.6s;
}
@keyframes scaling {
    0%, 100%{
    transform: scale(1);

    }

    50%{
    transform: scale(.2);

    }
}

@keyframes loader {
    0%{
        opacity: 1;
        visibility: visible;
    }

    95%{
        opacity: 1;
        visibility: visible;

    }

    100%{
        opacity: 0;
        visibility: hidden;

    }
}

.hidden{
    display: none;
}

.visible{
    display: grid;
}
.modal{
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    z-index: 4;
    place-items: center;
}

.modal__content{
    background: white;
    width: 50%;
    height: 50%;
    display: grid;
    place-content: center;
}

.modal__content button{
    width: 180px;
    height: 50px;
    font-size: 18px;
    font-weight: 300;
    color: white;
    background-color: var(--red);
    border: none;
    margin: 0 auto;
    position: relative;
    bottom: -20px;
}

#close-content{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: var(--blue)  solid 2px;
    text-align: center;
    position: absolute;
    top: 190px;
    right: 420px;
}

.close{
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
}

#close-content:hover{
    cursor: pointer;
}

.modal__content--slider{
    width: 400px;
    height: 250px;
    transform-style: preserve-3d;
}

.cards{
    position: relative;
    width: 100%;
    height: 100%;
}

.card{
    background:var(--blue);
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    transition: transform 0.5s ease;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 50%;
    height: 100%;
    margin-bottom: 20px;
    color: white;
}

.card p{
    font-weight: bold
}

.card img{
    width: 120px;
    height: 100px;
}

#radio-1:checked ~ .cards .card-1,/*Uno de los hijos*/
#radio-2:checked ~ .cards .card-2,
#radio-3:checked ~ .cards .card-3{
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
}

#radio-1:checked ~ .cards .card-2,/*Uno de los hijos*/
#radio-2:checked ~ .cards .card-3,
#radio-3:checked ~ .cards .card-1{
    transform: translateX(60%) scale(0.8);
    opacity: 0.5;
    z-index: 0;
}

#radio-1:checked ~ .cards .card-3,/*Uno de los hijos*/
#radio-2:checked ~ .cards .card-1,
#radio-3:checked ~ .cards .card-2{
    transform: translateX(-60%) scale(0.8);
    opacity: 0.5;
    z-index: 0;
}

input[type=radio]{
    display: none;
}

.footer{
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    background: var(--blue);
    border-radius:  0 80px 0 0;
    animation: 2.5s footer 0.5s  ease-in-out  forwards;
    transform: translateY(100%);
}

@keyframes footer {
    0%{
        transform: translateY(100%);
    }

    100%{
        transform: translateY(0px);
    }
}

.footer .content_personajes{
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;

}

.footer h2{
    position: absolute;
    bottom: 200px;
    opacity: 0;
    animation: 2.5s footerHeading 0.5s  ease-in-out  forwards;
}


@keyframes footerHeading{
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}



.content_personajes img{
    width: 140px;
    border-radius: 20%;
    position: absolute;
    bottom: 30px;
    transform: translateY(0px) scale(1);
    transition: transform 0.5s ease-in-out;
}




.content_personajes .personaje{
    /* background: var(--green); */
    width: 170px;
    height: 50%;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: center;
    animation: 2s personaje 0.5s  ease-in-out  forwards;
    transform: translateY(600px);
    margin: 0 20px;
}



.content_personajes .personaje:nth-child(1){
    animation-delay: 1s;
}

.content_personajes .personaje:nth-child(2){
    animation-delay: 1.5s;
}

.content_personajes .personaje:nth-child(3){
    animation-delay: 2s;
}



.content_personajes .personaje:hover img{
    cursor: pointer;
    transform: translateY(-20px) scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.content_personajes .personaje p{
    display: none;
}

.content_personajes .personaje:hover p{
    display: block;
    position: relative;
    font-weight: 700;
    right: 100px;
    top: -60px;
    font-size: 20px;
    transform: rotate(-90deg);
}

@keyframes personaje {
    0%{
        transform: translateY(600px);
    }

    100%{
        transform: translateY(0px);
    }
}
