:root {
    --color-tunisian: #b35248; /* Warm Terracotta */
    --color-english: #639a97; /* Cool Teal */
    --color-background: #f4f7f6;
    --color-selected: gold;
    --color-correct: #32c53a;
    --color-incorrect: #e74c3c;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-background);
    color: #333;
    margin: 0;
    padding: 0;
}

.game-header {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.score-display, .combo-display {
    font-size: 1.2em;
    font-weight: bold;
}

.combo-display {
    color: #555;
}

/* Combo Animation Effects */
@keyframes combo-boost {
    0% { transform: scale(1); color: orange; }
    50% { transform: scale(1.5); color: #ff0000; }
    100% { transform: scale(1); color: #555; }
}

.combo-boost {
    animation: combo-boost 0.3s ease-in-out;
}

.match-game-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 40px 20px;
}

.word-column {
    width: 300px;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.word-card {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

/* Tunisian Cards Styling */
#tunisian-words .word-card {
    background-color: var(--color-tunisian);
    color: white;
}

/* English Cards Styling */
#english-words .word-card {
    background-color: var(--color-english);
    color: white;
}

/* Selected State */
.word-card.selected {
    border-color: var(--color-selected);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Temporary Correct Match State (Used for the initial flash/animation) */
.word-card.correct {
    background-color: var(--color-correct) !important; 
    border-color: var(--color-correct);
    color: white;
}

/* PERMANENT LOCKED GREEN STATE */
.word-card.correct-locked {
    background-color: var(--color-correct) !important; /* VITAL: Overrides default color */
    color: white; 
    border-color: var(--color-correct);
    cursor: default; /* Remove pointer cursor */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1; 
    height: auto;
    padding: 15px; 
}

/* Incorrect Match State (Temporary) */
.word-card.incorrect {
    background-color: var(--color-incorrect);
    border-color: var(--color-incorrect);
    animation: shake 0.5s;
}

/* Animation for incorrect match */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}