body {
  background-color: black;
  color: #ffffff;
  font-family: fantasy;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  padding: 2vh;
}

.header h1 {
  font-size: clamp(
    1.5rem,
    5vw,
    3rem
  ); /* Adjusts font size based on screen width */
}

.maincontent {
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flexscore {
  display: flex;
  align-items: center;
  margin-bottom: 2vh;
}

.scorenumber {
  font-size: 2.5rem;
  margin-left: 20px;
  color: plum; /* A little baddie accent color */
}

.Questioncontainer {
  text-align: center;
  margin: 4vh 0;
}

.Question {
  font-size: clamp(1.2rem, 4vw, 2rem);
  line-height: 1.4;
}

.answers {
  display: flex;
  flex-direction: row; /* Side-by-side on big screens */
  flex-wrap: wrap; /* Allows them to wrap if needed */
  justify-content: center;
  gap: 20px;
  width: 100%;
}

button {
  padding: 1.2rem 2rem;
  min-width: 180px;
  flex: 1; /* Helps buttons grow to fill space */
  max-width: 300px;
  cursor: pointer;
  font-family: fantasy;
  font-size: 1.1rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  transition: 0.3s;
}

button:hover:not(:disabled) {
  background-color: white;
  color: black;
}

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

/* --- THE RESPONSIVE MAGIC --- */
@media (max-width: 600px) {
  .answers {
    flex-direction: column; /* Stack buttons vertically on phones */
    align-items: center;
  }

  button {
    width: 100%; /* Full width buttons on mobile */
    max-width: none;
  }

  .nextquestioncontainer {
    justify-content: center; /* Center "Next" button on mobile */
    margin-top: 5vh;
  }
}

.nextquestioncontainer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  box-sizing: border-box;
}

.nextquestion {
  background-color: white;
  color: black;
  font-weight: bold;
}
