/* ------------------- Quiz container ------------------- */
.quiz-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

/* Question block */
.question-block {
  margin-bottom: 20px;
}
.question-block p {
  font-size: 16px;
  margin: 8px 0;
}
.question-block label {
  display: block;
  margin: 5px 0;
  cursor: pointer;
}

/* Navigation buttons */
.nav-buttons {
  text-align: center;
  margin-top: 20px;
}

/* Navigation buttons */
.submit-buttons {
  text-align: center;
  margin-top: 20px;
   margin: 0 5px;
  padding: 8px 15px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease-in-out;

}

.nav-buttons button {
  margin: 0 5px;
  padding: 8px 15px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease-in-out;
}
.nav-buttons button:hover:not(:disabled) {
  background: #2980b9;
}
.nav-buttons button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Progress bar */
.progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 8px;
  height: 20px;
  margin-bottom: 10px;
  overflow: hidden;
}
#progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.3s ease-in-out;
}

/* Result section */
.quiz-result {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  background: #f7fcf7;
  border: 1px solid #cce5cc;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.quiz-result h2 {
  color: #2e7d32;
}

/* Category selector */
.category-select {
  margin-top: 15px;
}
.category-select select, 
.category-select button {
  padding: 6px 12px;
  font-size: 14px;
  margin-left: 8px;
}

/* Review section */
.review-section {
  max-width: 700px;
  margin: 20px auto;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
}
.review-block {
  margin-bottom: 20px;
}
.review-block p {
  margin: 4px 0;
}
.review-block p[style*="color:green"] {
  background: #e8f5e9;
  padding: 4px 6px;
  border-radius: 4px;
}
.review-block p[style*="color:red"] {
  background: #ffebee;
  padding: 4px 6px;
  border-radius: 4px;
}
.review-block p[style*="color:orange"] {
  background: #fff8e1;
  padding: 4px 6px;
  border-radius: 4px;
}
 
        .correct { color: green; font-weight: bold; }
        .wrong { color: red; font-weight: bold; }
        .not-answered { color: orange; font-style: italic; }
    
select {
  width: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 14px;

}
