body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

/* Estilos para el registro del estudiante */
.registration {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(to right, #7381ce, #9535e4);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.registration h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.registration input {
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.registration input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Estilos para el encabezado con nombre y puntaje */
.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9535e4 0%, #7381ce 100%);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

#welcome-message {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

#score {
    font-size: 20px;
    font-weight: bold;
    background-color: #ff7b00;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Estilos para la visualización del número mixto */
.fraction-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mixed-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.whole-number {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 36px;
    margin: 0 10px;
}

.numerator,
.denominator {
    padding: 0 20px;
    color: #2c3e50;
    font-weight: bold;
}

.fraction-bar {
    width: 50px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
}

/* Estilos para el área de respuesta */
.answer-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.improper-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

#answer-numerator,
#answer-denominator {
    font-size: 24px;
    color: #2c3e50;
    font-weight: bold;
    width: 80px;
    height: 50px;
    text-align: center;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#answer-numerator:focus,
#answer-denominator:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Estilos para los controles */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

button {
    padding: 12px 30px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

button:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

#start-btn {
    background-color: #647503;
}

#start-btn:hover {
    background-color: #c4d61f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#check-btn {
    background-color: #2196F3;
}

#check-btn:hover:enabled {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#new-fraction-btn {
    background-color: #ff9800;
}

#new-fraction-btn:hover:enabled {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos para el feedback */
.feedback {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.feedback.correct {
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 2px solid #2e7d32;
}

.feedback.incorrect {
    color: #c62828;
    background-color: #ffebee;
    border: 2px solid #c62828;
}

/* Estilos para la explicación matemática */
.math-explanation {
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
}

.math-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.math-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
}

.math-numerator,
.math-denominator {
    padding: 0 10px;
    font-size: 18px;
}

.math-fraction-bar {
    width: 30px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
}

.math-whole-number {
    font-size: 24px;
    font-weight: bold;
}

.math-equal {
    font-size: 24px;
    margin: 0 10px;
}

.math-plus {
    font-size: 24px;
    margin: 0 5px;
}

.step-description {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    font-style: italic;
}

.simplification-info {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.conversion-step {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.correct-solution {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}