body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

#quiz-container, #welcome-screen {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 400px;
}

#question-counter {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}
/*
#question {
  font-size: 20px;
  margin-bottom: 20px;
  white-space: pre-line; Preserve real newline characters in #question. This block added render \n in JSON render as new line in HTML 
}
*/
#question {
  font-size: 20px;
  margin-bottom: 20px;
  white-space: pre-wrap; /* Preserve newlines, tabs, and multiple spaces */
}

#options {
  list-style-type: none;
  padding: 0;
}

#options li {
  margin-bottom: 10px;
}

#options button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#options button:hover:not(.disabled) {
  background-color: #0056b3;
}

#options button.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#options button.correct {
  background-color: #007bff;
  cursor: not-allowed;
}

#options button.selected {
  background-color: #fd7e14; /* Orange for previously selected answer */
}

.submit-button {
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.submit-button:hover {
  background-color: #218838;
}

#button-group {
  display: flex;
  gap: 10px; /* Space between buttons */
  margin-top: 20px;
  justify-content: center;
}

#previous, #next, #pause {
  flex: 1; /* Equal widths */
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#previous, #next {
  background-color: #28a745;
  color: white;
  display: none; /* Hide by default */
}

#previous:hover, #next:hover {
  background-color: #218838;
}

#pause {
  background-color: #ffc107;
  color: black;
}

#pause:hover {
  background-color: #e0a800;
}

#timer, #feedback {
  margin-top: 20px;
  font-size: 16px;
}

#feedback {
  font-weight: bold;
}

#time {
  font-weight: bold;
}

#start-quiz-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#start-quiz-form input[type="text"] {
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

#start-quiz-form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#start-quiz-form button:hover {
  background-color: #0056b3;
}