/* ==============================
FONTS
============================== */

@font-face {
  font-family: "Shantell Sans";
  src: url("assets/fonts/ShantellSans-Medium.ttf")
  format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Shantell Sans";
  src: url("assets/fonts/ShantellSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Comic Relief";
  src: url("assets/fonts/ComicRelief-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Comic Relief";
  src: url("assets/fonts/ComicRelief-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* ==============================
GENERAL
============================== */

:root {
  --blue: #547fa8;
  --blue-dark: #365675;
  --blue-light: #e3edf8;
  --text: #332d35;
  --muted: #746a70;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}



body {
  margin: 0;
  min-height: 100vh;
  width: 100%;

  font-family: "Comic Relief", Arial, sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 10% 5%,
      #fff9f2 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 80%,
      #f6d5b8 0%,
      transparent 35%
    ),
    #fff4e6;
}



a {
  text-decoration: none;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ==============================
HEADER
============================== */

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-family: "Shantell Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--blue-dark);
}


.header-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: bold;
}


/* ==============================
HERO
============================== */

.hero {
  max-width: 900px;
  margin: 0 auto;

  padding: 90px 20px 100px;
  text-align: center;
}

.hero-tag,
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--blue);
  font-weight: bold;
}

.hero h1 {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;

  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.2;

  margin: 20px 0;
}

.hero-description {
  max-width: 570px;
  margin: 0 auto;

  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.explore-btn {
  display: inline-block;
  margin-top: 35px;

  background: var(--blue);
  color: white;

  padding: 15px 25px;
  border-radius: 15px;

  font-size: 14px;
  transition: 0.2s;
}

.explore-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ==============================
ADVENTURES
============================== */

.adventures {
  max-width: 1150px;
  margin: 0 auto;
  padding: 30px 20px 100px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(27px, 4vw, 38px);

  margin: 14px 0;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
QUIZ CARDS
============================== */

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.quiz-card {
  min-width: 0;

  background: white;
  border: 1px solid #d5e3f1;
  border-radius: 25px;
  overflow: hidden;

  box-shadow: 0 12px 35px #36567512;
  transition: transform 0.2s, box-shadow 0.2s;

  display: flex;
  flex-direction: column;
}

.quiz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px #36567520;
}

.quiz-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;

  background: #f1f7ff;
  overflow: hidden;
}

.quiz-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-content {
  min-width: 0;
  padding: 28px;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.quiz-tag {
  align-self: flex-start;

  background: var(--blue-light);
  color: var(--blue);

  padding: 7px 12px;
  border-radius: 20px;

  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.quiz-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.new-tag {
  background: #ffe2d5;
  color: #a64e37;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.quiz-content h3 {
  font-family: "Shantell Sans", sans-serif;
  font-size: 27px;
  font-weight: 500;

  margin: 18px 0 12px;
}

.quiz-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;

  margin: 25px 0;
  font-size: 12px;
  color: var(--blue-dark);
}

.play-btn {
  display: block;
  text-align: center;

  background: var(--blue);
  color: white;

  padding: 15px 20px;
  border-radius: 13px;

  font-size: 14px;
  transition: 0.2s;
}

.play-btn:hover {
  background: var(--blue-dark);
}

/* ==============================
BOTTOM MESSAGE
============================== */

.bottom-message {
  text-align: center;
  padding: 55px 20px 90px;
}

.bottom-message h2 {
  font-family: "Shantell Sans", sans-serif;
  font-size: 32px;
  font-weight: 500;
}

.bottom-message p {
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
FOOTER
============================== */

footer {
  text-align: center;
  padding: 25px 15px;

  border-top: 1px solid #cbdced;
  font-size: 12px;
  color: var(--blue-dark);
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-bottom: 18px;
}

.footer-links a {
  font-size: 13px;
  color: var(--blue-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ==============================
ACCESSIBILITY
============================== */

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* ==============================
TABLET
601px - 900px
============================== */

@media (min-width: 601px) and (max-width: 900px) {

  .site-header {
    padding: 20px 24px;
  }

  .hero {
    padding: 65px 24px 75px;
  }

  .adventures {
    padding: 30px 24px 75px;
  }

  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .quiz-content {
    padding: 20px;
  }

  .quiz-content h3 {
    font-size: 23px;
  }

  .quiz-description {
    font-size: 13px;
  }

  .quiz-meta {
    gap: 10px;
  }
}

/* ==============================
MOBILE
600px AND BELOW
============================== */

@media (max-width: 600px) {

  html,
  body {
    width: 100%;
    min-width: 0;
  }

  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  /* Header */

  .site-header {
    width: 100%;
    padding: 14px 16px;
    gap: 8px;
  }

  .logo {
    font-size: 26px;
    flex-shrink: 0;
  }

  .header-label {
    min-width: 0;
    font-size: 9px;
    letter-spacing: 0.05em;
    text-align: right;
  }

  /* Hero */

  .hero {
    width: 100%;
    max-width: 100%;
    padding: 38px 18px 45px;
  }

  .hero-tag,
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 39px);
    line-height: 1.2;
    margin: 14px 0;
    overflow-wrap: break-word;
  }

  .hero-description {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
  }

  .explore-btn {
    margin-top: 22px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* Adventures section */

  .adventures {
    width: 100%;
    max-width: 100%;
    padding: 18px 14px 45px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 25px;
    margin: 10px 0;
  }

  .section-heading p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Quiz cards — single column */

  .quiz-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .quiz-card {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
  }

  .quiz-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .quiz-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .quiz-content {
    padding: 17px;
  }

  .quiz-tag {
    font-size: 9px;
    padding: 6px 10px;
  }

  .quiz-tags {
    gap: 6px;
  }

  .new-tag {
    font-size: 9px;
    padding: 6px 10px;
  }

  .quiz-content h3 {
    font-size: 23px;
    line-height: 1.3;
    margin: 12px 0 8px;
  }

  .quiz-description {
    font-size: 12px;
    line-height: 1.6;
  }

  .quiz-meta {
    gap: 10px;
    margin: 16px 0;
    font-size: 11px;
  }

  .play-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 11px;
    font-size: 13px;
  }

  /* Bottom message */

  .bottom-message {
    padding: 30px 18px 45px;
  }

  .bottom-message h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  .bottom-message p {
    font-size: 12px;
    line-height: 1.6;
  }

  /* Footer */

  footer {
    padding: 18px 12px;
    font-size: 10px;
    line-height: 1.5;
  }

}

/* ==============================
SMALL MOBILE
360px AND BELOW
============================== */

@media (max-width: 360px) {

  .site-header {
    padding: 12px;
  }

  .logo {
    font-size: 23px;
  }

  .hero {
    padding: 30px 14px 38px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .adventures {
    padding: 15px 10px 40px;
  }

  .quiz-content {
    padding: 14px;
  }

  .quiz-content h3 {
    font-size: 21px;
  }

  .quiz-description {
    font-size: 12px;
  }

  .quiz-meta {
    font-size: 10px;
  }

  .footer-links {
    gap: 12px 18px;
  }

  .footer-links a {
    font-size: 11px;
  }

}

/* ==============================
REDUCED MOTION
============================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .quiz-card,
  .explore-btn,
  .play-btn {
    transition: none;
  }

  .quiz-card:hover,
  .explore-btn:hover {
    transform: none;
  }

}

/* ==============================
ABOUT / INFORMATION PAGE
============================== */

.info-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 25px 90px;
}

/* Page introduction */

.info-hero {
  text-align: center;
  padding: 50px 0 65px;
}

.info-hero h1 {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 55px);
  margin: 18px 0;
  line-height: 1.2;
}

.info-hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* Content sections */

.info-section {
  padding: 35px 0;
  border-bottom: 1px solid #cbdced;
}

.info-section h2 {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;
  font-size: 29px;
  margin: 0 0 22px;
}

.info-section p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 18px;
}

.info-section p:last-child {
  margin-bottom: 0;
}

/* How it works */

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  background: var(--blue-light);
  color: var(--blue-dark);

  border-radius: 14px;

  font-size: 15px;
  font-weight: bold;
}

