:root {
  --bg: #ffffff;
  --text: #222;
  --card: #f2f2f2;
  --primary: #4caf50;
}

body.dark {
  --bg: #121212;
  --text: #ffffff;
  --card: #1e1e1e;
}

* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  transition: 0.3s;
}

.quiz-container {
  max-width: 420px;
  margin: auto;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.timer-bar {
  height: 6px;
  background: #ccc;
  margin: 10px 0;
  border-radius: 10px;
}

#timerProgress {
  height: 100%;
  width: 100%;
  background: var(--primary);
  transition: width 1s linear;
}

#options button {
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  border: none;
  border-radius: 8px;
  background: #ddd;
  font-size: 16px;
}

#options button.correct { background: #4caf50; color: white; }
#options button.wrong { background: #f44336; color: white; }

#nextBtn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
}

#themeToggle {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.leaderboard {
  max-width: 420px;
  margin: 20px auto;
}
button {
  touch-action: manipulation;
}
## Advanced Quiz App
- Dark / Light Mode
- Real-time Timer
- Open Trivia DB API
- Persistent Leaderboard
- Mobile-First Design

### Live Demo
🔗 https://yourusername.github.io/quiz-website
