/* Reverse Learning - Centralized Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e8d5c4;
    position: relative;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    margin: 20px;
    margin-top: 20px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    color: #daa520;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2em;
    color: #d4af37;
    margin-bottom: 20px;
}

/* Game Container */
.game-container {
    background: rgba(40, 40, 40, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.score-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.score-item {
    text-align: center;
}

.score-label {
    color: #d4af37;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.score-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #daa520;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Synonym Display */
.synonym-display {
    background: linear-gradient(135deg, #b03a2e 0%, #922b21 100%);
    color: #e8d5c4;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.synonym-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.synonym-words {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.6;
}

.synonym-word {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
}

/* Answer Section */
.answer-section {
    margin-bottom: 30px;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.choice-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 3px solid rgba(184, 134, 11, 0.3);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #e8d5c4;
    transition: all 0.3s ease;
}

.choice-btn:hover:not(:disabled) {
    background: rgba(184, 134, 11, 0.2);
    border-color: #b8860b;
    transform: scale(1.02);
}

.choice-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.choice-btn.correct {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border-color: #1e8449;
    animation: correctPulse 0.5s ease;
}

.choice-btn.incorrect {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #a93226;
    animation: shake 0.5s ease;
}

.choice-btn.revealed {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-color: #d68910;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.correct-answer-display {
    text-align: center;
    padding: 20px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

/* Hints Section */
.hints-section {
    text-align: center;
    margin-bottom: 30px;
}

.hint-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hint-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.hint-btn:disabled {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: scale(1);
}

.hint-display {
    margin-top: 20px;
    padding: 15px;
    background: rgba(243, 156, 18, 0.2);
    border-radius: 10px;
    color: #e8d5c4;
    display: none;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.hint-display.active {
    display: block;
}

/* Control Buttons */
.control-section {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

/* Progress Bar */
.progress-section {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #b8860b 0%, #daa520 100%);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #d4af37;
}

/* Results Modal */
.results-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.results-content {
    background: rgba(26, 26, 26, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.results-title {
    font-size: 2em;
    color: #daa520;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.results-stats {
    font-size: 1.2em;
    color: #e8d5c4;
    margin-bottom: 30px;
    line-height: 1.8;
}

.results-stats strong {
    color: #daa520;
}

.play-again-btn {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.play-again-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 15px;
        margin-top: 60px;
    }

    h1 {
        font-size: 2em;
    }

    .game-container {
        padding: 25px;
    }

    .synonym-display {
        padding: 20px;
    }

    .synonym-words {
        font-size: 1.4em;
    }

    .choices-grid {
        grid-template-columns: 1fr;
    }

    .hint-btn {
        margin: 5px;
        padding: 10px 20px;
    }
}
