/* Estilos generales del cuerpo */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    color: #333;
    text-align: center;
}

/* Contenedor principal del juego */
#game-container {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
}

/* Títulos */
h1 {
    color: #007bff;
    margin-bottom: 20px;
}

/* Contenedores de puntuación y nivel */
#score-container, #level-container {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

#score, #level {
    font-weight: bold;
    color: #007bff;
}

/* Mensajes de feedback (correcto/incorrecto) */
#message {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    min-height: 1.5em; /* Para evitar que el layout salte */
}

.correct {
    color: #28a745;
}

.incorrect {
    color: #dc3545;
}

/* Botón para volver al menú principal */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 10;
}

.back-button:hover {
    background-color: #5a6268;
}

/* Botón "Siguiente" */
#next-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#next-button:hover {
    background-color: #0056b3;
}

/* Botones de opción genéricos */
.option-button {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.4em;
    transition: background-color 0.3s, transform 0.2s;
}

.option-button:hover {
    transform: translateY(-3px);
}

.option-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}

/* Animaciones */
.level-up-animation {
    animation: level-up 1s ease-out;
}

.level-complete-message {
    color: #28a745;
    font-size: 1.8em;
    animation: pulse 1.5s infinite;
}

@keyframes level-up {
    0% { transform: scale(1); color: #007bff; }
    50% { transform: scale(1.2); color: #ffc107; }
    100% { transform: scale(1); color: #007bff; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mejoras de accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .level-up-animation,
    .level-complete-message,
    .option-button:hover {
        animation: none;
        transform: none;
    }
}
