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, #ff758c, #ff7eb3);
    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: 10px;
    font-size: 16px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
}

.registration button, .controls button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#student-name {
    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;
}

#student-name: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: 10px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 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: #ffcc00;
    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;
}

.numerator, .denominator {
    padding: 0 0px;
}

.fraction-bar {
    width: 50px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
}

.graphic-container {
    margin-bottom: 30px;
}



.part {
    box-sizing: border-box;
    border-right: 1px solid #ddd;
    transition: background-color 0.3s;
    cursor: pointer;
    display: flex;
    flex-grow: 1;
}

.part:last-child {
    border-right: none;
}

.part.colored {
    background-color: #6ab7ff;
    border-right: 1px solid #333;
}

.part:hover {
    background-color: #e1f5fe;
}

.part.colored:hover {
    background-color: #4fa3f2;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

button:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed;
}

#start-btn {
    background-color: #4CAF50;
    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;
    margin-top: 5px;
}

#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;
}

#new-fraction-btn {
    background-color: #ff9800;
}

#new-fraction-btn:hover:enabled {
    background-color: #e68a00;
}

.feedback {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
}

.feedback.correct {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.feedback.incorrect {
    color: #c62828;
    background-color: #ffebee;
}

.full-rectangle, .partial-rectangle {
    display: flex;
    border: 2px solid #333;
    margin-bottom: 10px;
    width: 100%;
    height: 100px;
    background-color: #fff;
    overflow: hidden;
}

.partial-rectangle {
    margin-bottom: 0;
}

/* Para fracciones impropias, mostrar múltiples rectángulos */
.graphic {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 60px;
    max-width: 500px;
    margin: 20px auto;
}

/* Ajustar el tamaño de las partes para múltiples rectángulos */
.full-rectangle .part, .partial-rectangle .part {
    height: 100%;
    flex-grow: 1;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
}

.full-rectangle .part:last-child, 
.partial-rectangle .part:last-child {
    border-right: none;
}

/* Estilo para el número entero en fracciones impropias */
.mixed-number {
    font-size: 24px;
    margin-right: 10px;
    align-self: center;
}