@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-bg: #f0f4f8; --secondary-bg: #ffffff; --primary-text: #333;
    --accent-color: #4a90e2; --correct-color: #50c878; --incorrect-color: #e57373;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: var(--primary-bg); color: var(--primary-text); padding: 10px; }
.container { width: 100%; max-width: 800px; background: var(--secondary-bg); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 30px; text-align: center; }

/* اسکرین دکھانے اور چھپانے کا نظام */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.screen h1 { color: var(--accent-color); margin-bottom: 10px; }
.screen p { font-size: 1.1rem; margin-bottom: 20px; }
.btn { padding: 12px 25px; font-size: 1rem; font-weight: 600; border: none; border-radius: 10px; background-color: var(--accent-color); color: white; cursor: pointer; transition: background-color 0.3s, transform 0.2s; margin: 5px; }
.btn:hover:not(:disabled) { background-color: #357abd; transform: translateY(-2px); }
.btn:disabled { background-color: #aaa; cursor: not-allowed; }
.level-selection { margin: 20px 0; font-size: 1.2rem; }
#level-select { padding: 8px; font-size: 1rem; border-radius: 5px; margin-left: 10px; border: 1px solid #ccc; }
#game-screen { text-align: left; }
.hud { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; font-size: 1.1rem; font-weight: 600; }
.hud-item { margin: 5px; }
#progress-bar-container { width: 100%; height: 15px; background-color: #e0e0e0; border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
#progress-bar { width: 0%; height: 100%; background-color: var(--correct-color); transition: width 0.5s ease-in-out; }
#question-text { font-size: 1.5rem; margin: 20px 0; min-height: 60px; text-align: center; font-weight: 600; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin: 20px 0; }
.option-btn { width: 100%; padding: 15px; font-size: 1.1rem; border: 2px solid var(--accent-color); border-radius: 10px; background-color: white; color: var(--accent-color); cursor: pointer; transition: all 0.2s; text-align: center; }
.option-btn:hover:not(:disabled) { background-color: var(--accent-color); color: white; transform: scale(1.02); }
.option-btn.correct { background-color: var(--correct-color); color: white; border-color: var(--correct-color); }
.option-btn.incorrect { background-color: var(--incorrect-color); color: white; border-color: var(--incorrect-color); }
.option-btn:disabled { cursor: not-allowed; opacity: 0.8; }
.btn-group { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 20px; }