/* Estilos para el sistema de challenge */

.challenge-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
}

.challenge-container h2 {
    color: #6a44e0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.challenge-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.challenge-section h3 {
    color: #444;
    margin-bottom: 1rem;
}

/* Estilos para el laberinto */
#maze-container {
    margin: 1rem auto;
    max-width: 400px;
}

.maze-grid {
    display: grid;
    gap: 1px;
    background-color: #ddd;
    border: 2px solid #333;
    user-select: none;
}

.maze-cell {
    width: 100%;
    aspect-ratio: 1;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.1s;
}

.maze-wall {
    background-color: #333;
    cursor: not-allowed;
}

.maze-start {
    background-color: #4caf50;
    position: relative;
}

.maze-start::after {
    content: 'Inicio';
    position: absolute;
    font-size: 0.6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.maze-end {
    background-color: #f44336;
    position: relative;
}

.maze-end::after {
    content: 'Fin';
    position: absolute;
    font-size: 0.6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.maze-path {
    background-color: #6a44e0;
}

/* Estilos para el desafío matemático */
#math-question {
    font-weight: bold;
    margin-bottom: 1rem;
}

#math-answer {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 200px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Estilos para el botón y mensajes */
.challenge-button {
    display: block;
    margin: 1.5rem auto;
    padding: 0.75rem 2rem;
    background-color: #6a44e0;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.challenge-button:hover {
    background-color: #5535b8;
}

.challenge-button:disabled {
    background-color: #9b87d9;
    cursor: not-allowed;
}

.challenge-message {
    text-align: center;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 3px;
}

.challenge-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.challenge-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}