@import url('https://fonts.googleapis.com/css2?family=Irish+Grover&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  color: #fff;
  background-image: url(theme-1.jpg);
  font-family: "Irish Grover", system-ui;
  font-weight: 400;
  line-height: 1;
}

.hero-header {
  font-size: 8.2rem;
}

.hero {
  margin: 9.8rem 3.4rem;
  padding: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audio-para {
  margin-top: 3rem;
  font-size: 2.4rem;
}

.dates-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-top: 4rem;
  font-size: 2.4rem;
}

.dates-list a {
  color: #fff;
  text-decoration: underline dashed;
  text-underline-offset: 0.4rem;
  cursor: pointer;
}

.theme-btn {
  margin: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-image: url(theme-bg.jpg);
  border: none;
  padding: 0.8rem;
  border-radius: 1.2rem;
  cursor: pointer;
  color: #fff;
  font-family: "Irish Grover", system-ui;
  font-size: 4rem;
}

.theme-img {
  width: 6rem;
  height: 6rem;
}

.quiz-overlay-container {
  position: relative;
  display: inline-block;
  /* ensures container fits content width */
}

.quiz-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* adjust opacity/color for clarity */
  border-radius: 1rem;
  /* optional, for soft edges */
  z-index: 0;
}

.quiz-section {
  display: flex;
  justify-content: center;
  /* optionally add padding/margin */
  padding: 2rem 0;
}

.quiz-overlay-container {
  position: relative;
  width: fit-content;
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.quiz-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

.quiz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 100rem;
  margin: 0 auto;
}

.photo-img {
  justify-self: center;
  max-width: 40rem;
}

.photo-img img {
  width: 100%;
  border-radius: 1rem;
}

.quiz-text-box {
  max-width: 50rem;
  font-size: 2.6rem;
  color: #fff;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.quiz-question {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-question label {
  font-size: 2.8rem;
}

.quiz-question input {
  font-size: 1.8rem;
  padding: 0.5rem;
  width: 60%;
  border: none;
  border-radius: 0.5rem;
}

.guess-answer {
  font-size: 2.4rem;
}


.submit-quiz-btn {
  font-size: 2rem;
  padding: 0.4rem 0;
  display: block;
  margin: 1.6rem auto 0 auto;
  width: 24rem;
  border: none;
  cursor: pointer;
  font-family: "Irish Grover", system-ui;
  color: #fff;
  background-color: #f50776;
  border-radius: 0.5rem;
}

.submit-quiz-btn:hover {
  color: #fff;
  background-color: #c7005d;
}

.footer {
  background-color: #a3004c;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px dashed #fff;
}

.footer-heading {
  color: #fff;
  font-size: 2.6rem;
  font-family: "Irish Grover", system-ui;
  margin-bottom: 1.2rem;
}

.footer-body {
  color: #fff;
  font-size: 1.8rem;
  max-width: 60rem;
  margin: 0 auto;
  line-height: 1.5;
}

.credits-footer {
  text-align: center;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: #fff;
  background-color: #19005f;
  font-family: "Irish Grover", cursive;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.modal-content {
  position: relative;
  max-width: 40rem;
  max-height: 80vh;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 0.5rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.close-img {
  width: 3rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* media queries*/
/* Mobile devices - stack quiz columns vertically */
@media (max-width: 767px) {
  .quiz {
    display: block;
    padding: 1rem;
  }

  .photo-img {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .quiz-text-box {
    max-width: 100%;
  }

  .quiz-question input {
    width: 100%;
  }

  .hero {
    margin: 4rem 1.5rem;
    padding: 2rem 1rem;
  }

  .hero-header {
    font-size: 4.5rem;
  }

  .dates-list {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.8rem;
  }
}

/* Tablets and small desktops */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-header {
    font-size: 6rem;
  }

  .quiz-question input {
    width: 80%;
  }
}

/* Larger desktops */
@media (min-width: 1024px) {
  .hero-header {
    font-size: 8.2rem;
    /* keep original */
  }

  .quiz-question input {
    width: 60%;
  }
}

@media (max-width: 450px) {
  .hero-header {
    font-size: 3.5rem;
  }

  .dates-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: center;
    padding: 0 1rem;
  }

  .dates-list a {
    width: 100%;
    text-align: center;
  }
}