body {
  font-family: "Roboto", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
  padding-top: 20px;
}

.flagged {
  background-color: yellow;
  color: black;
}


.quiz-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 900px;
  text-align: center;
  overflow: hidden;
  margin-top: 70px;
  padding-bottom: 30px; /* Added padding to ensure space for footer */
}

#progress-container {
  width: 100%;
  margin-bottom: 20px;
}

#progress-bar {
  height: 20px;
  background-color: #d32d41;
  width: 0;
  transition: width 0.3s;
}

#timer {
  font-size: 20px;
  margin-bottom: 20px;
  color: #012169;
}

#question-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 10px;
  padding: 0;
}

#question-numbers div {
  padding: 5px;
  margin: 1px; /* Reduced margin */
  background-color: #eee;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #005eb8;
  color: #005eb8;
}

#question-numbers .active {
  background-color: #d32d41;
  color: white;
}

#question-container {
  margin-bottom: 20px;
}

#question-container h2 {
  margin-bottom: 20px;
  color: #005eb8;
}

#question-container label {
  display: block;
  padding: 10px;
  margin: 5px 0;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

#question-container input[type="radio"] {
  display: none;
}

#question-container input[type="radio"]:checked+label {
  background: #e0e0e0;
}

#next-button {
  padding: 10px 20px;
  background-color: #d32d41;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px;
}

#next-button:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

#feedback {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
  display: none;
}

#feedback.correct {
  color: #008000;
}

#feedback.wrong {
  color: #d32d41;
}

#score-container {
  margin-top: 20px;
  font-size: 24px;
  color: #005eb8;
}

.horizontal {
  flex-direction: row;
}

#timer-bar-container {
  width: 100%;
  background-color: #e0e0e0;
  height: 20px;
  border-radius: 5px;
  margin-top: 10px;
}

#timer-bar {
  width: 100%;
  height: 100%;
  background-color: #d32d41;
  border-radius: 5px;
  transition: width 1s linear;
}

.chart-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 20px;
}

.chart-container {
  width: 30%;
  height: 200px;
  margin: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-container p {
  margin-top: 0;
  margin-bottom: 0px;
  font-weight: bold;
  text-align: center;
}

.button-container {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .chart-container {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
  }

  #question-numbers {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12 items per row */
    gap: 2px; /* Reduced gap */
    justify-items: center;
    padding: 0 5px; /* Added padding to prevent overflow */
  }

  #progress-container {
    margin-bottom: 10px;
    padding: 0 5px; /* Added padding to prevent overflow */
  }

  .quiz-container {
    padding: 10px;
    width: 95%; /* Reduced width for better visibility */
  }
}

@media (max-width: 768px) {
  .header-content-container {
    flex-direction: column;
    margin-top: 300px;
  }

  .nav-buttons {
    flex-direction: column;
    display: none;
  }

  .nav-button {
    width: 100%;
    padding: 12px;
  }

  .header-container {
    padding-right: 0;
  }

  .sidebar {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .burger-menu {
    display: flex;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header-content-container {
    margin-top: 150px;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .header-content-container {
    margin-top: 10px;
  }
}
