/* ============================
   CONFIGURACIÓN GENERAL
   ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-image: url("../imagenes/more-leaves.png");
    background-repeat: repeat;
    margin: 10px auto;
    width: 80%;
    font-family: Arial, sans-serif;
}

.contenedor {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #f7f0d8;
    padding: 10px;
    border-radius: 50px 50px 0 0;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}


/* ============================
   CABECERA
   ============================ */

header {
    background-color: #007e0a;
    border-radius: 40px 40px 15px 15px;
}

header > .cabecera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    width: 100%;
}

.logotipo {
    width: 180px;
    height: auto;
    max-width: 100%;
}

.titulo-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.titulo-header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.titulo-header p {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}


/* ============================
   SLIDER
   ============================ */

.slider {
    position: relative;
    overflow: hidden;
    margin: 15px 0;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.slider ul {
    display: flex;
    animation: slide 15s infinite;
    list-style: none;
}

.slider ul li {
    min-width: 100%;
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-200%);
    }

    75% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(0);
    }
}


/* ============================
   NAVEGACIÓN
   ============================ */

nav {
    margin: 15px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    width: 170px;
    height: 130px;

    font-family: Verdana, sans-serif;
    font-size: 12px;
    font-weight: bold;

    background-color: #73b102;
    color: #000000;

    border: none;
    text-decoration: none;

    border-radius: 25px 0 25px 0;

    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #42b102;
    color: #ffffff;
    border-radius: 0 25px 0 25px;
    transform: translateY(-3px);
}

.botoncuento {
    width: 150px;
    max-width: 100%;
    height: auto;
}


/* ============================
   CONTENIDO DEL CUENTO
   ============================ */

main {
    background-color: #7fdc5b;
    padding: 20px;
    border-radius: 18px;
    margin-top: 20px;
}


/* Títulos del cuento */

main h1,
main h2 {
    color: #000000;
    text-align: center;
    margin-bottom: 15px;
}

main h3 {
    color: #007e0a;
    margin-top: 15px;
    margin-bottom: 10px;
}


/* Texto del cuento */

main p {
    color: #050000;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 15px;
}


/* JUSTIFICAR SOLAMENTE EL TEXTO DE LOS CUENTOS */

.texto-scrol p,
.texto-scroll p {
    text-align: justify;
}


/* ESPACIO PARA QUE EL TEXTO SE VEA MÁS EQUILIBRADO */

.texto-scrol,
.texto-scroll {
    padding: 0 65px;
}


/* ============================
   IMÁGENES DEL CUENTO
   ============================ */

main img {
    display: block;
    max-width: 70%;
    width: auto;
    height: auto;
    margin: 15px auto;
    border-radius: 12px;
}

.texto-scroll img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 15px auto;
}


/* ============================
   CUESTIONARIO DEL CUENTO
   ============================ */

.caja-cuestionario {
    background-color: #fff8f0;
    padding: 25px;
    border-radius: 18px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#cuestionario h2 {
    text-align: center;
    color: #007e0a;
    margin-bottom: 15px;
}

.pregunta {
    background-color: #ffffff;
    border-left: 6px solid #007e0a;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.10);
}

.pregunta p {
    margin-bottom: 12px;
    color: #333333;
    font-size: 17px;
    line-height: 1.4;
}

.pregunta label {
    display: inline-block;
    margin: 7px 15px 7px 0;
    font-size: 16px;
    color: #333333;
    cursor: pointer;
}

.pregunta input[type="radio"] {
    accent-color: #007e0a;
    margin-right: 6px;
    transform: scale(1.2);
}

.pregunta select {
    width: 100%;
    max-width: 450px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 16px;
    border: 2px solid #73b102;
    border-radius: 10px;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
}

.pregunta select:focus {
    outline: none;
    border-color: #007e0a;
    box-shadow: 0 0 5px rgba(0, 126, 10, 0.4);
}


/* ============================
   BOTÓN DEL CUESTIONARIO
   ============================ */

#formCuento button {
    display: block;
    margin: 25px auto 10px auto;

    background-color: #007e0a;
    color: #ffffff;

    border: none;
    border-radius: 12px;

    padding: 12px 28px;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

#formCuento button:hover {
    background-color: #73b102;
    transform: scale(1.05);
}


/* ============================
   RESULTADO DEL CUESTIONARIO
   ============================ */

.mensaje-resultado {
    margin-top: 20px;
    padding: 15px;

    text-align: center;

    font-size: 20px;
    font-weight: bold;

    color: #007e0a;

    background-color: #ffffff;

    border: 2px dashed #73b102;
    border-radius: 12px;
}


/* ============================
   VERDADERO / FALSO
   ============================ */

#vf .texto-scroll {
    max-height: none;
}

#vfForm p {
    font-size: 18px;
    margin: 12px 0;
}

#vfForm label {
    margin-left: 10px;
    cursor: pointer;
}

#vfForm button {
    background-color: #f47c7c;
    color: #ffffff;

    padding: 10px 20px;

    border: none;
    border-radius: 12px;

    font-size: 18px;

    cursor: pointer;

    transition: background-color 0.3s;
}

#vfForm button:hover {
    background-color: #f25c5c;
}

.mensaje-vf {
    margin-top: 15px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}


/* ============================
   IMAGEN DEL RESULTADO
   ============================ */

.imagen-resultado {
    display: block;

    width: 380px;
    max-width: 100%;
    height: auto;

    margin: 15px auto;
}


/* ============================
   PIE DE PÁGINA
   ============================ */

footer {
    text-align: center;
    padding: 20px;

    color: #ffffff;
    background-color: #007e0a;

    margin-top: 20px;
    border-radius: 15px 15px 0 0;
}

footer p {
    margin: 5px 0;
}


/* ============================
   TABLET
   ============================ */

@media (max-width: 768px) {

    body {
        width: 95%;
        margin: 5px auto;
    }

    .contenedor {
        padding: 8px;
        border-radius: 30px 30px 0 0;
    }

    header {
        border-radius: 25px 25px 12px 12px;
    }

    header > .cabecera {
        flex-direction: column;
        text-align: center;
    }

    .logotipo {
        width: 150px;
    }

    .titulo-header {
        align-items: center;
        text-align: center;
    }

    .titulo-header h1 {
        font-size: 1.6rem;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a {
        width: 150px;
        height: 115px;
    }

    main {
        padding: 15px;
    }

    main p {
        font-size: 16px;
    }
}


/* ============================
   CELULAR
   ============================ */

@media (max-width: 480px) {

    body {
        width: 100%;
        margin: 0;
    }

    .contenedor {
        width: 100%;
        padding: 5px;
        border-radius: 0;
    }

    header {
        border-radius: 20px 20px 10px 10px;
    }

    .logotipo {
        width: 120px;
    }

    .titulo-header h1 {
        font-size: 1.4rem;
    }

    .titulo-header p {
        font-size: 0.9rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li a {
        width: 90%;
        max-width: 250px;
        height: 90px;
    }

    main {
        padding: 12px;
    }

    main p {
        font-size: 15px;
    }

    .caja-cuestionario {
        padding: 15px;
    }

    .pregunta {
        padding: 14px;
    }

    .pregunta label {
        display: block;
        margin: 8px 0;
    }

    #formCuento button {
        width: 100%;
        max-width: 280px;
    }

    .imagen-resultado {
        width: 100%;
        max-width: 280px;
    }
}