:root {
    --color-primary: #9d72ff;
    --primary-hover: #7656bf;
}

* {
    margin: 0;
    padding: 0;
}

.ocultar{
    display: none !important;
}

body {
    background: url("../img/background_papa.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    font-family: Arial, sans-serif;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
}
/*splash Screen  */
#splash-screen {
    position: fixed;
    width: 100vw; /* Cambia esto por el ancho deseado */
    height: 100vh; /* Cambia esto por la altura deseada */
    background: url("../img/background_papa.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #ffffff; /* Cambia esto por el color de texto que desees */

    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
    align-items: center;

    font-size: 24px; /* Cambia esto por el tamaño de fuente que desees */
    opacity: 1; /* El splash screen estará inicialmente oculto */
    transition: opacity .5s ease-in-out; /* Transición suave para la propiedad de opacidad */
}

#cont-todo{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 50vw;
    transform: translateX("0px");
    transition: transform 1s ease-in-out; /* Transición suave para la propiedad de opacidad */


}

#logo1{
    max-width: 30vw;
    display: grid;
    grid-template-rows: 30vh auto;
}

#logo2{
    width: 100%;
    height: 5rem;
    object-fit: contain;
}

#img-texto{
    width: 100%;
}
#img-gift{
    width: 100%;
    height: 25vh;
    max-height: 15rem;
    object-fit: contain;
    transform: translate(5px);

}

.bouncing-img {
    position: absolute;
    width: 100%;
    bottom: 200%; /* Posición inicial fuera del contenedor */
}



#bienvenida {
    grid-template-rows: 30vh 45vh;

    height: auto;
    max-width: 50vw;
    width: auto;

    justify-content: center;
    gap: 3rem;
    opacity: 1;

}

#cont-bienvenida{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    opacity: 0;
    transition: opacity .5s ease-in-out; /* Transición suave para la propiedad de opacidad */

}

#logo-cont {
    display: flex;
    align-items: end;
    justify-content: center;
}

#logo {
    width: 40%;
}

#inst-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#instrucciones {
    border-radius: 1rem;

    display: flex;
    flex-direction: column;
    user-select: none;

    font-size: 1rem;
    text-align: center;
}

#instrucciones p{
    line-height: 1.5;
}

#empezar {
    background: none;
    border: 3px solid #9d71ff;
    width: 50%;
    height: 3rem;
    border-radius: 51px;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-weight: 700;
    transition: 0.25s;

    &:hover {
        background: #9d71ff;
        color: white;
        cursor: pointer;
    }
}

/* QUIZ */
#quiz {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 60vw;

    min-height: 90vh;
    justify-content: center;
}

.barra-progreso {
    background-color: #adc1c1;
    border-radius: 5px;
    height: 20px;
    width: 80%;
    margin: 2rem;
}

#anterior{
    position: absolute;
    top: 50%;
    left: -10%;
    /* transform: translateY(-15%); */
    width: 5rem;
    height: 5rem;
    background:var(--color-primary);
    border: none;
    border-radius: 100%;
    cursor: pointer;

    &:hover{
        background: var(--primary-hover);
    }
}

#pregunta {
    font-size: 3vh;
    font-weight: 800;
    color: #9d72ff;
    text-align: center;
}

.contenedor-encuesta {
    position: relative;
    background-color: #ecf2f2;
    border: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    min-width: 30vw;
    width: 100%;
    max-width: 60vw;

    min-height: 40vh;
    max-height: 80vh;
    padding: 2rem;

    display: grid;
    grid-template-rows: 20% 80%;
}

#encuesta {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3rem;
}

.progreso {
    background: linear-gradient(to right, #d14361, #ab2a9d, #7605f2);
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 0.5s ease-in-out;
}

#title-logo {
    height: 15vh;
}

.contenedor-botones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.flex {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 5rem;
}

.opcion {
    background-color: #e0e5e5;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    font-size: 16px;

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    user-select: none;

    transition: 0.2s ease-in-out;

    position: relative;

    &:hover {
        background-color: #b9b9b9;
    }
}

.img-opciones {
    object-fit: contain;
    object-position: center;
    transform: rotate(0deg); /* Esto evita que la imagen se rote inicialmente */

    width: 35%;
    height: 70%;
}

