/* ========================================= */
/* Estilo del contenedor principal           */
/* ========================================= */
.content {
    max-width: 900px;
    margin: 5px auto;
    background-color: #E3F2FD; /* Azul pastel */
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
    line-height: 2;
    text-align: justify;
}

/* ========================================= */
/* Estilo del encabezado titulo              */
/* ========================================= */
h1 {
    color: #0D47A1; /* Azul oscuro */
    text-align: center;
    font-size: 1.8em;
    padding: 0px;
}

/* ========================================= */
/* Estilo del temporizador                   */
/* ========================================= */
.timer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
    color: #d39e0e; /* Azul medio */
}

/* ========================================= */
/* Barra de información del quiz             */
/* ========================================= */
.quiz-info-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
    color: #2196F3; /* Azul brillante */
}

/* ========================================= */
/* Barra de progreso                         */
/* ========================================= */
.progress-bar {
    background-color: #BBDEFB; /* Azul claro */
    border-radius: 5px;
    height: 10px;
    margin-bottom: 10px;
}

.progress-fill {
    background-color: #1565C0; /* Azul medio */
    height: 100%;
    width: 0%;
    border-radius: 5px;
}

/* ========================================= */
/* Preguntas                                 */
/* ========================================= */
.question-block {
    margin: 0;    
    padding: 5px;
    border: 1px solid #90CAF9; /* Azul claro */
    border-radius: 8px;
    background-color: #effaff; /* Azul muy claro */
    display: none;
    min-width: 90%;
    
}

.question-block.active {
    display: block;
}

.question-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #0D47A1; /* Azul oscuro */
    margin: 0;
    padding: 5px;
}

/* ========================================= */
/* Opciones de respuesta                     */
/* ========================================= */
.options label {
    color: #0D47A1;
    background-color: #d4ebfd;

    display: block;
    margin-bottom: 10px;
    padding: 5px 5px;
    margin: 5px;
    font-size: 17px;
    border: 1px solid #90CAF9;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    
}

.options label:hover {
    background-color: #BBDEFB;
    border-color: #2196F3;
}

.options input[type="radio"] {
    margin-right: 10px;
}

/* Respuestas correctas/incorrectas */
.options label.correct-answer {
    background-color: #FFD600; /* Amarillo para correctas */
    border-color: #2196F3;
    color: #0D47A1;
}

.options label.incorrect-selected {
    background-color: #EF5350; /* Rojo para incorrectas */
    border-color: #D32F2F;
    color: #FFFFFF;
}

/* ========================================= */
/* Botones de navegación                     */
/* ========================================= */
.navigation-buttons {
    text-align: center;
    margin: 25px;
}

.nav-button {
    padding: 10px 25px;
    background: linear-gradient(to right, #2196F3, #64B5F6);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-button:hover:not(:disabled) {
    background: linear-gradient(to right, #1565C0, #1976D2);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.nav-button:disabled {
    background-color: #BBDEFB;
    cursor: not-allowed;
}

/* ========================================= */
/* Mensaje final                             */
/* ========================================= */
.quiz-finished-message {
    text-align: center;
    font-size: 1.2em;
    color: #1565C0;
    font-weight: bold;
    margin-top: 40px;
    display: none;
}

/* ========================================= */
/* Sección de revisión                       */
/* ========================================= */
.review-section {
    margin-top: 10px;
    display: none;
}

.review-question {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #90CAF9;
    border-radius: 5px;
    background-color: #E1F5FE;
}

.review-question .question {
    color: #0D47A1;
}

.review-question .correct {
    color: #FFD600; /* Amarillo */
}

.review-question .incorrect {
    color: #EF5350; /* Rojo */
}


.review-buttons {
    text-align: center;
    margin-top: 20px;
}

/* ========================================= */
/* Estilos responsivos pantalla mediana      */
/* ========================================= */

#botones {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background: white;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
         }




/* ========================================= */
/* Estilos responsivos pantalla mediana      */
/* ========================================= */
@media (max-width: 768px) {
    /* Ajustes para pantallas medianas */
    .content {
        padding: 15px; /* Reducir padding en pantallas más pequeñas */
    }

    h1 {
        font-size: 1.5em; /* Ajustar tamaño de fuente */
    }

    .timer {
    font-size: 1em;
    padding : 0;
}

.quiz-info-bar {
    font-size: 1em;
    padding : 0;
}


    .question-text {
        font-size: 1.1em; /* Ajustar tamaño de fuente para preguntas */
    }

    .options label {
        padding: 8px 12px; /* Ajustar padding de opciones */
    }

    .nav-button {
        padding: 8px 20px; /* Ajustar padding de botones */
        font-size: 0.9em; /* Reducir tamaño de fuente de botones */
    }
}

/* ========================================= */
/* Estilos responsivos pantalla pequeña      */
/* ========================================= */
@media (max-width: 480px) {
    
    .body{
        padding: 0px;
        margin: 0px;
    }
 
    .content {
        padding: 10px; /* Reducir aún más el padding */
        margin: 10px 0px;
    }


    h1 {
        font-size: 1.2em; /* Ajustar tamaño de fuente */
    }
    .question-block {
        padding : 1px;
        margin: 0;
        min-width: 100%;
    }

.quiz-section{
        padding: 0;
        margin: 0;
    }

    .question-text {
        font-size: 1.2em; /* Ajustar tamaño de fuente para preguntas */
        padding : 7px;

    }

    .options label {
        padding : 5px;
        font-size: 1.2em; /* Tamaño de texto para la opcion de respuestas */
    }
   
   .navigation-buttons {
    text-align: center;
    margin-top: 25px;

}
    .nav-button {
        padding: 10px 15px; /* Ajustar padding de botones */
        font-size: 1em; /* Reducir tamaño de fuente de botones */
        margin: 0 10px; /* separacion de botones*/
    }

    .quiz-finished-message {
        font-size: 1,1em; /* Ajustar tamaño de fuente del mensaje final */
    }
}
