/* Styles pour le jeu du Pendu */
.hangman-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hangman-title {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.hangman-description {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.hangman-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hangman-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.start-hangman-btn {
    background-color: #e74c3c;
    color: white;
}

.start-hangman-btn:hover {
    background-color: #c0392b;
}

.reset-hangman-btn {
    background-color: #3498db;
    color: white;
}

.reset-hangman-btn:hover {
    background-color: #2980b9;
}

.hint-btn {
    background-color: #9b59b6;
    color: white;
}

.hint-btn:hover {
    background-color: #8e44ad;
}

.hint-btn:disabled {
    background-color: #d2b4de;
    cursor: not-allowed;
}

.difficulty-selector {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.word-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 50px;
}

.letter-box {
    width: 30px;
    height: 40px;
    border-bottom: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.letter-box.special-char {
    border-bottom: none;
}

.letter-box.guessed {
    color: #2ecc71;
}

.letter-box.revealed {
    color: #e74c3c;
}

.hint-container {
    margin: 15px 0;
    font-style: italic;
    color: #9b59b6;
    min-height: 24px;
    visibility: hidden;
}

.keyboard-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.keyboard-row {
    display: flex;
    gap: 5px;
}

.key-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.key-button:hover {
    background-color: #e9ecef;
}

.key-button:disabled {
    cursor: not-allowed;
}

.key-button.correct-key {
    background-color: #2ecc71;
    color: white;
}

.key-button.wrong-key {
    background-color: #e74c3c;
    color: white;
}

.hangman-canvas-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.hangman-canvas {
    border: 1px solid #ddd;
    background-color: white;
}

.hangman-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    font-weight: bold;
    color: #555;
}

.hangman-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    min-height: 30px;
}

.success-message {
    color: #2ecc71;
}

.error-message {
    color: #e74c3c;
}

.final-message {
    color: #3498db;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .letter-box {
        width: 25px;
        height: 35px;
        font-size: 1.3em;
    }
    
    .key-button {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .hangman-canvas {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .letter-box {
        width: 20px;
        height: 30px;
        font-size: 1.1em;
    }
    
    .key-button {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
    
    .hangman-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .keyboard-row {
        gap: 3px;
    }
}
