/* General Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #f0f4ff, #e0eaff);
  margin: 0;
  padding: 0;
}

#exam-container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 20px;
}

/* Header and Timer */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#timer {
  font-size: 20px;
  font-weight: bold;
  color: #ff4d4d;
}

button {
  background-color: #00cc7a;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Question Palette */
#question-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

#question-palette button {
  width: 40px;
  height: 40px;
  font-weight: bold;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
}

#live-students{
  color: #336699;
  font-size: 20px;
  font-weight: bold;
}

#question-palette button.answered {
  background-color: #c8e6c9;
}

#question-palette button.current {
  border: 2px solid #007bff;
}

/* Question Box */
#question-box {
  margin-bottom: 20px;
}

#question-text {
  font-size: 22px;
  margin-bottom: 10px;
}

#question-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Options */
#options-list {
  list-style: none;
  padding: 0;
}

#options-list li {
  background-color: #f9f9f9;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#options-list li:hover {
  background-color: #e0f7fa;
}

#options-list li.selected {
  background-color: #d0f0c0;
  border-left: 5px solid #4caf50;
}

/* Review Box */
#review-box {
  background-color: #fefefe;
  border-top: 2px solid #007bff;
  padding-top: 20px;
}

#review-box h3 {
  color: #007bff;
}

.correct {
  color: green;
  font-weight: bold;
}

.wrong {
  color: red;
  font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  #question-palette {
    justify-content: center;
  }

  button {
    padding: 6px 12px;
    font-size: 14px;

  }

  #question-text {
    font-size: 18px;
  }
}