.opcion:hover .img-opciones {
    animation: img-op 0.5s ease infinite; /* Utilice 'animation' en lugar de 'transition' para la animación */
}

@keyframes img-op {
    0% {
        transform: rotate(20deg) scale(1.1); /* Agregue 'scale(1)' para mantener el tamaño original */
    }
    50% {
        transform: rotate(-20deg) scale(1.1); /* Aplique la rotación y aumente el tamaño */
    }
    100% {
        transform: rotate(20deg) scale(1.1); /* Vuelva al tamaño original */
    }
}


.opcion-cortas{
    font-weight: 600;
    font-size: .9rem;
}

.opcion input {
    margin-right: 10px;
    display: none;
}

.boton-siguiente {
    display: none;
}

#gif-gift{
    display: none;
    width: 100vw;
    min-height: 90vh;
    align-items: center;
    justify-content: center;
}

#submitbtn{
    display: flex;
    align-items: center;
    color: rgb(0, 0, 0);
    background: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: .7rem;
    width: 50%;
    height: 1rem;
    border-radius: 50px;
    transition: .2s all ease-in-out;

    &:hover{
        background: var(--primary-hover);
        color: white;
    }
}

#Formulario{
    display: none;
    flex-direction: column;
}

#Formulario input{
    display: none;
}

/* Div de las sugerencias de regalos */
#gift {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 80vw;
}

#gift-text2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
}
#gift-text h1 {
    color: #9d72ff;
}

#gift-sugeridos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    width: 100%;
    gap: 1rem;
}
.opciones-gift {
    background: #ecf2f2;
    border-radius: 2rem;
    min-height: 35vh;
    height: auto;
    box-shadow: hsla(0, 0%, 0%, 0.5) 0px 2px 7px;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 2rem;
    transition: 0.15s ease-in-out;

    &:hover {
        transform: scale(1.015);
    }
}
.opciones-gift h1 {
    color: var(--primary-hover);
}

.links-cont {
    background: #bcd2d2;
    border-radius: 10px;
    padding: 0.5rem;
}
.links-gift {
    display: flex;
    align-items: center;
    text-align: justify;
    gap: 0.5rem;
    word-break: break-all;
}

.gift-background {
    background: url("../img/open-gift.gif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    min-width: 50vw !important;
    width: min-content !important;
    height: auto;
    min-height: 50vh;
    border: 10px solid #d12e28;
    border-radius: 2rem;
}

#gift-btn {
    max-width: 50%;
    min-width: 40%;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#btn-2op {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
}

#gift-btn button {
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    padding: 1rem;
    padding-inline: 3rem;
    border-radius: 50px;
    transition: 0.1s all ease-in-out;
    &:hover {
        cursor: pointer;
        background: var(--primary-hover);
    }
}

#popup {
    width: 30vw;
    height: 40vh;
    border-radius: 2rem;
    border: none;
    padding: 1rem;
    display: none;
    grid-template-rows: 80% 20%;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
#popup img{
    width: 100%;
    height: 100%;
}
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#popup-gift{
    animation: popupAnimation 1s infinite;
}

@keyframes popupAnimation {
    0%, 100% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1);
    }
}

/* Inicio estilos ty page */
#typage {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 50%;
    max-width: 50%;
    min-width: 40%;
    gap: 2rem;

    min-height: 90vh;
    justify-content: center;

}
#gift-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#gift-text h3 {
    text-align: center;
    font-weight: 800;
}
#gift-text p {
    text-align: center;
    font-size: 20px;
}
#recomendaciones_btn {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 1.5rem;
    width: 100%;
}
#recomendaciones_btn button {
    background-color: #fff0;
    width: 100%;
    color: #000;
    border-radius: 50px;
    border: 3px solid #9d72ff;
    padding: 1em;
    font-weight: 800;
    font-size: 0.7em;
    transition: 0.2s;
    cursor: pointer;
    &:hover {
        color: white;
        background: var(--color-primary);
    }
}
#comentario{
    width: calc(100% - 2em);
    padding: 1em;
    border: 1px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}
