/* === GAME CONTAINER === */ #game-container { min-height: 500px; position: relative; } .game-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; } .spinner { width: 50px; height: 50px; border: 4px solid #e2e8f0; border-top-color: #03c343; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 20px; } @keyframes spin { to { transform: rotate(360deg); } } /* === GAME MENU === */ .game-menu { text-align: center; padding: 40px 20px; } .game-menu h2 { font-size: 2.5rem; color: #010b14; margin-bottom: 10px; } .game-menu h2 span { color: #03c343; } .game-subtitle { color: #4A5568; margin-bottom: 30px; font-size: 1.1rem; } .game-mode-selection { margin-bottom: 30px; } .game-mode-btn { display: inline-block; padding: 15px 35px; margin: 8px; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all 0.3s; color: #2D3748; } .game-mode-btn:hover { border-color: #03c343; background: #f8fff5; } .game-mode-btn.active { background: #03c343; color: #fff; border-color: #03c343; } .game-mode-btn .mode-icon { display: block; font-size: 2rem; margin-bottom: 5px; } /* === CATEGORY SELECTION === */ .category-selection { margin-bottom: 25px; } .category-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: #010b14; } .category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 15px; } .cat-btn { padding: 8px 18px; border: 2px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; color: #4A5568; } .cat-btn:hover { border-color: #03c343; color: #03c343; } .cat-btn.active { background: #03c343; color: #fff; border-color: #03c343; } /* === GAME PLAY AREA === */ .game-play { display: none; } .game-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #f8fff5; border-radius: 12px; margin-bottom: 20px; } .game-header-item { text-align: center; } .game-header-label { font-size: 0.8rem; color: #718096; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; } .game-header-value { font-size: 1.5rem; font-weight: 700; color: #010b14; } .game-header-value.time-warning { color: #b82105; animation: pulse 0.5s infinite; } @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } } /* === QUESTION AREA === */ .question-area { text-align: center; padding: 30px; background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 20px; border: 2px solid #e2e8f0; } .question-number { color: #718096; font-size: 0.9rem; margin-bottom: 10px; } .question-text { font-size: 2.5rem; font-weight: 700; color: #010b14; margin-bottom: 15px; } .question-type { display: inline-block; background: #f8fff5; color: #03c343; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; } /* === TIMER BAR === */ .timer-bar-container { height: 6px; background: #edf2f7; border-radius: 3px; margin-bottom: 20px; overflow: hidden; } .timer-bar { height: 100%; background: #03c343; border-radius: 3px; transition: width 0.1s linear; } .timer-bar.danger { background: #b82105; } /* === OPTIONS === */ .options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 400px; margin: 0 auto; } .option-btn { padding: 18px; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; font-size: 1.3rem; font-weight: 700; transition: all 0.2s; color: #2D3748; } .option-btn:hover { border-color: #03c343; background: #f8fff5; transform: scale(1.02); } .option-btn.correct { background: #03c343; color: #fff; border-color: #03c343; animation: correctFlash 0.3s; } @keyframes correctFlash { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } .option-btn.wrong { background: #b82105; color: #fff; border-color: #b82105; animation: shake 0.3s; } @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } .option-btn:disabled { cursor: not-allowed; opacity: 0.7; } /* === POWER-UPS === */ .powerups { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; } .powerup-btn { padding: 8px 16px; border: 2px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; color: #4A5568; } .powerup-btn:hover { border-color: #f5a524; background: #fffbe6; } .powerup-btn.used { opacity: 0.4; cursor: not-allowed; } .powerup-btn .powerup-icon { margin-right: 4px; } /* === BOSS QUESTION === */ .boss-indicator { display: inline-block; background: linear-gradient(135deg, #b82105, #f7630c); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; animation: bossGlow 1s infinite alternate; } @keyframes bossGlow { from { box-shadow: 0 0 5px rgba(184,33,5,0.3); } to { box-shadow: 0 0 15px rgba(184,33,5,0.6); } } /* === HEARTS === */ .hearts { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; } .heart { font-size: 1.8rem; transition: all 0.3s; } .heart.lost { opacity: 0.2; filter: grayscale(1); } /* === STREAK === */ .streak-indicator { background: linear-gradient(135deg, #f5a524, #f7630c); color: #fff; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; display: inline-block; } /* === RESULTS === */ .game-results { display: none; text-align: center; padding: 40px 20px; } .results-header { margin-bottom: 30px; } .results-header h2 { font-size: 2rem; } .results-score { font-size: 4rem; font-weight: 700; color: #03c343; } .results-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; max-width: 600px; margin: 20px auto; } .stat-card { background: #f8fff5; border-radius: 12px; padding: 20px; } .stat-value { font-size: 1.8rem; font-weight: 700; color: #010b14; } .stat-label { font-size: 0.85rem; color: #718096; } .results-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 25px; } .results-buttons .btn { min-width: 150px; } .results-missed { margin-top: 25px; text-align: left; } .results-missed h3 { margin-bottom: 15px; text-align: center; } .missed-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: #fff5f5; border-radius: 8px; margin-bottom: 8px; border-left: 4px solid #b82105; } .missed-question { font-weight: 700; } .missed-answer { color: #03c343; } /* === BADGES === */ .badges-earned { margin: 20px 0; } .badge { display: inline-block; background: #f8fff5; border: 2px solid #f5a524; border-radius: 50%; width: 60px; height: 60px; line-height: 56px; font-size: 1.5rem; margin: 5px; text-align: center; } /* === SHARE === */ .share-buttons { margin: 20px 0; } .share-btn { display: inline-block; padding: 10px 20px; margin: 5px; border-radius: 25px; color: #fff; font-weight: 600; cursor: pointer; border: none; transition: opacity 0.2s; } .share-btn:hover { opacity: 0.9; } .share-fb { background: #1877F2; } .share-twitter { background: #000; } .share-wa { background: #25D366; } .share-download { background: #010b14; } /* === RESPONSIVE GAME === */ @media (max-width: 768px) { .question-text { font-size: 1.8rem; } .options-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .option-btn { padding: 14px; font-size: 1.1rem; } .game-header { flex-wrap: wrap; gap: 10px; } .game-header-item { flex: 1; min-width: 70px; } .game-mode-btn { padding: 12px 20px; font-size: 0.9rem; } .category-grid { gap: 5px; } .cat-btn { font-size: 0.8rem; padding: 6px 12px; } } @media (max-width: 480px) { .question-text { font-size: 1.4rem; } .option-btn { padding: 12px; font-size: 1rem; } }