/* ===============================
   GLOBAL STYLES
   =============================== */
body,
html {
  height: 100%;
  overflow: hidden;
  /* Prevents scrollbars caused by full-screen backgrounds */
  display: flex;
  /* Display the body in a flex container */
  flex-direction: column;
  /* Set the minimum height to 100% of the viewport height  to push the footer to the bottom */
  cursor: default;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  max-width: 100%;
  margin: 0;
  /* Ensure no default margin */
  padding: 0;
  /* Ensure no default padding */
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  overflow-y: auto;
  /* Allow vertical scrolling */
}
body {
  background-color: #180e0e;
}
/* ===============================
   BACKGROUND STYLES
   =============================== */
.body-background {
  position: absolute;
  /* Allows absolute positioning of child elements */
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Ensures no scrollbars appear */
}
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure video covers the whole area */
  z-index: 0;
  /* Positioned above the play/pause button element */
}
#background-image {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure image covers the whole area */
  z-index: 1;
  opacity: 0.7;
}
body .body-content {
  position: relative;
  z-index: 1;
  /* top layer */
  flex: 1;
  text-align: center;
}
body #background-image {
  min-height: 100vh;
}
body #score-container {
  color: #a0ccbd;
}
/* ===============================
   HEADER STYLES
   =============================== */
.header h1 {
  text-align: center;
  /* Center align text */
  color: #54b896;
  font-size: 2.5rem;
  /* Default size */
}
.header img {
  /* img is the play/pause button */
  right: 2rem;
  top: auto;
  width: 2rem;
  opacity: 0.7;
  border: 3px solid #54b896;
  border-radius: 50%;
  position: absolute;
  z-index: 0;
  max-width: 100%;
  position: fixed;
  /* Make sure images do not overflow */
  cursor: pointer;
}
.header img:hover {
  opacity: 1;
  border: 3px solid #54b896;
  border-radius: 50%;
  position: absolute;
}
/* ===============================
   QUIZ STYLES
   =============================== */
.quiz-options {
  width: 100%;
  /* Ensure full width on smaller screens */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.option-btn {
  padding: 1.25rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #3603339d;
  border-radius: 0.5 rem;
  transition: background-color 0.3s;
  margin-left: 30%;
  margin-right: 30%;
  color: #54b896;
  opacity: 0.88;
}
.option-btn:focus {
  outline: none;
  /* Removes focus outline for better appearance */
  box-shadow: none;
  /* Remove any box-shadow that might indicate focus */
}
.option-btn:active {
  background-color: #54b896;
  color: #180e0e;
}
.option-btn:hover {
  background-color: #54b896;
  color: #180e0e;
}
/* ===============================
   QUESTION STYLES
   =============================== */
.question {
  margin-top: 10%;
  margin: 10%;
  text-align: center;
  font-size: x-large;
  color: #54b896;
}
/* ===============================
   ANSWER STYLES
   =============================== */
.answer {
  margin-top: 10%;
  text-align: center;
  font-size: x-large;
  color: #54b896;
}
/* ===============================
   SUMMARY STYLES
   =============================== */
#summary {
  color: #54b896;
}
.summary-header {
  font-size: x-large;
  text-align: center;
  font-family: Arial, sans-serif;
  margin-bottom: 3rem;
}
#play-again {
  border-radius: 5px;
  border: none;
  background-color: #3603339d;
  font-size: larger;
  color: #54b896;
  z-index: 1;
  width: 9rem;
  height: 2rem;
  margin-left: 1rem;
}
#play-again:hover {
  background-color: #54b896;
  color: #180e0e;
}
.question-summary {
  margin: 1rem;
}
.incorrect-answer {
  color: red;
}
/* ===============================
SCORE STYLES
=============================== */
.final-score {
  text-align: center;
}
/* ===============================
   FOOTER STYLES
   =============================== */
footer {
  margin-top: auto;
  /* Pushes footer to bottom of page */
  text-align: center;
  font-size: small;
  color: #54b896;
  z-index: 1;
}
/* ===============================
   RESPONSIVE STYLES
   =============================== */
@media screen and (max-width: 1023px) {
  .option-btn {
    margin-left: 10%;
    margin-right: 10%;
  }
  .question {
    font-size: medium;
  }
  .header img {
    max-width: 1.5rem;
    right: 1rem;
  }
  #play-again {
    font-size: medium;
    width: 6rem;
    height: 2rem;
  }
  #summary {
    margin-left: 5%;
    margin-right: 5%;
  }
  .header h1 {
    font-size: 1.5rem;
    /* Smaller size for smaller screens */
  }
  body,
  html {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .option-btn:active,
  .option-btn:hover {
    background-color: #3603339d;
    color: #54b896;
  }
}
@media screen and (min-width: 1024px) {
  .option-btn:hover {
    background-color: #54b896;
    color: #180e0e;
  }
  .header h1 {
    font-size: 2.5rem;
    /* Adjust for larger screens */
  }
}
