:root {
    --primary-color: #0d9488;
    /* Teal */
    --secondary-color: #14b8a6;
    --accent-color: #f59e0b;
    --background-color: #f0fdfa;
    --text-color: #134e4a;
    --paper-color: #feffff;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-container {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    max-height: 700px;
    background-color: var(--paper-color);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

#game-header {
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.stat-value {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

#game-area {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.content-split {
    display: flex;
    width: 100%;
    gap: 30px;
}

.text-section {
    flex: 1;
    background-color: #fffbeb;
    /* Creamy paper like */
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.text-section::-webkit-scrollbar {
    width: 8px;
}

.text-section::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.text-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
}

.question-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    font-family: 'Segoe UI', sans-serif;
}

.question-display h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #334155;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.answer-btn {
    padding: 15px;
    text-align: left;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: #475569;
}

.answer-btn:hover {
    background-color: #f1f5f9;
    border-color: var(--primary-color);
}

.answer-btn.correct {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.answer-btn.wrong {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

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

/* Modal */
.hidden {
    display: none !important;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    font-family: 'Segoe UI', sans-serif;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
}

@media (max-width: 700px) {
    .content-split {
        flex-direction: column;
    }

    #game-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}