body {
  background-color: #dceff3;
  font-family: "Courier New", monospace;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
}

.quiz-container {
  max-width: 900px;
  width: 90%;
  margin: 30px;
  padding: 40px;
  background: #4a7b52;
  border: 8px solid #585858;
  box-shadow: inset -8px -8px 0 0 #2d4a32, inset 8px 8px 0 0 #7fb884;
  color: white;
  text-align: center;
  text-shadow: 2px 2px #000;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

#question {
  font-size: 30px;
  margin-bottom: 25px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px #000;
}

#content img {
  max-width: 70%;
  max-height: 400px;
  object-fit: contain;
  margin: 20px auto;
  display: block;
  border: 4px solid #393939;
  box-shadow: 4px 4px 0 #000;
  image-rendering: pixelated;
}

#content p {
  font-size: 20px;
  line-height: 1.6;
  margin: 20px auto;
  max-width: 800px;
  white-space: pre-line;
  text-align: left;
  padding: 0 20px;
  color: #e6e6e6;
}

#choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 0 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
}

.choice-btn {
  padding: 20px 10px;
  font-size: 20px;
  border: 4px solid #585858;
  background: #7fb884;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.1s ease;
  box-shadow: inset -2px -2px 0 0 #2d4a32, inset 2px 2px 0 0 #fff;
  font-family: "Courier New", monospace;
  image-rendering: pixelated;
  cursor: pointer;
}

.choice-btn:hover {
  transform: translateY(-5px);
}

.choice-btn:active {
  transform: translateY(5px);
  box-shadow: none;
}

#score {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: #3c3c3c;
  border: 4px solid #000;
  color: white;
  font-weight: bold;
  font-size: 15px;
  text-shadow: 1px 1px #000;
}

.quiz-container::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #2d4a32, #7fb884);
  z-index: -1;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px #7fb884;
  }
  50% {
    box-shadow: 0 0 20px #7fb884, 0 0 30px #7fb884;
  }
  100% {
    box-shadow: 0 0 5px #7fb884;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  display: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.overlay-content {
  background: #4a7b52;
  padding: 30px;
  border: 6px solid #585858;
  box-shadow: inset -6px -6px 0 0 #2d4a32, inset 6px 6px 0 0 #7fb884;
  color: white;
  text-align: center;
  font-family: "Courier New", monospace;
  text-shadow: 2px 2px #000;
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
}

#result-message {
  font-size: 30px;
  margin-bottom: 15px;
  color: white;
  text-shadow: 1px 1px #000;
}

#explanation-text {
  white-space: pre-line;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 25px;
  color: #e0e0e0;
  text-align: left;
}

#show-image-button,
#next-button {
  margin: 0 8px 15px;
  min-width: 160px;
  background: #7fb884;
  border: 4px solid #393939;
  color: #000;
  padding: 12px;
  font-size: 1rem;
  font-family: "Courier New", monospace;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 #2d4a32, inset 2px 2px 0 0 #fff;
  text-transform: uppercase;
  image-rendering: pixelated;
}

#logo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px white);
  image-rendering: pixelated;
}

#question-container {
  margin-top: 30px;
}

.menu-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4a7b52;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px #000;
  z-index: 2000;
}

.menu-screen h1 {
  font-size: 30px;
  margin-bottom: 30px;
  font-family: "Courier New", monospace;
  text-align: center;
}
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 1;
  transition: opacity 1s ease;
}

.welcome-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.welcome-box {
  background: #4a7b52;
  padding: 40px;
  border: 8px solid #585858;
  box-shadow: inset -8px -8px 0 0 #2d4a32, inset 8px 8px 0 0 #7fb884;
  font-family: "Courier New", monospace;
  color: white;
  text-align: left;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 1.3rem;
  text-shadow: 2px 2px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-box h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.welcome-box button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1.3rem;
  font-family: "Courier New", monospace;
  background: #7fb884;
  border: 4px solid #393939;
  box-shadow: inset -2px -2px 0 0 #2d4a32, inset 2px 2px 0 0 #fff;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.welcome-box button:hover {
  transform: scale(1.05);
}

.quiz-container {
  display: none; /* This should be present initially */
}

.choice-btn {
  transition: background-color 0.3s, color 0.3s;
}
