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

.vocabulary-game-title {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

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

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

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

.start-btn {
    background-color: #4CAF50;
    color: white;
}

.start-btn:hover {
    background-color: #3d8b40;
}

.reset-btn {
    background-color: #FF9800;
    color: white;
}

.reset-btn:hover {
    background-color: #e68900;
}

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

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 auto;
    max-width: 800px;
}

.card {
    height: 120px;
    background-color: #1a73e8;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card:hover {
    transform: scale(1.02);
}

.card.flipped {
    transform: rotateY(180deg);
    background-color: white;
    color: #333;
    border: 2px solid #1a73e8;
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.card.matched {
    background-color: #4CAF50;
    color: white;
    cursor: default;
}

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

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

.success-message {
    color: #4CAF50;
}

.error-message {
    color: #F44336;
}

@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .game-board {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
}
