/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #333;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 20px;
}

header h1 {
  font-size: 2.5em;
  color: #444;
  margin: 0;
}

header p {
  font-size: 1.2em;
  color: #666;
}

/* Card Style */
.quiz-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 20px 0;
  transition: transform 0.3s;
  animation: fadeInUp 0.5s;
}

.quiz-card:hover {
  transform: scale(1.02);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Question & Options */
#question {
  font-size: 1.4em;
  margin-bottom: 15px;
}

#options li {
  list-style: none;
  background: #f1f1f1;
  padding: 10px;
  margin: 8px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#options li:hover {
  background: #e0e0e0;
}

/* Visual Feedback */
.correct {
  background: #4caf50 !important;
  color: #fff;
}
.wrong {
  background: #f44336 !important;
  color: #fff;
}

/* Timer Styles */
.timer {
  margin-top: 15px;
  font-size: 1.2em;
  color: #333;
}

#timer.low-time {
  color: #f44336;
  font-weight: bold;
}

/* Button Style */
#next-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 15px;
}

#next-btn:hover {
  background: #45a049;
}

/* Result Dialog Overlay */
/* Dialog Overlay: Set display to flex by default */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;  /* Changed from display: none; */
  justify-content: center;
  align-items: center;
}

/* Hidden class will override the dialog overlay when needed */
.hidden {
  display: none;
}

/* (Rest of your styles.css remains unchanged) */


.dialog-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

/* Hidden Class */
.hidden {
  display: none;
}
