body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}
h1 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
}
#questionSetup {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #e9ecef;
    text-align: center;
}
#questionSetup label {
    font-weight: bold;
    margin-right: 10px;
}
#numQuestionsInput, #examTimeInput {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 80px;
    text-align: center;
}
.setup-buttons button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}
.setup-buttons button:hover {
    background-color: #0056b3;
}
#testArea {
    display: none; /* Oculto inicialmente */
}
.question {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.question p {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.options label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.options input[type="radio"] {
    margin-right: 10px;
}
.feedback {
    margin-top: 10px;
    font-weight: bold;
}
/* Estilos clave para la retroalimentación dinámica en las etiquetas */
.options label.correct {
    color: #28a745; /* Verde para la respuesta correcta */
    font-weight: bold;
}
.options label.incorrect {
    color: #dc3545; /* Rojo para la respuesta incorrecta seleccionada */
    font-weight: bold;
}
/* Estilos para el texto de feedback debajo de la pregunta */
.feedback.correct {
    color: #28a745;
}
.feedback.incorrect {
    color: #dc3545;
}
.feedback.not-answered-correct {
    color: #ffc107;
}
/* Nueva clase para la opción correcta cuando la no se ha contestado */
.options label.not-answered-correct-revealed {
    color: #ffc107; /* Amarillo para la correcta no contestada */
    font-weight: bold;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap; 
}
.button-group button {
    width: 32%; 
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; 
}
.button-group button.show-answers-button { 
    background-color: #007bff;
    color: white;
}
.button-group button.show-answers-button:hover { 
    background-color: #0056b3;
}
.button-group button.reset-current-test-button { 
    background-color: #6c757d;
    color: white;
}
.button-group button.reset-current-test-button:hover { 
    background-color: #5a6268;
}
.button-group button.generate-new-test-button { 
    background-color: #ffc107;
    color: #333;
}
.button-group button.generate-new-test-button:hover { 
    background-color: #e0a800;
}
.results-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    /* Control de visibilidad para el modo examen */
    display: none; 
}
/* Estilos para el contador flotante */
#timerDisplay {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.5em;
    font-weight: bold;
    z-index: 1000;
    display: none; /* Oculto por defecto */
}
#timerDisplay.time-low {
    color: #ffcc00; /* Amarillo cuando el tiempo es bajo */
}
#timerDisplay.time-critical {
    color: #dc3545; /* Rojo cuando el tiempo es crítico */
}