
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.quiz-container {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease;
}


@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity:1; transform: translateY(0);}
}


h1 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.progress {
  background-color: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  height: 15px;
  margin-bottom: 15px;
}

#progress-bar {
  height: 100%;
  width: 0;
  background-color: #6c63ff;
  transition: width 0.3s ease;
}

#timer {
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
}

#question {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #222;
  min-height: 60px;
}

#options {
  list-style: none;
  padding: 0;
  margin: 0;
}

#options li {
  background-color: #f1f1f1;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

#options li:hover {
  background-color: #e0e0e0;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#options li.correct {
  background-color: #28a745;
  color: white;
}

#options li.wrong {
  background-color: #dc3545;
  color: white;
}

#options li.correct:hover, #options li.wrong:hover {
  background-color: #28a745;
  transform: scale(1.02);
}
#nextBtn, #restartBtn {
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  background-color: #6c63ff;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s, transform 0.2s;
}

#nextBtn:hover:not(:disabled), #restartBtn:hover {
  background-color: #5750d3;
  transform: scale(1.05);
}

#nextBtn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#result h2 {
  color: #333;
  margin-bottom: 10px;
}

#result p {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
}
