/* ________________________________________________________________ */
/* --- Global Page Styles --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
}

.hidden {
  display: none;
}

.inline-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 5px;
}

/* ________________________________________________________________ */
/* --- Header and Navigation Styles --- */
/* (Logo, Menu links, Hover style, Active page style) */
header {
  background-color: white;
  padding: 6px 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* (Logo) */
.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  height: 55px;
  width: auto;
}

/* (Menu links) */
nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  background-color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  transition: 0.2s;
  white-space: nowrap;
}

/* (Hover style) */
nav a:hover {
  background-color: #59dcb3;
  color: black;
}

/* (Active page style) */
nav a.active {
  color: black;
  background-color: #00cc8a;
}

/* ________________________________________________________________ */
/* --- Hero Sections --- */
/* (Banner style, Text styles, Logo images, Down arrow) */
.hero-section {
  text-align: center;
  padding: 12px 180px 10px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* (Banner style) */
.home-hero {
  background-color: #00cc8a;
}

.learn-hero {
  background-color: #f7c67d;
}

.challenge-hero {
  background-color: #6ae4ff;
}

.quiz-hero {
  background-color: #f0b89c;
}

/* (Text styles) */
.hero-section h2 {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 5px;
}

.hero-section p {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 12px 0 5px;
  padding: 0;
  line-height: 1.5;
}

/* (Logo images) */
.hero-image {
  width: 100%;
  display: block;
}

.hero-logo {
  max-width: 340px;
  margin: 4px auto 8px;
  opacity: 0;
  transform: translateY(-10px);
  animation: logoFadeIn 1.2s ease-out forwards;
  animation-delay: 0.2s;
}

.learn-logo {
  max-width: 140px;
  margin: 3px auto 7px;
}

.challenge-logo {
  max-width: 350px;
  margin: 3px auto 7px;
}

.quiz-logo {
  max-width: 110px;
  margin: 3px auto 7px;
}

/* (Down arrow) */
.down-arrow {
  font-size: 22px;
  color: black;
  margin: 6px auto 0;
  text-align: center;
  animation: bounceArrow 1.8s infinite;
}

/* ________________________________________________________________ */
/* --- Animations --- */
/* (Logo fade, Down arrow bounce, Home scroll text bounce, 
Card entrance, Animated card style) */
/* (Logo fade) */
@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* (Down arrow bounce) */
@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* (Home scroll text bounce) */
@keyframes bounceScroll {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

/* (Card entrance) */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* (Animated card style) */
.animated-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.6s ease forwards;
}

/* ________________________________________________________________ */
/* --- Home Page --- */
/* (Scroll header, Welcome screen, Navigation strip, Page cards) */
body.home-page {
  min-height: 280vh;
}

body.home-page .home-main {
  background-color: rgb(210, 255, 218);
  position: relative;
  z-index: 40;
}

body.home-page .intro-section {
  padding-top: 5px;
}

/* (Scroll header) */
body.home-page .home-scroll-header {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

body.home-page .home-scroll-header.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* (Welcome screen) */
body.home-page .home-fixed-hero {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

body.home-page .home-fixed-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/greenopoliswelcome.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  will-change: transform;
}

body.home-page .home-fixed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
  will-change: opacity;
}

body.home-page .home-fixed-content {
  position: relative;
  z-index: 2;
  height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 180px;
  box-sizing: border-box;
}

body.home-page .home-fixed-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #cccccc;
}

body.home-page .home-fixed-logo {
  max-width: 460px;
  margin: 12px auto 30px;
  opacity: 0;
  transform: translateY(-10px);
  animation: logoFadeIn 1.2s ease-out forwards;
  animation-delay: 0.2s;
}

body.home-page .home-fixed-content p {
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
  color: white;
}

body.home-page .home-trigger-space {
  height: 120vh;
}

body.home-page .scroll-text {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  animation: bounceScroll 1.8s infinite;
}

