/* General Styles */
body {
  font-family: sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  max-width: 900px; /* Limit maximum width */
  width: 90%; /* Make it responsive */
  padding: 20px;
  border: 1px solid #ccc; 
  border-radius: 5px;
  background-color: #f8f4e9;
}

/* Typography */
html {
  font-size: 16px; /* Base font size */
}

h1 {
  font-size: 22px; 
  margin-bottom: 10px;
}

h2 {
  font-size: 14px; 
}

h4 {
  font-size: 20px; 
  margin-bottom: 8px;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 15px;
}

.text-block {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.question {
  font-size: 15px; 
  margin-top: 20px;
  margin-bottom: 15px;
}

.answer-list li {
  font-size: 14px; 
}

/* Image Styling */
.image-container {
  text-align: center;
  margin-bottom: 20px;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

.image-caption {
  font-size: 12px; 
  font-style: italic;
  text-align: center;
  margin-top: 5px;
}

/* Answer Styling */
.answer-list {
  list-style: none;
  padding: 0;
}

.answer-list li {
  margin-bottom: 10px;
}

.answer-list input[type="radio"] {
  margin-right: 5px;
}

/* Result Styling */
.result-box {
  border: 2px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold; 
}

.result-box.correct {
  background-color: lightgreen;
  color: green;
}

.result-box.incorrect {
  background-color: lightpink;
  color: red;
}

.result-title {
  text-align: center;
  margin-bottom: 20px;
}

.result-image {
  max-width: 90%;
  height: auto;
  margin-bottom: 8px; 
  display: block; 
}

.result-score {
  font-weight: bold;
  color: blue; 
  font-size: 20px; 
  margin-top: 8px;
}

/* Button Styling */
.button-container {
  display: flex;
  justify-content: space-between;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.result-text-correct {
  color: green;
  font-weight: bold;
}

.result-text-incorrect {
  color: red;
  font-weight: bold;
}

.correct-answer-text {
  color: green;
}

.correct-answer {
  color: green; 
}

.incorrect-answer {
  color: red; 
}

/* Media Queries */
@media screen and (max-width: 768px) { 
  body {
    font-size: 16px; 
  }

  h1 {
    font-size: 24px; 
  }

  h2 {
    font-size: 16px; 
  }

  h4 {
    font-size: 18px; 
  }

  .text-block {
    margin-top: 5px;
    font-size: 15px; 
  }
    
 .image-caption {
  font-size: 10px; 
  font-style: italic;
  text-align: center;
  margin-top: 5px;
}

  .question {
    font-size: 15px; 
  }

  .answer-list li {
    font-size: 14px; 
  }
}