/* Chinese Idiom Chain Game Styles */

.idiom-game-area {
    width: 100%;
    max-width: 500px;
    margin: 20px auto; /* Add more margin */
    padding: 20px;
    box-sizing: border-box;
    background-color: #f8f9fa; /* Light background */
    border-radius: 15px; /* Rounded corners */
}

.current-idiom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.idiom-display {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.1em;
}

.idiom-meaning {
    font-size: 1.1em;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.4;
}

.answer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Add a subtle border */
    padding: 20px 15px;
    border-radius: 12px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Softer shadow */
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.option-btn:active {
    transform: translateY(-1px);
}

.option-btn.correct {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    animation: correctAnswer 0.6s ease;
}

.option-btn.incorrect {
    background: linear-gradient(45deg, #f44336, #ff7961);
    animation: incorrectAnswer 0.6s ease;
}

.option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes incorrectAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.game-feedback {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-feedback.correct {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
}

.game-feedback.incorrect {
    background: linear-gradient(45deg, #f44336, #ff7961);
    color: white;
}

.game-feedback.hint {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    color: white;
}

.game-feedback.empty {
    background: transparent;
    border: 2px dashed #e0e0e0; /* Lighter border color */
    color: #aaa; /* Lighter text color */
}

/* Game card color for idiom game */
.game-card.idiom {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* Responsive design for idiom game */
@media (max-width: 600px) {
    .idiom-game-area {
        padding: 10px;
    }
    
    .current-idiom {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .idiom-display {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .idiom-meaning {
        font-size: 0.9em;
    }
    
    .answer-options {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .option-btn {
        padding: 15px 10px;
        font-size: 1.1em;
        min-height: 60px;
    }
    
    .game-feedback {
        font-size: 1em;
        padding: 12px;
        min-height: 40px;
    }
}

@media (max-width: 400px) {
    .idiom-display {
        font-size: 1.5em;
    }
    
    .option-btn {
        font-size: 1em;
        padding: 12px 8px;
        min-height: 50px;
    }
}