/* (Navigation strip) */
body.home-page .home-intro-strip {
  background-color: #00cc8a;
  text-align: center;
  padding: 12px 180px 10px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 61px;
  z-index: 45;
  transition: opacity 0.5s ease;
}

body.home-page .home-intro-strip.fade-out {
  opacity: 0;
}

body.home-page .home-strip-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 5px auto 7px;
  display: block;
}

body.home-page .home-intro-strip p {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 5px;
  line-height: 1.5;
}

body.home-page .home-intro-strip h2 {
  color: black;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 5px 0 5px;
  padding: 0;
}

/* (Page cards) */
.section-top-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: black;
  margin-top: 25px;
  margin-bottom: 5px;
}

.section-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 180px;
}

.section-row.reverse {
  flex-direction: row-reverse;
}

.section-image {
  flex: 2.4;
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  min-width: 0;
}

.section-card {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: #333;
  padding: 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 25px 0;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.section-card:hover {
  transform: translateY(-4px);
}

.learn-card {
  background-color: #f7c67d;
}

.learn-card:hover {
  background-color: #f3b14e;
}

.play-card {
  background-color: #6ae4ff;
}

.play-card:hover {
  background-color: #4fd0f2;
}

.quiz-card {
  background-color: #f0b89c;
}

.quiz-card:hover {
  background-color: #e88f76;
}

.card-title-image {
  max-width: 80px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.section-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* ________________________________________________________________ */
/* --- Learn Page Styles --- */
/* (District buttons, Information boxes, Option buttons, 
Option button colours, Content cards, Content card colours, 
Lists and alignment) */
.learn-intro {
  text-align: center;
  padding: 25px 30px;
  background-color: #fff1d2;
}

/* (District buttons and image) */
.district-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.district-btn {
  background-color: #db8c25;
  color: white;
  border: none;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  width: 180px;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.district-btn:hover:not(.active) {
  background-color: #f3b14e;
  color: black;
  transform: translateY(-4px);
}

.district-btn.active {
  background-color: #00cc8a;
  color: black;
}

#district-content {
  max-width: 1150px;
  margin: 0 auto;
}

.district-main-image {
  max-width: 1165px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 25px;
}

/* (Information boxes) */
.info-box {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  box-sizing: border-box;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  color: black;
}

.info-box p {
  margin: 0;
  line-height: 1.5;
}

.transport-top {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 5px;
}

.transport-text {
  flex: 1;
}

.transport-text h3 {
  margin: 0 0 10px;
}

.transport-text p {
  margin: 0;
}

/* (Option buttons) */
.option-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 12px;
}

.option-buttons button {
  background-color: #333;
  color: white;
  border: none;
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

/* (Option button colours) */
.energy-box .option-btn:hover {
  background-color: #a9e5b7;
  color: black;
}

.energy-box .option-btn.active {
  background-color: #63cc7d;
  color: black;
}

.transport-box .option-btn:hover {
  background-color: #a9d0f5;
  color: black;
}

.transport-box .option-btn.active {
  background-color: #67b2ec;
  color: black;
}

.food-box .option-btn:hover {
  background-color: #cfc6f2;
  color: black;
}

.food-box .option-btn.active {
  background-color: #9f8dde;
  color: black;
}

.waste-box .option-btn:hover {
  background-color: #e6c6da;
  color: black;
}

.waste-box .option-btn.active {
  background-color: #e09fc3;
  color: black;
}

/* (Content cards) */
.content-group {
  background-color: #fffbe8;
  width: 100%;
  max-width: 1070px;
  box-sizing: border-box;
  padding: 15px 20px 3px;
  border-radius: 8px;
  margin: 0 auto 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

/* (Content card text spacing) */
.inner-box,
.fun-fact-box,
.benefits-box,
.tradeoff-box,
.tip-box {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  width: 98%;
  box-sizing: border-box;
  padding: 10px 20px 15px;
  border-radius: 8px;
  margin: 0 auto 12px;
}

.fun-fact-box,
.tip-box {
  border-radius: 999px;
  padding: 8px 20px;
}

.inner-box h4,
.benefits-box h4,
.tradeoff-box h4 {
  margin-top: 10px;
  margin-bottom: 6px;
}

.inner-box p,
.benefits-box p,
.tradeoff-box p {
  margin-top: 10px;
  margin-bottom: 6px;
}

.fun-fact-box p,
.tip-box p {
  margin: 0;
}

/* (Content card colours) */
.energy-box .fun-fact-box {
  background-color: #a7f3bd;
}

.transport-box .fun-fact-box {
  background-color: #b2eaff;
}

.food-box .fun-fact-box {
  background-color: #dbd0fa;
}

.waste-box .fun-fact-box {
  background-color: #f7d4ec;
}

.benefits-box {
  background-color: #b2f0e8;
}

.tradeoff-box {
  background-color: #f9d2d2;
}

.tip-box {
  background-color: white;
}

/* (Lists and alignment) */
.info-list {
  padding-left: 40px;
  margin: 10px 0 25px;
  text-align: left;
}

.info-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.overall-line {
  padding-left: 0;
}

/* ________________________________________________________________ */
/* --- Bottom Sections --- */
/* (Bottom layout, Resource strips, Next-step boxes, 
Next-step buttons, Refresher box styles) */
.bottom-section {
  background-color: white;
  padding: 1px 30px 1px;
}

.feature-box {
  max-width: 1150px;
  width: 100%;
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
  color: black;
  box-sizing: border-box;
}

/* (Resource strips and next-step boxes) */
.resources-strip {
  background-color: #a3e8b6;
  margin: 15px auto 15px;
}

.next-step-box {
  background-color: #f9d89a;
  margin: 25px auto 20px;
}

.resources-strip h3,
.next-step-box h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: black;
}

.resources-strip p {
  margin: 5px auto 30px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: #333;
}

.next-step-box p {
  margin: 5px auto 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: #333;
}

/* (Next-step buttons) */
.next-step-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.next-step-btn,
.quiz-next-btn {
  background-color: #333;
  color: white;
  text-decoration: none;
  display: inline-block;
  width: 130px;
  padding: 20px 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 10px;
  transition: 0.2s;
  text-align: center;
}

.challenge-btn:hover {
  background-color: #4fd0f2;
  color: black;
}

.quiz-next-btn:hover {
  background-color: #e88f76;
  color: black;
}

/* (Refresher box styles) */
.refresher-box {
  background-color: #f0b89c;
}

.refresher-box .learn-refresher-btn,
.refresher-box .challenge-refresher-btn {
  background-color: #333;
  color: white;
}

.refresher-box .learn-refresher-btn:hover {
  background-color: #f7c67d;
  color: black;
}

.refresher-box .challenge-refresher-btn:hover {
  background-color: #4fd0f2;
  color: black;
}

/* ________________________________________________________________ */
/* --- City Challenge --- */
/* (Bottom layout, Resource strips, Next-step boxes, 
Next-step buttons, Refresher box styles) */
.challenge-intro {
  text-align: center;
  padding: 30px 30px 40px;
  background-color: #dff8ff;
}

.challenge-intro h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: black;
  margin: 0 0 15px;
}

.challenge-intro h4 {
  margin: 0 auto 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

.challenge-intro h5 {
  margin: 0 auto 15px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

.intro-text {
  margin: 0 auto 40px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

/* (Award cards) */
.awards-section {
  text-align: center;
}

.awards-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.award-card {
  width: 250px;
  text-align: center;
}

.award-img {
  width: 150px;
  margin: 0 auto 5px;
  display: block;
}

.award-title-box {
  background-color: white;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.award-desc {
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
}

.award-desc strong {
  font-weight: 600;
}

/* (Score bars) */
.score-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1150px;
  width: 100%;
  margin: 15px auto 10px;
}

.score-card {
  background-color: white;
  border-radius: 14px;
  padding: 12px 20px;
  width: 250px;
  flex: 1;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.score-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.score-card p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
}

.score-bar {
  width: 100%;
  height: 14px;
  background-color: #d9e3e3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.score-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.planet-fill {
  background-color: #00cc8a;
}

.money-fill {
  background-color: #f3b14e;
}

.wellbeing-fill {
  background-color: #4fd0f2;
}

.jobs-fill {
  background-color: #e09fc3;
}

/* (Decisions and feedback) */
.badges-image {
  max-width: 1155px;
  width: 100%;
  height: auto;
}

.challenge-progress {
  display: inline-block;
  background-color: #333;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 5px auto 18px;
}

.challenge-content-box {
  background-color: white;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  border-radius: 16px;
  box-sizing: border-box;
  text-align: left;
}

.challenge-content-box p {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.challenge-content-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.challenge-topic {
  display: inline-block;
  background-color: #e6f7ff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 12px;
}

.decision-btn {
  width: 100%;
  background-color: #f7fbfd;
  border: 2px solid #d7e7ef;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  box-sizing: border-box;
  margin-bottom: 14px;
}

.decision-btn:hover {
  border-color: #79b8e8;
  background-color: #eef8fd;
  transform: translateY(-2px);
}

.challenge-feedback {
  margin-top: 16px;
  padding: 16px 18px;
  background-color: #eef8f4;
  border-left: 4px solid #00cc8a;
  border-radius: 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #333;
}

.challenge-next-wrap {
  text-align: center;
  margin-top: 18px;
}

.challenge-next-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.challenge-next-btn:hover {
  background-color: #00cc8a;
  color: black;
}

/* (Final badges) */
.overall-badge-img {
  width: 180px;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
}

.badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.badge-img {
  width: 130px;
  max-width: 100%;
}

/* ________________________________________________________________ */
/* --- Quiz Page --- */
/* (Login screen, quiz layout, answers, score feedback and result screen) */

body.quiz-page main {
  background-color: #ffede3;
}

.quiz-section {
  padding: 30px 40px 18px;
}

.login-card {
  background-color: white;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto 10px auto;
  padding: 30px;
  box-sizing: border-box;
  border-radius: 16px;
  text-align: center;
}

/* Login form */
.input-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

#username {
  padding: 0 15px;
  font-size: 1rem;
  width: 300px;
  height: 44px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.input-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

/* Ready screen */
.score-info {
  width: 340px;
  margin: 12px auto;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 4px 0;
}

.label {
  text-align: right;
  padding-right: 6px;
}

.colon {
  text-align: center;
}

.value {
  text-align: left;
  padding-left: 6px;
}

/* Question header */
.quiz-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-weight: bold;
  align-items: center;
}

#progress-text {
  text-align: left;
}

#timer-text {
  text-align: center;
}

#score-text {
  text-align: right;
}

.topic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 8px;
}

