/* Estilos específicos para el juego de vocales */
.imagen-container {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-container {
    text-align: center;
    padding: 20px;
}

.categoria-container h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

/* Diseño del grid de categorías */
.categorias-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Estilo de cada botón de categoría */
.btn-categoria {
    background: white;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 15px 20px;
    width: 180px;
    text-align: center;
    font-family: 'Arial', sans-serif;

}

.niveles {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px; 
    margin-top: 30px;

    
}

.btn-nivel {
    
    background: rgb(91, 212, 208);
    padding: 50px;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 13px;
    width: 30%;
    height: 80px; 
    border-radius: 12px; 
}

.btn-nivel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.imagen-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.palabra-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.letra-espacio {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    background: white;
    transition: all 0.3s ease;
}

.letra-espacio.vocal {
    border-color: var(--color-accent);
    background-color: rgba(255, 230, 109, 0.1);
}

.letra-espacio.correcto {
    background-color: var(--color-secondary);
    color: white;
    transform: scale(1.1);
}

.vocales-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.vocal-btn {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.vocal-btn:hover {
    transform: scale(1.1);
    background: var(--color-secondary);
}

.vocal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Animaciones */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .imagen-container {
        width: 250px;
        height: 250px;
    }

    .letra-espacio {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .vocal-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}