/* General Resets and Base Styles */
:root {
  --color-red: #e62b3a;
  --color-yellow: #ffd700;
  --color-blue: #007bff;
  --color-white: #ffffff;
  --color-black: #222222;
  --color-dark-gray: #444444;
  --comic-font-headings: "Bangers", cursive; /* You'll need to import this or similar */
  --body-font: "Comic Neue", sans-serif; /* You'll need to import this or similar */
}

.img-bg {
  padding: 40px 0;
  background: url(images/apk-bg.jpg) var(--color-blue);

  @media (max-width: 800px) {
    background-position: top;
  }

  @media (max-width: 768px) {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

header {
  width: 100%;
  position: relative;
  z-index: 109;
  background-color: #333;

  p {
    padding: 20px;
    font-size: 28px;
    color: #fff;
    text-align: center;
  }

  @media (max-width: 1111px) {
    position: relative !important;
  }
}

.header__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  @media (max-width: 800px) {
    flex-direction: column !important;
  }
}

.btn {
  border: none;
  cursor: pointer;
  padding: 14px 36px;
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: var(--radius-lg);
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--color-accent);
}

.hero__btn-primary,
.hero__btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.hero__btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.hero__btn-primary:hover {
  background-color: var(--color-accent);
}

.mar {
  margin-top: 20px;
  margin-bottom: 20px;
  background: orangered !important;
  color: #fff !important;
  text-decoration: none;

  &:hover {
    opacity: 0.8;
  }
}

.mb {
  margin-bottom: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--color-blue);
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--comic-font-headings);
  color: var(--color-black);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--color-red), 4px 4px 0 var(--color-yellow);
  margin-bottom: 20px;
}

h1 {
  font-size: 3.5em;
  text-align: center;
}
h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
}
h3 {
  font-size: 1.8em;
}

.btn {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 3px solid var(--color-black);
  box-shadow: 5px 5px 0 var(--color-yellow);
  cursor: pointer;
  font-family: var(--comic-font-headings);
  font-size: 1.1em;
}

.btn:hover {
  background-color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--color-red);
}