.topic-box {
  background-color: #ffede3;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.back-btn,
.exit-btn {
  background-color: #f0b89c;
  color: #333;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.back-btn:hover,
.exit-btn:hover {
  background-color: #e88f76;
  color: black;
}

#question-text {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Answer buttons */
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 650px;
  margin: 20px auto 0;
}

.answer-btn {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
}

.answer-btn:hover {
  background-color: #f0b89c;
  color: black;
}

.correct-answer {
  background-color: #63cc7d;
  color: black;
}

.wrong-answer {
  background-color: #eca1a1;
  color: black;
}

/* Quiz action buttons */
#next-btn,
#login-btn,
#ready-btn,
#show-incorrect-btn,
#return-login-btn,
#try-again-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

#next-btn,
#show-incorrect-btn,
#return-login-btn,
#try-again-btn {
  margin-top: 15px;
}

#ready-btn {
  width: 240px;
  height: 48px;
  border-radius: 10px;
}

#next-btn:hover,
#login-btn:hover,
#ready-btn:hover,
#show-incorrect-btn:hover,
#return-login-btn:hover,
#try-again-btn:hover {
  background-color: #00cc8a;
  color: black;
}

/* Quiz result screen */

#end-buttons {
  margin-top: 15px;
}

#end-buttons button {
  margin-right: 8px;
}

