/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body y fondo general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74ebd5, #9face6);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Contenedor principal */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 700px;
    animation: fadeIn 0.6s ease-in-out;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezados */
h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
    color: #1a1a1a;
}

h2 {
    font-size: 1.4em;
    color: #333;
}

/* Secciones */
.section {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Inputs */
input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #7f5af0;
}

/* Botones */
button {
    background-color: #7f5af0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px 0;
}

button:hover {
    background-color: #6246ea;
    transform: scale(1.02);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

button:disabled:hover {
    background-color: #cccccc;
}

/* Tabla estilo como en la imagen */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: center;
}

th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}

td {
    background-color: white;
}


/* Feedback */
#feedback {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilo destacado para el nombre del estudiante */
#welcome-message {
    font-size: 1.6em;
    color: #f5d105;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Contenedor de puntaje mejorado */
.score-container {
    background-color: #daf5bc;
    color: #212529;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

#score {
    font-size: 1.5em;
    color: #15722b;
}