/* Header */
.main-header {
  background: url("images/header_background.jpg") no-repeat center center/cover;
  padding: 0 0 20px 0;
  border-bottom: 5px solid var(--color-black);
  position: relative;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo {
  font-family: var(--comic-font-headings);
  font-size: 2.5em;
  color: var(--color-white);
  text-shadow: 3px 3px 0 var(--color-black);
  background-color: var(--color-red);
  padding: 5px 15px;
  border-radius: 20px;
  border: 3px solid var(--color-black);
  transform: rotate(-3deg);
  position: relative;
  top: -5px;
}

.main-header .logo a {
  color: var(--color-white);
}

.main-nav .nav-links {
  display: flex;
  gap: 25px;
}

.main-nav .nav-links a {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1em;
  padding: 5px 10px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

.main-nav .nav-links a:hover {
  color: var(--color-yellow);
  text-shadow: 1px 1px 2px var(--color-black);
}

.call-to-action-header {
  margin-left: 30px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-blue);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border: 2px solid var(--color-black);
  top: 100%; /* Position below the parent link */
  left: 0;
}

.dropdown-content a {
  color: var(--color-white);
  padding: 12px 16px;
  display: block;
  text-align: left;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--color-red);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.arrow-down {
  border: solid var(--color-white);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover .arrow-down {
  transform: rotate(225deg);
}

/* Burger Menu for Mobile */
.burger-menu-btn {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.burger-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--color-white);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  background: url("images/hero_section_background.jpg") no-repeat center
    center/cover;
  color: var(--color-white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  color: var(--color-white);
  text-shadow: 4px 4px 0 var(--color-black);
  margin-bottom: 20px;
  animation: popIn 0.8s ease-out forwards;
}

.hero-section .sub-headline {
  font-size: 1.5em;
  margin-bottom: 40px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.2s;
}

.call-to-action-hero {
  animation: bounceIn 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* Featured Games Section */
.featured-games-section,
.explore-universes-section,
.what-awaits-you-section,
.hero-spotlight-section,
.upcoming-adventures-section,
.testimonials-section,
.heroic-lore-section,
.join-the-league-section,
.featured-categories-section,
.meet-the-heroes-section,
.support-faq-section {
  padding: 60px 0;
  text-align: center;
}

.featured-games-section {
  background-color: var(--color-yellow);
  border-top: 5px solid var(--color-black);
  border-bottom: 5px solid var(--color-black);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.game-card {
  background-color: var(--color-white);
  border: 4px solid var(--color-black);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--color-red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 12px 12px 0 var(--color-blue);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-black);
}

.game-card h3 {
  margin: 15px 10px 5px;
  font-size: 1.6em;
  text-shadow: 2px 2px 0 var(--color-blue);
  color: var(--color-black);
}

.game-card .hero-tag {
  font-size: 0.9em;
  color: var(--color-dark-gray);
  margin-bottom: 15px;
}

.game-card .play-now-btn {
  margin: 0 15px 15px;
  padding: 10px 0;
  font-size: 1em;
  width: calc(100% - 30px);
}

/* Explore by Universes Section */
.explore-universes-section {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-bottom: 5px solid var(--color-black);
}

.explore-universes-section h2 {
  color: var(--color-white);
  text-shadow: 4px 4px 0 var(--color-black);
}

.universe-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.universe-tabs .tab-btn {
  background-color: var(--color-red);
  color: var(--color-white);
  border: 3px solid var(--color-black);
  padding: 15px 25px;
  font-family: var(--comic-font-headings);
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 var(--color-yellow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.universe-tabs .tab-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--color-black);
}

.universe-tabs .tab-btn:hover,
.universe-tabs .tab-btn.active {
  background-color: var(--color-yellow);
  color: var(--color-black);
  box-shadow: 6px 6px 0 var(--color-red);
  transform: translateY(-5px);
}

.universe-tabs .tab-btn.active img {
  border-color: var(--color-red);
}

.universe-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  margin-top: 40px;
  border-radius: 10px;
  border: 4px solid var(--color-black);
  box-shadow: 8px 8px 0 var(--color-red);
  text-align: left;
  display: none; /* Hidden by default */
}

.universe-content.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.universe-content h3 {
  color: var(--color-black);
  text-shadow: 2px 2px 0 var(--color-blue);
  margin-bottom: 15px;
}

.universe-content p {
  color: var(--color-blue);
}

/* What Awaits You Section */
.what-awaits-you-section {
  background-color: var(--color-white);
  border-bottom: 5px solid var(--color-black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background-color: var(--color-yellow);
  border: 3px solid var(--color-black);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--color-blue);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: scale(1.05);
}

.feature-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
}

.feature-item h3 {
  text-shadow: 1px 1px 0 var(--color-red);
  color: var(--color-black);
  font-size: 1.5em;
}

/* Hero Spotlight Section */
.hero-spotlight-section {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 80px 0;
  border-bottom: 5px solid var(--color-black);
}

.hero-spotlight-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.spotlight-hero-img {
  max-width: 400px;
  border: 5px solid var(--color-black);
  box-shadow: 10px 10px 0 var(--color-yellow);
  animation: slideInLeft 0.8s ease-out forwards;
}

.spotlight-content {
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.2s;
}

.spotlight-content h2 {
  color: var(--color-white);
  text-shadow: 4px 4px 0 var(--color-black);
}

.spotlight-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Upcoming Adventures Section */
.upcoming-adventures-section {
  background-color: var(--color-white);
  border-bottom: 5px solid var(--color-black);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.upcoming-card {
  background-color: var(--color-blue);
  color: var(--color-white);
  border: 3px solid var(--color-black);
  border-radius: 10px;
  padding-bottom: 20px;
  box-shadow: 6px 6px 0 var(--color-red);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.upcoming-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--color-yellow);
}

.upcoming-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-black);
  margin-bottom: 15px;
}

.upcoming-card h3 {
  color: var(--color-white);
  text-shadow: 2px 2px 0 var(--color-black);
  margin-bottom: 10px;
}

.upcoming-card p {
  font-size: 0.95em;
  padding: 0 15px;
}

.teaser-text {
  font-style: italic;
  margin-top: 40px;
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-yellow);
  border-bottom: 5px solid var(--color-black);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 4px solid var(--color-black);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 8px 8px 0 var(--color-red);
  position: relative;
  text-align: center;
}

