
@import url('https://fonts.googleapis.com/css2?family=Acme&family=Fredoka+One&display=swap');
:root {
    --morado: #8300C4;
    --rosado: #D14081;
    --blanco: #FFFFFF
}

html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1REM = 10px */
    height: 100%;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    line-height: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Globales */
h1, 
h2, 
h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 2rem 0;
}
h1 {
    font-size: 4rem;
}

/* @media (min-width: 768px) {
    h1{
        font-size: 5rem;
    }
} */

h2 {
    font-size: 3.2rem;
}

/* @media (min-width: 768px ){
    h2{
        font-size: 4rem;
    }
} */
h3 {
    font-size: 2.5rem;
}

/* @media(min-width: 768px){
    h3{
        font-size: 3rem;
    }
} */

a {
    text-decoration: none;
}
.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}
img {
    max-width: 100%;
    display: block;
}

h1, p{
    margin: 0;
}



.header{
    background-color: var(--morado);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nube__imagen{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 500px; 
    height: 150px; 
    background-image: url('../src/img/Nube.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nube__heading{
    color: var(--rosado);
    text-align: center;
    font-weight: bold;
}

.header__enlace{
    transition-property: transform;;
    transition-duration: 0.3s;
}

.header__enlace:hover{
    transform: scale(1.2);
}

.footer{
    background-color: var(--morado);
    margin-top: auto;
}

.footer__parrafo{
    text-align: center;
    color: var(--blanco);
}

.main{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr;
    column-gap: 1rem;
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-top: 2rem;
    padding-bottom: 2rem;
    user-select: none;
    padding: 5rem 0 10.5rem 0;
    flex: 1;
    background-image: url('../src/img/bg.png');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

.escenario__contenedor:nth-child(5){
    grid-column-start: 2;
    grid-column-end: 8;
    display: flex;
    justify-content: center;
}

.tito__contenedor, .itzel__contenedor, .psicologa__contenedor{
    position: absolute;
}


.itzel__contenedor:nth-child(6){
    z-index: 1;
    grid-column-start: 7;
    grid-column-end: 8;
}

.tito__contenedor:nth-child(2){
    z-index: 1;
    grid-column-start: 2;
    grid-column-end: 3;
}
.psicologa__contenedor:nth-child(4){
    z-index: 1;
    grid-column-start: 3;
    grid-column-end: 4;
}

.tito__contenedor:hover, .psicologa__contenedor:hover{
    cursor: pointer;
}

.escenario__contenedor img{
    width: 100%;
    height: 100%;
}

.tito__contenedor, .itzel__contenedor {
    display: flex;
    flex-direction: column;
    align-items:center;
    height: 95%;
    justify-content:end;
}
.psicologa__contenedor {
    display: flex;
    flex-direction: column;
    align-items:center;
    height: 85%;
    justify-content:end;
}


.tito__imagen, .itzel__imagen{
    transform: scale(1.2);
}
.psicologa__imagen{
    transform: scale(1.5);
}

.tito__contenedor__dialogo:nth-child(1){
    grid-column-start: 3;
    grid-column-end: 5;
    position: absolute;
    width: 100%;
    height: 110%;
    flex-direction: column;
    justify-content: center;
}

.psicologa__contenedor__dialogo:nth-child(3){
    grid-column-start: 4;
    grid-column-end: 6;
    position: absolute;
    width: 100%;
    height: 80%;
    flex-direction: column;
    justify-content: center;
}

.tito__dialogo{
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: rgb(0, 0, 0, 0.7);
    border-radius: 2rem;
}
.psicologa__dialogo{
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: rgb(0, 0, 0, 0.7);
    border-radius: 2rem;
}
.tito__head{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 253, 240, 0.25);
    border-radius: 0.5rem;
    padding: 0.5rem;
    width: fit-content;
    min-width: 8rem;
    min-height: 7rem;
    max-width: 8rem;
    max-height:10rem;
}

.psicologa__head{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 253, 240, 0.25);
    border-radius: 0.5rem;
    padding: 0.8rem;
    width: fit-content;
    min-height: 7rem;
    max-width: 8rem;
    max-height:10rem;
}


.tito__dialogo, .psicologa__dialogo{
    color: var(--blanco); 
    width: 100%;
    text-wrap: auto;
    text-align: center;
}

.oculto {
    display: none;
}

.flex {
    display: flex;
}

@keyframes clickable {
    0%{
        filter: drop-shadow(0 0 .5rem #0000004d);
        transform: scale(1)
    }
    to {
        filter: drop-shadow(0 0 1rem #00000080);
        transform: scale(1.05)
    }
}

.animate-clickable{
    animation: 0.4s infinite alternate clickable;
}

.imagen_cerrar_dialogo_tito{
    width: 11%;
    position: absolute;
    right: -4%;
    top: -10%;
    cursor: pointer;
    color: white;
}

.imagen_cerrar_dialogo_tito:hover{
    scale: 110%;
    filter: brightness(150%);
}

.imagen_cerrar_dialogo_psicologa{
    width: 11%;
    position: absolute;
    right: -4%;
    top: -10%;
    cursor: pointer;
    color: white;
}

.imagen_cerrar_dialogo_psicologa:hover{
    scale: 110%;
    filter: brightness(150%);
}

.btn-dialogo, .btn-sonido, .btn-galeria{
    padding: 0;
    background-color: transparent;
    border: none;
    position: absolute;
    display: inline-block;
    height: auto;
    width: auto;
    z-index: 10;
}

.btn-sonido{
    top: 0;
    right: 10%;
}

.btn-dialogo:hover, .btn-sonido:hover, .btn-galeria:hover{
    scale: 115%;
    rotate: 5;
    cursor: pointer;
}

.btn-dialogo{
    top: 0;
    left: 10%;
}

.tito__contenedor__parrafo, .psicologa__contenedor__parrafo{
    width: 100%;
}

.tito__head, .psicologa__head p{
    font-weight: bold;
}

.btn-continuar{
    margin-top: 1rem;
    background-color: var(--morado);
    color: var(--blanco);
    font-weight: bold;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 1rem;
}

.btn-continuar:hover{
    cursor: pointer;
}

.animate-talking-minihead {
    animation: .11s linear infinite alternate talking-minihead
}

.animate-talking {
    animation: .3s linear infinite alternate talking
}

@keyframes talking-minihead {
    0% {
        transform: translateY(0)
    }

    to {
        transform: translateY(-.2rem)scale(1.08)
    }
}

@keyframes talking {
    0% {
        transform: rotate(-2deg)
    }

    to {
        transform: rotate(2deg)
    }
}

.modal{
    position: fixed;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0,0,0.5);

}

.modal__contenido{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--blanco);
    padding: 2rem 5rem;
    border-radius: 0.8rem;
    position: relative;
    width: 80%;
    max-width: 50rem;
    box-shadow: 0 0.4rem 0.8rem 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal__contenido h4{
    margin: 1rem 0;
}

.modal__contenido p{
    margin: 1rem 0;
    text-align: center;
}

.video__tutorial{
    max-width: 100%;
}

.btn-galeria{
    right: 8%;
    bottom: 5%;
}

.btn-sonido img,
.btn-galeria img,
.btn-dialogo img {
    width: clamp(45px, 8vw, 115px) !important;
    height: auto;
}

@media screen and (max-width: 1024px) {
    .btn-galeria {
        right: 2%;
        bottom: 2%;
    }
    .btn-sonido {
        right: 2%;
        top: 2%;
    }
    .btn-dialogo {
        left: 2%;
        top: 2%;
    }
}

#rotate-device-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--morado);
    color: var(--blanco);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}
#rotate-device-overlay .rotate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
#rotate-device-overlay .rotate-icon {
    font-size: 60px;
    animation: tiltIcon 2s infinite ease-in-out;
}
#rotate-device-overlay p {
    font-family: "Fredoka One", "Acme", sans-serif;
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 0;
}
@keyframes tiltIcon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
    #rotate-device-overlay {
        display: flex !important;
    }
     
    .header, .main, .footer, .modal {
        display: none !important;
    }
}

@media screen and (max-width: 1024px) {
    
    .tito__contenedor__dialogo:nth-child(1),
    .psicologa__contenedor__dialogo:nth-child(3) {
        grid-column-start: 2;
        grid-column-end: 8;
        height: auto;
        z-index: 20; 
    }

    .tito__dialogo, 
    .psicologa__dialogo {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .tito__head, 
    .psicologa__head {
        min-width: 6rem;
        min-height: 6rem;
        padding: 0.5rem;
    }

    .tito__head p, 
    .psicologa__head p {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }

    .tito__contenedor__parrafo p, 
    .psicologa__contenedor__parrafo p {
        font-size: 1.5rem;
        line-height: 1.4;
        text-align: left; 
    }
}
