Science MCQ Quiz * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { background: #f4f7fb; color: #222; padding: 20px; } .container { max-width: 900px; margin: auto; } .header { background: #1e3a8a; color: white; padding: 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); } .header h1 { font-size: 28px; } .timer { background: #fff; color: #d62828; padding: 10px 18px; border-radius: 8px; font-size: 20px; font-weight: bold; } .quiz-box { background: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); } .question { font-size: 20px; font-weight: bold; margin-bottom: 18px; line-height: 1.6; } .options label { display: block; background: #f1f5f9; padding: 14px; margin-bottom: 12px; border-radius: 10px; cursor: pointer; transition: 0.3s; border: 2px solid transparent; } .options label:hover { background: #dbeafe; border-color: #2563eb; } .options input { margin-right: 10px; } .btn { display: inline-block; background: #2563eb; color: white; border: none; padding: 14px 25px; border-radius: 8px; cursor: pointer; font-size: 18px; margin-top: 10px; transition: 0.3s; } .btn:hover { background: #1d4ed8; } .result { background: #dcfce7; border-left: 6px solid #16a34a; padding: 20px; margin-top: 20px; border-radius: 10px; display: none; font-size: 22px; font-weight: bold; } .correct { background: #dcfce7 !important; border-color: #16a34a !important; } .wrong { background: #fee2e2 !important; border-color: #dc2626 !important; } @media(max-width: 768px) { .header { flex-direction: column; gap: 15px; text-align: center; } .question { font-size: 18px; } } Science MCQ Quiz Time Left: 10:00 1. What is the SI unit of pressure? / दाब की SI इकाई क्या है? A) Newton per square centimetre B) Newton square metre C) Newton per square metre D) Newton square centimetre 2. Why do stars twinkle at night? / तारे रात में क्यों टिमटिमाते हैं? A) Due to advanced light B) Due to atmospheric refraction C) Due to propagation of light D) Due to hot air 3. Which tissue contains flat cells? / किस ऊतक में चपटी कोशिकाएँ होती हैं? A) Plasma cells B) Cuboidal epithelium C) Squamous epithelium D) Mast cells 4. Which part of brain controls breathing? / मस्तिष्क का कौन-सा भाग श्वसन नियंत्रित करता है? A) Mid brain B) Fore brain C) Medulla D) Cerebellum 5. Calculate molecular mass of water H₂O. / जल H₂O का आणविक द्रव्यमान ज्ञात करें। A) 20 u B) 18 u C) 2 u D) 1.8 u Submit Quiz let totalTime = 600; const timer = setInterval(() => { let minutes = Math.floor(totalTime / 60); let seconds = totalTime % 60; seconds = seconds < 10 ? '0' + seconds : seconds; document.getElementById('time').innerText = `${minutes}:${seconds}`; if (totalTime { const label = option.parentElement; if (option.value === answers[key]) { label.classList.add('correct'); } if (selected && option.checked && option.value !== answers[key]) { label.classList.add('wrong'); } }); if (selected && selected.value === answers[key]) { score++; } } const resultBox = document.getElementById('result'); resultBox.style.display = 'block'; resultBox.innerHTML = `You scored ${score} out of 5`; window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }); }