#comentario-ty{
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin: 1em;
}
#comentario-ty p{
    text-align: center;
}
.button-container {
    display: flex;
    justify-content: center;
}
.boton-comentario {
    color: #fff;
    background: var(--color-primary);
    width: 40%;
    border: 1px solid var(--color-primary);
    border-radius: 25px;
    padding: 0.5em;
    font-size: 20px;
    transition: 0.2s ease-in-out;
    cursor: pointer;

    &:hover{
        background: var(--primary-hover);
    }
}
#popup-typage {
    max-width: 30vw;
    max-height: 50vh;
    border-radius: 2rem;
    border: none;
    padding: 1rem;
    display: none;
    grid-template-rows: 80% 20%;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}
#popup-typage img{
    height: 80%;
    width: 100%;
    object-fit: contain;
}
#popup-typage h2{
    padding-inline: 1rem;
    color: var(--color-primary);
}
#overlay-typage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Fin estilos ty page */

footer {
    position: absolute;
    height: 10vh;
    width: 100vw;
    flex-direction: row;
    gap: 3rem;
    position: absolute;
    bottom: 0;

    display: flex;
    color: #3d217b;
    align-items: end;
    user-select: none;
    justify-content: center;
    z-index: -10;
    opacity: 0;

    transition: opacity .5s ease-in-out .5s; /* Transición suave para la propiedad de opacidad */

}

#footer2 {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: end;
    margin-top: 2vh;
    overflow: auto;
    height: 100%;
}

#btn-geeks{

    opacity: 0;

    background: none;
    border: none;
    position: fixed;
    bottom: 0;
    right: 0;
    height: 20vh;
    width: auto;
    border-radius: 100%;

    margin: 2rem;
    overflow: hidden;
    transition: .2s ease-in;
    cursor: pointer;
    &:hover{
        transform: scale(1.1);
    }
}
#circle-gks{
    object-fit: contain;
    width: 100%;
    height: 100%;
    animation: geeks 10s infinite linear;
    border-radius: 100%;
}
#geeks{
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes geeks {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
    
}





@media screen and (max-width: 430px) {
    #instrucciones {
        margin: 1rem;
    }
    .contenedor-encuesta {
        width: 90vw;
    }
    .contenedor-botones {
        grid-template-columns: repeat(2, 1fr);
    }
}


.btn-53,
.btn-53 *,
.btn-53 :after,
.btn-53 :before,
.btn-53:after,
.btn-53:before {
    border: 0 solid;
    box-sizing: border-box;
}

.btn-53 {
    -webkit-tap-highlight-color:
        transparent;
    -webkit-appearance: button;
    background-color:
        #000000;
    background-image: none;
    color:
        #fff;
    cursor: pointer;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
        Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 100%;
    line-height: 1.5;
    margin: 0;
    -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
    padding: 0;
}

.btn-53:disabled {
    cursor: default;
}

.btn-53:-moz-focusring {
    outline: auto;
}

.btn-53 svg {
    display: block;
    vertical-align: middle;
}

.btn-53 [hidden] {
    display: none;
}

.btn-53 {
    border: 1px solid;
    border-radius: 999px;
    box-sizing: border-box;
    display: block;
    font-weight: 900;
    overflow: hidden;
    padding: 1.2rem 3rem;
    position: relative;
    text-transform: uppercase;
}

.btn-53 .original {
    background:
        #9d72ff;
    color:
        white;
    display: grid;
    inset: 0;
    place-content: center;
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}

.btn-53:hover .original {
    transform: translateY(100%);
}

.btn-53 .letters {
    display: inline-flex;
}

.btn-53 span {
    opacity: 0;
    transform: translateY(-15px);
    transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}

.btn-53 span:nth-child(2n) {
    transform: translateY(15px);
}

.btn-53:hover span {
    opacity: 1;
    transform: translateY(0);
    color: cyan;
}

.btn-53:hover span:nth-child(2) {
    transition-delay: 0.1s;
}

.btn-53:hover span:nth-child(3) {
    transition-delay: 0.2s;
}

.btn-53:hover span:nth-child(4) {
    transition-delay: 0.3s;
}

.btn-53:hover span:nth-child(5) {
    transition-delay: 0.4s;
}

.btn-53:hover span:nth-child(6) {
    transition-delay: 0.5s;
}