/* Global styles */
body {
  font-family: "Anonymous Pro", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: lightslategray;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  background-color: rgb(250, 250, 250);
  padding: 40px;
  border-radius: 5px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  color: rgb(10, 10, 10);
}

.container:hover {
  transform: scale(1.02);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Quiz Progress */
.quiz-progress {
  text-align: center;
  margin-bottom: 25px;
}

.progress-info {
  font-size: 16px;
  color: rgb(10, 10, 10);
  margin-bottom: 10px;
  font-weight: 600;
}

.progress-bar {
  background-color: #e0e0e0;
  border-radius: 5px;
  height: 8px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 300px;
}

.progress-fill {
  background-color: cadetblue;
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 5px;
}

/* Question Styles */
.question-container {
  text-align: center;
  margin: 20px 0;
  font-size: 20px;
  font-weight: bold;
}

.question-text {
  font-size: 22px;
  color: rgb(10, 10, 10);
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.5;
}

.question-theme {
  background-color: #e8f4f8;
  color: cadetblue;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 500;
  border: 1px solid cadetblue;
}

/* Answer Container */
.answer-container {
  display: grid;
  gap: 12px;
  margin: 25px 0;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .answer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Buttons */
button {
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 12px 28px;
  color: rgb(10, 10, 10);
  background-color: rgb(250, 250, 250);
  border: 2px solid cadetblue;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

button:hover {
  background-color: cadetblue;
  color: rgb(250, 250, 250);
  transform: scale(1.05);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.answer-btn {
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0;
  color: rgb(10, 10, 10);
}

.answer-btn:hover {
  border-color: cadetblue;
  background-color: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: rgb(10, 10, 10);
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.answer-btn.correct {
  background-color: #e8f5e8;
  border-color: darkgreen;
  color: darkgreen;
}

.answer-btn.incorrect {
  background-color: #f8e8e8;
  border-color: #dc3545;
  color: #721c24;
}

.answer-feedback {
  margin-top: 20px;
  padding: 20px;
  border-radius: 5px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  grid-column: 1 / -1;
}

.feedback-result {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.correct-result {
  color: darkgreen;
}

.incorrect-result {
  color: #dc3545;
}

.feedback-explanation {
  margin: 15px 0;
  padding: 15px;
  background-color: rgb(250, 250, 250);
  border-radius: 5px;
  border-left: 4px solid cadetblue;
}

.feedback-theme {
  margin: 15px 0;
  font-style: italic;
  color: cadetblue;
  text-align: center;
}

.next-question-btn {
  margin-top: 20px;
  background-color: cadetblue;
  color: rgb(250, 250, 250);
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.next-question-btn:hover {
  background-color: darkgreen;
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Score Container */
.score-container {
  text-align: center;
  margin: 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: rgb(10, 10, 10);
  background-color: #f8f8f8;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  border: 1px solid #ddd;
}

/* Links */
a {
  color: cadetblue;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: darkgreen;
  text-decoration: none;
}

a.button {
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 12px 28px;
  color: rgb(250, 250, 250);
  background-color: cadetblue;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid cadetblue;
}

a.button:hover {
  background-color: darkgreen;
  border-color: darkgreen;
  transform: scale(1.05);
}

.completion-screen {
  text-align: center;
}

.final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #4caf50;
  color: white;
}

.score-number {
  font-size: 32px;
  font-weight: bold;
}

.score-total {
  font-size: 16px;
}

.percentage {
  font-size: 48px;
  font-weight: bold;
  color: #4caf50;
}

.completion-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.completion-options button {
  width: 100%;
}

.review-item {
  margin: 20px 0;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
}

.review-correct {
  background-color: #e8f5e8;
  border-left: 4px solid #4caf50;
}

.review-incorrect {
  background-color: #ffeaea;
  border-left: 4px solid #f44336;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-number {
  font-weight: bold;
  color: #666;
}

.review-status {
  font-size: 20px;
  font-weight: bold;
}

.review-correct .review-status {
  color: #4caf50;
}

.review-incorrect .review-status {
  color: #f44336;
}

.review-question {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.review-answers {
  margin-bottom: 10px;
}

.review-your-answer {
  color: #666;
  font-size: 14px;
}

.review-correct-answer {
  color: #4caf50;
  font-weight: bold;
  font-size: 14px;
}

.review-explanation {
  font-style: italic;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

a.button {
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 12px 28px;
  color: #fff;
  background-color: #4caf50;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

a.button:hover {
  background-color: #45a049;
}
