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, #7ce228, #84e01a);
    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, #3fc546 0%, #549b1b 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);
}

.fraction-container {
    text-align: center;
    margin-bottom: 30px;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 36px;
    margin: 0 10px;
}

.numerator,
.denominator {
    padding: 0 20px;
}

.fraction-bar {
    width: 50px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
}

.answer-container {
    text-align: center;
    margin-bottom: 30px;
}

.mixed-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.mixed-number input {
    width: 60px;
    height: 40px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.mixed-number input:focus {
    outline: none;
    border-color: #6ab7ff;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#whole-number {
    font-size: 30px;
    color: rgb(38, 3, 85);
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

#answer-numerator,
#answer-denominator {
    font-size: 24px;
    color: rgb(38, 3, 85);
    font-weight: bold;
    width: 60px;
    text-align: center;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.fraction-line {
    width: 60px;
    height: 2px;
    background-color: white;
    margin: 2px auto;
}


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: #4CAF50;
}

#start-btn:hover {
    background-color: #45a049;
    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);
}

.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;
}

.math-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.math-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
}

.math-mixed-number {
    display: flex;
    align-items: center;
    gap: 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;
}

.math-equal {
    font-size: 24px;
    margin: 0 10px;
}

.explanation {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}