body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

.topbar {
    background: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
}

.card {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
}
.input {
    padding: 10px;
    margin: 10px 0;
    width: 80%;
    font-size: 16px;
}

.palabras button {
    margin: 5px;
}

.seleccionado {
    background: #2196F3;
}

.correcto {
    background: #4CAF50;
    color: white;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
}

.incorrecto {
    background: #f44336;
    color: white;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
}
.stats {
    padding: 10px;
    text-align: center;
}

.progress-bar {
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.progress {
    background: #4CAF50;
    height: 10px;
    border-radius: 5px;
    width: 0%;
}
#personaje-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#personaje {
    width: 200px;
    height: 200px;
    background-image: url('../img/personaje.webp');
    background-repeat: no-repeat;
    background-size: 800px 600px; /* 4 columnas x 3 filas */
}
.level-up {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: gold;
    color: black;
    padding: 20px;
    font-size: 24px;
    border-radius: 15px;
    z-index: 999;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% { transform: translate(-50%, -50%) scale(0.5); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.catalogo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.grid-cursos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.curso-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.curso-img {
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    border-radius: 10px;
    margin-bottom: 10px;
}

.curso-card h3 {
    font-size: 16px;
    margin: 10px 0;
}

.curso-card button {
    width: 100%;
}
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}