.incorrect-review {
  background-color: #ffede3;
  padding: 15px;
  margin-top: 15px;
  border-radius: 10px;
  text-align: left;
}

.final-result {
  grid-column: 1 / 3;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.final-score,
.final-time {
  margin: 4px 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ________________________________________________________________ */
/* --- Footer --- */

footer {
  background-color: #333;
  color: white;
  padding: 15px 180px;
}

/* ________________________________________________________________ */
/* --- Responsive Design: Adjust Layout for Screen Size  --- */

@media (max-width: 900px) {
  header {
    padding: 5px 60px;
    flex-direction: column;
    align-items: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .hero-section {
    padding: 12px 60px 10px;
  }

  .hero-section p {
    padding: 0;
  }

  .section-row {
    padding: 0 60px;
    gap: 15px;
    flex-direction: column;
  }

  .section-row.reverse {
    flex-direction: column;
  }

  .section-image {
    max-width: 500px;
  }

  .section-card {
    margin: 10px 0 20px;
    width: 100%;
    max-width: 500px;
  }

  .learn-intro {
    padding-left: 0;
    padding-right: 0;
  }

  .district-buttons {
    padding: 0 60px;
  }

  #district-content {
    max-width: none;
    margin: 0;
  }

  .info-box,
  .resources-strip,
  .next-step-box,
  .challenge-content-box,
  .score-section {
    margin-left: 60px;
    margin-right: 60px;
  }

  .info-box,
  .resources-strip,
  .next-step-box,
  .challenge-content-box {
    width: auto;
    max-width: none;
  }

  .score-section {
    max-width: none;
    padding: 0;
  }

  .challenge-content-box {
    padding: 24px;
  }

  .challenge-question {
    font-size: 1.45rem;
  }

  footer {
    padding: 15px 60px;
  }

  body.home-page .home-scroll-header {
    padding: 8px 60px;
    flex-direction: column;
    align-items: center;
  }

  body.home-page .home-fixed-content {
    padding: 110px 60px 50px;
  }

  body.home-page .home-fixed-logo {
    max-width: 360px;
  }

  body.home-page .home-fixed-content h2 {
    font-size: 1.7rem;
  }

  body.home-page .home-intro-strip {
    padding: 12px 60px 10px;
    top: 110px;
  }
}

@media (max-width: 500px) {
  header {
    padding: 5px 25px;
  }

  .hero-section {
    padding: 12px 25px 10px;
  }

  .section-row {
    padding: 0 25px;
  }

  .learn-intro {
    padding-left: 0;
    padding-right: 0;
  }

  .district-buttons {
    padding: 0 25px;
  }

  .info-box,
  .resources-strip,
  .next-step-box,
  .challenge-content-box,
  .score-section {
    margin-left: 25px;
    margin-right: 25px;
  }

  .resources-strip,
  .next-step-box,
  .challenge-content-box {
    padding-left: 20px;
    padding-right: 20px;
  }

  .score-section {
    padding: 0;
  }

  .challenge-question {
    font-size: 1.25rem;
  }

  .decision-btn {
    padding: 16px;
  }

  footer {
    padding: 15px 25px;
  }

  body.home-page .home-scroll-header {
    padding: 8px 25px;
  }

  body.home-page .home-fixed-content {
    padding: 100px 25px 45px;
  }

  body.home-page .home-fixed-logo {
    max-width: 280px;
  }

  body.home-page .home-fixed-content h2 {
    font-size: 1.45rem;
  }

  body.home-page .home-fixed-content p {
    font-size: 1rem;
  }

  body.home-page .home-intro-strip {
    padding: 12px 25px 10px;
    top: 145px;
  }

  body.home-page .home-intro-strip h2 {
    font-size: 1.5rem;
  }

  body.home-page .home-intro-strip p {
    font-size: 1rem;
  }
}
