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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.quiz-wrapper {
  width: 100%;
  max-width: 450px;
}

.quiz-box {
  background-color: #111;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  color: white;
}

.question-counter {
  background: linear-gradient(to right, orange, orangered);
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.timer {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffeb3b;
}

h2 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
}

.option-list {
  list-style: none;
  padding: 0;
}

.option-list li {
  background-color: #222;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
}

.option-list li:hover {
  background-color: #333;
}

.next-button, .restart-button {
  display: block;
  margin: 20px auto 0;
  padding: 12px 30px;
  background-color: orange;
  color: #111;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.next-button:hover, .restart-button:hover {
  background-color: orangered;
}

.hidden {
  display: none;
}

.result {
  background: #111;
  padding: 25px;
  text-align: center;
  color: white;
  border-radius: 15px;
}