.testimonial-card::before {
  content: "💬"; /* Speech bubble icon */
  font-size: 3em;
  position: absolute;
  top: -20px;
  left: 20px;
  background-color: var(--color-white);
  padding: 0 5px;
  border: 3px solid var(--color-black);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.testimonial-card .user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-black);
  margin: 0 auto 15px;
}

.testimonial-card .quote {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--color-blue);
}

/* Heroic Lore Section */
.heroic-lore-section {
  background-color: var(--color-red);
  color: var(--color-white);
  border-bottom: 5px solid var(--color-black);
  padding: 80px 0;
}

.heroic-lore-section h2 {
  color: var(--color-white);
  text-shadow: 4px 4px 0 var(--color-black);
}

.lore-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.lore-item {
  background-color: rgba(255, 255, 255, 0.9);
  border: 4px solid var(--color-black);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 8px 8px 0 var(--color-yellow);
  max-width: 450px;
  text-align: left;
}

.lore-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-black);
  margin-bottom: 15px;
}

.lore-item h3 {
  color: var(--color-black);
  text-shadow: 2px 2px 0 var(--color-red);
  font-size: 1.6em;
}

.lore-item p {
  color: var(--color-dark-gray);
  margin-bottom: 20px;
}

.lore-btn {
  margin-top: 40px;
}

/* Call to Action: Join the League! Section */
.join-the-league-section {
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 80px 0;
  border-bottom: 5px solid var(--color-black);
}

.join-the-league-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.join-the-league-section img {
  max-width: 500px;
  border: 5px solid var(--color-black);
  box-shadow: 10px 10px 0 var(--color-red);
  animation: slideInRight 0.8s ease-out forwards;
}

.join-content {
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.2s;
}

.join-content h2 {
  color: var(--color-white);
  text-shadow: 4px 4px 0 var(--color-black);
}

.join-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Featured Game Categories / Genres Section */
.featured-categories-section {
  background-color: var(--color-white);
  border-bottom: 5px solid var(--color-black);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.category-item {
  background-color: var(--color-yellow);
  border: 3px solid var(--color-black);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--color-blue);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--color-red);
}

.category-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid var(--color-black);
}

.category-item h3 {
  text-shadow: 1px 1px 0 var(--color-red);
  color: var(--color-black);
  font-size: 1.3em;
}

.category-text {
  font-style: italic;
  margin-top: 40px;
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Meet the Heroes Section */
.meet-the-heroes-section {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 80px 0;
  border-bottom: 5px solid var(--color-black);
}

.meet-the-heroes-section h2 {
  color: var(--color-white);
  text-shadow: 4px 4px 0 var(--color-black);
}

.hero-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.hero-profile-card {
  background-color: rgba(255, 255, 255, 0.9);
  border: 4px solid var(--color-black);
  border-radius: 10px;
  padding-bottom: 20px;
  box-shadow: 8px 8px 0 var(--color-yellow);
  text-align: left;
  overflow: hidden;
}

.hero-profile-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-black);
  margin-bottom: 15px;
}

.hero-profile-card h3 {
  color: var(--color-black);
  text-shadow: 2px 2px 0 var(--color-blue);
  font-size: 1.8em;
  margin: 0 15px 10px;
}

.hero-profile-card p {
  color: var(--color-dark-gray);
  font-size: 0.95em;
  padding: 0 15px 20px;
}

.hero-profile-card .view-games-btn {
  margin: 0 15px 15px;
  padding: 10px 0;
  font-size: 1em;
  width: calc(100% - 30px);
}

.hero-intro-text {
  font-style: italic;
  margin-top: 40px;
  font-size: 1.1em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Support Our Heroes / FAQ Section */
.support-faq-section {
  background-color: var(--color-white);
  border-bottom: 5px solid var(--color-black);
}

.support-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--color-blue);
  box-shadow: 5px 5px 0 var(--color-red);
}

.faq-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background-color: var(--color-yellow);
  border: 3px solid var(--color-black);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--color-blue);
  text-align: left;
}

.faq-item h3 {
  text-shadow: 1px 1px 0 var(--color-red);
  color: var(--color-black);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--color-dark-gray);
}

.support-text {
  font-style: italic;
  margin-top: 40px;
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-support-btn {
  margin-top: 30px;
}

/* Footer */
.main-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 40px 0;
  text-align: center;
  border-top: 5px solid var(--color-red);
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-nav a {
  color: var(--color-white);
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-yellow);
}

