body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

/* Game container */
.game-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Grid styles */
#grille {
    flex: 0 0 auto;
}

.crossword-grid {
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #333;
}

.crossword-grid td {
    width: 40px;
    height: 40px;
    position: relative;
    padding: 0;
}

.active-cell {
    background-color: white;
    border: 1px solid #ccc;
}

.inactive-cell {
    background-color: transparent;
    border: none;
}

.crossword-cell {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: none;
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 12px;
    color: #666;
    z-index: 1;
}

.crossword-cell.incorrect {
    background-color: #ffebee;
}

.crossword-cell.correct {
    background-color: #efffeb;
}

/* Clues styles */
#indices {
    display: flex;
    gap: 30px;
}

.clues-column {
    flex: 1;
    max-width: 300px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clues-column h3 {
    color: #333;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.clues-column p {
    margin: 10px 0;
    line-height: 1.4;
    font-size: 14px;
}

/* Controls */
.controls {
    text-align: center;
    margin-top: 20px;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}

#message {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    font-size: 18px;
}

.success {
    color: #28a745;
    font-weight: bold;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 1024px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    #indices {
        width: 100%;
        justify-content: space-between;
    }
    
    .clues-column {
        max-width: none;
    }
}