/* CSS Reset */
* {
  box-sizing: inherit;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Libre Baskerville', serif;
  background-color: #120024; /* Retro Synth BG */
  color: #ffffff;
  line-height: 1.6;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Containers and Layout */
.c5qmak-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.c5qmak-header-l-r-r {
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background */
  backdrop-filter: blur(15px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 0, 153, 0.3); /* Accent border */
}

.c5qmak-logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.c5qmak-logo span {
  color: #ffffff;
}

.c5qmak-desktop-nav ul {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.c5qmak-desktop-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.c5qmak-desktop-nav a:hover {
  color: #00e5ff; /* Accent color on hover */
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.c5qmak-age-flag {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1em;
}

.c5qmak-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.c5qmak-hamburger {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2em;
  cursor: pointer;
}

/* Mobile Menu */
.c5qmak-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 0, 36, 0.95); /* Darker, opaque synth BG */
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.c5qmak-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.c5qmak-mobile-menu li {
  margin-bottom: 25px;
}

.c5qmak-mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.c5qmak-mobile-menu a:hover {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.c5qmak-close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5em;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.c5qmak-close-menu:hover {
  transform: rotate(90deg);
  color: #ff0099;
}

/* Footer */
.c5qmak-footer {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.3); /* Matches header background */
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 229, 255, 0.3); /* Accent border */
  margin-top: auto; /* Pushes footer to the bottom */
}

.c5qmak-footer ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.c5qmak-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.c5qmak-footer a:hover {
  color: #ff0099;
  text-shadow: 0 0 8px rgba(255, 0, 153, 0.7);
}

.c5qmak-footer-contact {
  margin-top: 15px;
  font-size: 0.9em;
  text-align: left;
  opacity: 0.9;
  color: #ffffff;
}

.c5qmak-footer-contact h4 {
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 0.85em;
  opacity: 0.8;
  color: #ffffff;
}

.c5qmak-footer-contact p {
  margin-bottom: 8px;
}

.c5qmak-footer-contact strong {
  color: #00e5ff; /* Accent for labels */
}

.c5qmak-footer p {
  color: #ffffff;
  font-size: 0.9em;
  text-align: justify;
}

.c5qmak-footer a[href^="https://www.gambleaware.org"] {
  color: #ffeb3b; /* Warning color for external links */
  font-weight: bold;
  text-decoration: underline;
}

.c5qmak-footer a[href^="https://www.gambleaware.org"]:hover {
  color: #ffffff;
}

.c5qmak-copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.7;
}

.c5qmak-copyright a {
  color: #ffffff;
  opacity: 0.9;
}

.c5qmak-copyright a:hover {
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

/* Content Sections */
.c5qmak-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle tinted background for sections */
  margin: 40px auto;
  border-radius: 24px;
  max-width: 1000px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); /* Soft, expansive shadow */
  position: relative;
  z-index: 1;
}

.c5qmak-content-section h2 {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 40px;
  color: #ff0099; /* Accent heading color */
  text-shadow: 0 0 15px rgba(255, 0, 153, 0.7);
}

.c5qmak-content-section h3 {
  font-size: 2em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #00e5ff; /* Accent heading color */
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.c5qmak-content-section p {
  margin-bottom: 20px;
  color: #e0e0e0; /* Slightly muted text */
}

.c5qmak-content-section ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.c5qmak-content-section li {
  margin-bottom: 10px;
}

/* Hero Section */
.c5qmak-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.c5qmak-hero-text {
  flex: 1;
  min-width: 300px;
  opacity: 0.95;
}

.c5qmak-hero-text h1 {
  font-size: 3.5em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 5px 20px rgba(255, 0, 153, 0.5);
}

.c5qmak-hero-text p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #e0e0e0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.c5qmak-hero-image-container {
  flex: 1.2;
  max-width: 600px;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c5qmak-hero-image-container img {
  width: 100%;
  max-height: 500px; /* Fixed max height for aspect ratio consistency */
  object-fit: cover; /* Ensure image covers the area */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 255, 0.3); /* Dual shadow for depth */
  aspect-ratio: 16/9; /* Maintain a consistent aspect ratio */
}

/* Buttons */
.c5qmak-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.c5qmak-btn-primary {
  background-color: #ff0099; /* Accent Primary */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 0, 153, 0.5);
}

.c5qmak-btn-primary:hover {
  background-color: #ffffff;
  color: #ff0099;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.c5qmak-btn-secondary {
  background-color: #00e5ff; /* Accent Secondary */
  color: #120024; /* Dark contrast */
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.5);
}

.c5qmak-btn-secondary:hover {
  background-color: #ffffff;
  color: #00e5ff;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

/* Game Grid */
.c5qmak-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.c5qmak-game-card {
  background-color: #ffffff; /* Stark white background for contrast */
  border: 4px solid #000000; /* Thick black border */
  box-shadow: 6px 6px 0px #000000, 0 0 20px rgba(0,0,0,0.1); /* Neo-brutalist shadow */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #120024;
}

.c5qmak-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0px #000000, 0 0 30px rgba(255, 0, 153, 0.4); /* Accent shadow on hover */
}

.c5qmak-game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #000000; /* Consistent border */
}

.c5qmak-game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.c5qmak-game-card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ff0099; /* Accent title color */
}

.c5qmak-game-card-description {
  font-size: 1em;
  color: #333333; /* Darker text for readability on white */
  margin-bottom: 15px;
}

.c5qmak-game-card-play-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 15px;
  background-color: #00e5ff; /* Accent color for card buttons */
  color: #120024;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  margin-top: auto; /* Push to bottom */
}

.c5qmak-game-card-play-btn:hover {
  background-color: #120024;
  color: #00e5ff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .c5qmak-desktop-nav {
    display: none; /* Hide desktop nav on small screens */
  }

  .c5qmak-hamburger {
    display: block; /* Show hamburger icon */
  }

  .c5qmak-hero {
    flex-direction: column;
    text-align: center;
  }

  .c5qmak-hero-text {
    margin-bottom: 40px;
  }

  .c5qmak-hero-image-container {
    order: -1; /* Image appears first on mobile */
    max-width: 80%;
  }

  .c5qmak-hero-text h1 {
    font-size: 2.8em;
  }

  .c5qmak-hero-text p {
    font-size: 1.1em;
  }

  .c5qmak-footer ul {
    flex-direction: column;
    align-items: center;
  }

  .c5qmak-footer-contact {
    text-align: center;
  }

  .c5qmak-content-section h2 {
    font-size: 2.3em;
  }

  .c5qmak-content-section h3 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .c5qmak-logo span {
    font-size: 0.9em;
  }

  .c5qmak-age-flag {
    font-size: 0.9em;
  }

  .c5qmak-hero-text h1 {
    font-size: 2.3em;
  }

  .c5qmak-mobile-menu a {
    font-size: 1.5em;
  }

  .c5qmak-close-menu {
    font-size: 2em;
    top: 20px;
    right: 20px;
  }

  .c5qmak-game-grid {
    grid-template-columns: 1fr; /* Single column on very small screens */
  }

  .c5qmak-game-card {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* Global Image Fix */
img, canvas, iframe, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}