/* Social media links removed */
/* .social-media {
    margin-bottom: 30px;
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
}

.social-media img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.1);
    border-color: var(--color-yellow);
} */

.disclaimer {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin: 0 auto 20px;
}

.copyright {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 2em;
  }
  h3 {
    font-size: 1.5em;
  }

  .main-header .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-header .logo {
    font-size: 2em;
    margin-bottom: 10px;
    top: 0; /* Reset top position for mobile */
  }

  .main-nav .nav-links {
    display: none; /* Hide by default */
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: var(--color-blue);
    position: absolute;
    top: 100px; /* Adjust based on header height */
    left: 0;
    border-top: 5px solid var(--color-black);
    padding: 20px 0;
  }

  .main-nav .nav-links.active {
    display: flex; /* Show when active */
  }

  .main-nav .nav-links li {
    margin: 10px 0;
  }

  .main-nav .nav-links a {
    font-size: 1.3em;
    padding: 10px 0;
    display: block;
  }

  .burger-menu-btn {
    display: block; /* Show burger menu icon */
  }

  .call-to-action-header {
    display: none; /* Hide on mobile to prioritize burger menu */
  }

  .hero-section {
    padding: 60px 0;
  }

  .hero-section h1 {
    font-size: 2.2em;
  }

  .hero-section .sub-headline {
    font-size: 1.2em;
  }

  .game-grid,
  .features-grid,
  .upcoming-grid,
  .testimonial-grid,
  .lore-items,
  .category-grid,
  .hero-profiles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .game-card .play-now-btn,
  .hero-profile-card .view-games-btn {
    width: auto; /* Auto width for buttons in single column */
  }

  .universe-tabs {
    flex-direction: column;
  }

  .universe-tabs .tab-btn {
    width: 100%;
  }

  .spotlight-hero-img,
  .join-the-league-section img {
    max-width: 90%;
  }

  .faq-item {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.2em;
  }

  .main-header .logo {
    font-size: 1.8em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Specific styles for contact form, if not already in style.css */
.contact-form-section {
  background-color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

.contact-form-container {
  max-width: 700px;
  margin: 40px auto;
  background-color: var(--color-yellow);
  border: 4px solid var(--color-black);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 10px 10px 0 var(--color-blue);
  text-align: left;
}

.contact-form-container h2 {
  text-align: center;
  color: var(--color-black);
  text-shadow: 2px 2px 0 var(--color-red);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--color-dark-gray);
  font-size: 1.1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-black);
  border-radius: 5px;
  font-family: var(--body-font);
  font-size: 1em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--color-red);
  outline: none;
  box-shadow: 3px 3px 0 var(--color-red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-container .btn {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  margin-top: 30px;
}

.contact-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.contact-info p {
  margin-bottom: 10px;
  color: var(--color-dark-gray);
}

.contact-info a {
  color: var(--color-blue);
  font-weight: 700;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Specific styles for legal pages, if not already in style.css */
.legal-content-section {
  background-color: var(--color-white);
  padding: 60px 0;
  text-align: left; /* Align text left for readability */
}

.legal-content-section h2 {
  text-align: center;
  color: var(--color-black);
  text-shadow: 2px 2px 0 var(--color-blue);
  margin-bottom: 30px;
}

.legal-content-section h3 {
  color: var(--color-red);
  text-shadow: none; /* No comic shadow for subheadings for readability */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.6em;
}

.legal-content-section p,
.legal-content-section ul {
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-content-section ul {
  list-style: disc;
  margin-left: 30px;
  margin-bottom: 20px;
}

.legal-content-section a {
  font-weight: bold;
}

/* Specific styles for the thanks page */
.thanks-section {
  background-color: var(--color-yellow);
  padding: 100px 0;
  text-align: center;
  min-height: calc(
    100vh - 250px
  ); /* Adjust to make content visible above footer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thanks-section h1 {
  color: var(--color-black);
  text-shadow: 4px 4px 0 var(--color-red);
  font-size: 3.5em;
  margin-bottom: 30px;
}

.thanks-section p {
  font-size: 1.5em;
  color: var(--color-dark-gray);
  margin-bottom: 40px;
  max-width: 800px;
}

.thanks-section .btn {
  font-size: 1.3em;
  padding: 15px 30px;
}