.about-step h3 {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 8px;
}

.about-step p {
  margin: 0;
}

/* Bottom call to action */

.info-cta {
  text-align: center;
  padding: 70px 15px 20px;
}

.info-cta h2 {
  font-family: "Shantell Sans", sans-serif;
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 15px;
}

.info-cta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ==============================
MOBILE
============================== */

@media (max-width: 600px) {

  .info-page {
    padding: 15px 20px 55px;
  }

  .info-hero {
    padding: 35px 0 40px;
  }

  .info-hero h1 {
    font-size: 34px;
    margin: 14px 0;
  }

  .info-hero p {
    font-size: 13px;
  }

  .info-section {
    padding: 28px 0;
  }

  .info-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .info-section p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
  }

  .about-steps {
    gap: 22px;
  }

  .about-step {
    gap: 14px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    font-size: 13px;
    border-radius: 12px;
  }

  .about-step h3 {
    font-size: 18px;
  }

  .info-cta {
    padding: 50px 10px 15px;
  }

  .info-cta h2 {
    font-size: 26px;
  }

  .info-cta p {
    font-size: 13px;
  }

}

/* ==============================
PRIVACY POLICY TYPOGRAPHY
============================== */

/* Numbered section headings */
.privacy-page .info-section h2 {
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

/* Paragraphs and lists */
.privacy-page .info-section p,
.privacy-page .info-section li {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

/* Mobile */
@media (max-width: 600px) {

  .privacy-page .info-section h2 {
    font-size: 20px;
  }

  .privacy-page .info-section p,
  .privacy-page .info-section li {
    font-size: 14px;
    line-height: 1.7;
  }

}

/* ==============================
TERMS OF USE PAGE
============================== */

/* Numbered headings */
.terms-page .info-section h2 {
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

/* Paragraphs and lists */
.terms-page .info-section p,
.terms-page .info-section li {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

/* List spacing */
.terms-page .info-section ul {
  margin: 0 0 20px;
  padding-left: 25px;
}

.terms-page .info-section li {
  margin-bottom: 10px;
}

/* Links */
.terms-link {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-link:hover {
  color: var(--blue);
}

/* Mobile */
@media (max-width: 600px) {

  .terms-page .info-section h2 {
    font-size: 20px;
  }

  .terms-page .info-section p,
  .terms-page .info-section li {
    font-size: 14px;
    line-height: 1.7;
  }

  .terms-page .info-section ul {
    padding-left: 20px;
  }

  .terms-page .info-section li {
    margin-bottom: 8px;
  }

}

/* ==============================
CONTACT PAGE
============================== */

.contact-section {
  text-align: center;
}

.contact-section > p {
  max-width: 650px;
  margin: 0 auto 30px;
}

/* Contact card */
.contact-card {
  max-width: 550px;
  margin: 30px auto 0;
  padding: 35px 30px;

  background: #ffffff;
  border: 1px solid #d5e3f1;
  border-radius: 20px;

  box-shadow: 0 12px 35px #36567512;
}

.contact-card h3 {
  font-family: "Shantell Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 15px;
}

.contact-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 20px;
}

.contact-email {
  display: inline-block;
  max-width: 100%;

  color: var(--blue-dark);
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--blue);
}

/* Mobile */
@media (max-width: 600px) {

  .contact-card {
    padding: 25px 18px;
    border-radius: 16px;
  }

  .contact-card h3 {
    font-size: 21px;
  }

  .contact-card p {
    font-size: 13px;
  }

  .contact-email {
    font-size: 14px;
  }

}

/* CATEGORY FILTER */

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 35px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  background: #f5f5f5;
}

.filter-btn.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.filter-btn:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

.quiz-card[hidden],
.filter-empty[hidden] {
  display: none !important;
}

.filter-empty {
  text-align: center;
  padding: 45px 15px;
  color: #777;
}

/* MOBILE */

@media (max-width: 600px) {
  .category-filter {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 25px 0 30px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* Quiz count badge */

.quiz-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;

  min-width: 22px;
  height: 22px;
  padding: 0 6px;

  border-radius: 50px;
  background: #eeeeee;
  color: #444;

  font-size: 12px;
  font-weight: 600;
}

.filter-btn.active .quiz-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}




/* ===================================
   ABOUT PAGE - YELLOW QUIZ TIP BOX
=================================== */

.quiz-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  width: 100%;
  margin: 30px auto;
  padding: 22px 26px;

  background-color: #fff3c4;
  border: 2px solid #f1d77a;
  border-radius: 18px;

  box-shadow: 0 5px 15px rgba(180, 145, 50, 0.08);
}

.quiz-tip-icon {
  font-size: 26px;
  line-height: 1.3;
  flex-shrink: 0;
}

.quiz-tip-content {
  flex: 1;
  min-width: 0;
}

.quiz-tip h2 {
  font-size: 20px;
  color: #795a24;
  margin: 0 0 10px;
}

.quiz-tip p {
  font-size: 15px;
  line-height: 1.6;
  color: #5e4b2d;
  margin: 0 0 8px;
}

.quiz-tip-ending,
.quiz-tip .quiz-tip-ending {
  font-weight: 700;
  color: #9a6b20;
}

.quiz-tip p:last-child {
  margin-bottom: 0;
}

/* MOBILE */

@media (max-width: 520px) {
  .quiz-tip {
    gap: 10px;
    padding: 15px;
    margin: 20px auto;
    border-radius: 14px;
  }

  .quiz-tip-icon {
    font-size: 21px;
  }

  .quiz-tip h2 {
    font-size: 17px;
  }

  .quiz-tip p {
    font-size: 13px;
    line-height: 1.5;
  }
}



/* HOMEPAGE - YELLOW QUIZ TIP BOX */

.home-quiz-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 22px 26px;

  background-color: #fff3c4;
  border: 2px solid #f1d77a;
  border-radius: 18px;

  box-shadow: 0 5px 15px rgba(180, 145, 50, 0.08);
}

.home-quiz-tip-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.home-quiz-tip-content {
  flex: 1;
  min-width: 0;
}

.home-quiz-tip h2 {
  font-size: 20px;
  color: #795a24;
  margin: 0 0 10px;
}

.home-quiz-tip p {
  font-size: 15px;
  line-height: 1.6;
  color: #5e4b2d;
  margin: 0 0 8px;
}

.home-quiz-tip-ending {
  font-weight: 700;
  color: #9a6b20;
}

.home-quiz-tip p:last-child {
  margin-bottom: 0;
}

/* MOBILE */

@media (max-width: 520px) {
  .home-quiz-tip {
    gap: 10px;
    padding: 15px;
    margin: 20px auto;
    border-radius: 14px;
  }

  .home-quiz-tip-icon {
    font-size: 21px;
  }

  .home-quiz-tip h2 {
    font-size: 17px;
  }

  .home-quiz-tip p {
    font-size: 13px;
    line-height: 1.5;
  }
}


.home-quiz-tip p,
.quiz-tip p {
  text-wrap: pretty;
}


/* Desktop */
.logo img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}
