body {
  font-family: Arial, sans-serif;
  background-color: #1e1e2f; /* dark blue background */
  color: #f0f0f0;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  width: 100%;
}

#start-screen {
  text-align: center;
  background-color: #2a2a3b;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  max-width: 400px;
  margin: auto;
}

#start-screen input {
  width: 80%;
  padding: 12px;
  margin: 20px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}
#start-screen input:hover {
  outline: 2px solid #4caf50;
  background-color: #252536;
}

#start-screen button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#start-screen button:hover {
  background-color: #45a049;
}
 
.question-container {
  background-color: #2a2a3b;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.hidden {
  display: none !important;
}
#quiz-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #1e1e2f;
  color: #f0f0f0;
  padding: 20px;
  position: relative;
}

.question-container {
  background-color: #2a2a3b;
  padding: 40px;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  font-size: 20px;
}
#options label {
  display: block;
  background-color: #3a3a4d;
  padding: 8px 12px;       /* Reduce padding inside each option */
  margin-bottom: 4px;      /* Reduce vertical space between options */
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

#options label:hover {
  background-color: #50506b;
}

#options input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.2);
}
.nav button,
#quiz-screen button {
  padding: 12px 20px;
  font-size: 18px;
  margin: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav button:hover,
#quiz-screen button:hover {
  background-color: #45a049;
}
#overview {
  position: absolute;
  top: 120px;
  right: 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Adjust columns if needed */
  gap: 12px;
  justify-content: center;     /* Center buttons horizontally inside the grid */
  align-content: center;       /* Center buttons vertically if space allows */

  background-color: #2a2a3b;
  padding: 20px;
  border-radius: 12px;
  min-width: 180px;
  max-height: 500px;

  overflow: hidden;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}


#overview::-webkit-scrollbar {
  display: none;
}

/* Buttons in the grid */
#overview button {
  width: 50px;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 50%; /* Makes it a circle */
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#overview button.answered {
  background-color: #4caf50; /* Green */
}

#overview button.not-answered {
  background-color: #f44336; /* Red */
}

#overview button.marked {
  background-color: #9c27b0; /* Purple */
}

#overview button.not-visited {
  background-color: #9e9e9e; /* Gray */
}

#overview button.answered-review {
  background-color: #2196f3; /* Blue */
}

#overview button:hover {
  background-color: #50506b;
}
#timer {
  font-size: 24px;
  font-weight: bold;
  color: #ffd700; /* Golden yellow */
  margin-bottom: 20px;
  text-align: right;
}
#fixed-timer {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 24px;
  font-weight: bold;
  color: #ffd700;
}
.quiz-body {
  display: flex;
  align-items: flex-start;
  gap: 40px;

  /* Fixed width and centered */
  width: 1000px;
  max-width: 95%;
  margin-left: 40px; /* shift slightly to the right */
}
#question-container {
  background-color: #2a2a3b;
  padding: 20px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

#quiz-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1e1e2f;
  color: #f0f0f0;
  min-height: 100vh;
  position: relative;
  padding: 40px 0;
}

#circle-timer-container {
  position: absolute;
  top: 40px;
  left: 40px;
}

#circle-timer {
  width: 100px;
  height: 100px;
  background-color: #3a3a4d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #ffd700; /* Golden yellow */
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.submit-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color:#4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.hidden {
  display: none;
}

#submit-button:hover {
  background-color: #45a049;
}
#question-text {
  margin-bottom: 20px;
}
.not-answered {
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-weight: bold;
}
#result-screen {
  max-height: 100vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
#results {
  
  padding: 10px;
  box-sizing: border-box;
   overflow: unset;
  max-height: unset;
}
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* disables double scroll */
  height: 100vh;
}
