body {
    margin: 0;
    /* Make room for the fixed navbar so it doesn't cover content */
    padding-top: 72px;
    background: linear-gradient(90deg, #8c1d09, #301802);
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    text-align: center;
  }

  .title {
    font-family: "Special Gothic Expanded One", sans-serif;
    /* Make the site titles consistent across pages and responsive */
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0.2rem 0 0.6rem 0;
    font-weight: 400; /* reduce boldness */
    letter-spacing: 0.01em;
  }

  /* Navbar styles */
  .site-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.12);
    backdrop-filter: blur(4px);
    /* Use fixed so we can animate it off-screen cleanly */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transform: translateY(0);
    transition: transform 0.25s ease;
    will-change: transform;
  }

  /* Hidden state: slide the navbar up and out of view */
  .site-nav.hidden {
    transform: translateY(-120%);
  }

  .nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.12s ease;
  }

  .nav-link:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
  }

  .nav-link.active {
    background: #d2391e;
    box-shadow: 2px 2px 0 #000;
  }
  
  .container {
      padding: 2rem;
      max-width: 500px;
      margin: auto;
  }

  /* Wider container for about page */
  .about-page .container {
      max-width: 1100px; /* wider layout for about/team pages */
      padding: 2rem 2.5rem;
      display: flex;
      flex-direction: column;
      align-items: center; /* center children horizontally */
    }
  
  .logo {
    width: 80px;
    margin-bottom: 0.5rem;
    animation: float 2s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }

  @keyframes shake {
    0%, 100% { transform: translateY(-3px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-3px) scale(1.05) rotate(-2deg); }
    75% { transform: translateY(-3px) scale(1.05) rotate(2deg); }
  }
  
  .icon-button img {
    width: 24px;
    margin-bottom: 1rem;
  }

  /* Hover / focus interactions for social icons */
  .icon-button {
    display: inline-block;
    cursor: pointer;
    transition: transform 150ms ease, filter 150ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .icon-button img {
    transition: transform 160ms cubic-bezier(.2,.8,.2,1), filter 160ms ease;
    will-change: transform, filter;
  }

  .icon-button:hover img,
  .icon-button:focus img {
    transform: translateY(-4px) scale(1.08);
    filter: brightness(1.12) drop-shadow(0 6px 12px rgba(0,0,0,0.35));
  }

  .icon-button:focus {
    outline: 3px solid rgba(210,57,30,0.15);
    outline-offset: 4px;
  }

  .button-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  @media (min-width: 600px) {
    .button-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .full-width-button {
    grid-column: 1 / -1; 
    width: auto; 
    justify-self: stretch; 
  }
  

  .game-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #d2391e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.2s ease;
  }
  
  .game-button img {
    width: auto;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
  }

  .game-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  }

  .highlight-game-button {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
  }

  .highlight-button {
    width: 100%;
    max-width: 460px; /* Adjusted to fit within container */
    flex-direction: row;
    gap: 2rem;
    padding: 1.5rem;
    background: #d2391e;
    box-shadow: 4px 4px 0 #000;
  }

  .highlight-button img {
    width: auto;
    height: 150px; /* Slightly larger image */
  }

  .highlight-button span {
    font-size: 1.2em;
    align-self: center;
  }

  .highlight-button:hover {
    animation: shake 0.3s ease-in-out infinite;
  }

  @media (max-width: 600px) {
    .highlight-button {
      flex-direction: column;
      gap: 1rem;
    }
  }
  
  .footer-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #000;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  }

  footer {
    background: rgba(0,0,0,0.08);
    color: #e0e0e0;
    font-size: 0.95rem;
    padding: 1.2rem 0 0.7rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    text-align: center;
    letter-spacing: 0.01em;
  }
  
  .game-frame {
    text-align: center;
    margin: 40px;
  }

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the icons horizontally */
  gap: 15px; /* Adds space between the icons */
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  min-width: 56px;
}

.nav-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex: 1;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* About page profile card */

.profile-card {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  background: rgba(0,0,0,0.06);
  padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: 12px;
  width: 100%;
  max-width: 920px; /* predictable centering inside the container */
  margin: 2rem 0; /* vertical spacing; horizontal centering handled by container */
  box-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}


.profile-photo {
  width: clamp(110px, 16vw, 220px);
  height: clamp(110px, 16vw, 220px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 2px 2px 0 #000;
}

.profile-info {
  text-align: left;
  color: #fff;
}

.profile-name {
  margin: 0;
  font-size: 1.6rem;
}

.profile-role {
  margin: 0.25rem 0 0.9rem 0;
  font-weight: 500;
  color: #ffd8c8;
}

.profile-bio {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-info { text-align: center; }
}

.icon-button img {
  width: 25px; /* Default size for Instagram icon */
}

.youtube-icon img {
  width: 30px; /* Make YouTube icon a bit bigger */
}

/* Games grid and cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

.game-card {
  background: rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 12px 24px rgba(0,0,0,0.35);
}

.game-thumb {
  width: 100%;
  height: auto; /* allow natural height so images aren't cropped */
  max-height: 220px; /* optional limit for very tall images */
  object-fit: contain; /* show entire image without cropping */
  display: block;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.08));
}

.game-meta {
  padding: 0.9rem 1rem 1.25rem 1rem;
  text-align: left;
}

.game-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
}

.game-genres {
  margin: 0 0 0.5rem 0;
  color: #ffd8c8;
  font-weight: 500;
  font-size: 0.95rem;
}

.game-desc {
  margin: 0;
  color: #fff;
  opacity: 0.95;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .game-thumb { height: 130px; }
}

/* Construction card for blog page */
.construction-card {
  max-width: 760px;
  margin: 2.2rem auto;
  background: rgba(0,0,0,0.06);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  text-align: center;
}

.construction-graphic {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
}

/* Match the blog construction card styling for the About block on the home page */
.about-hero {
  max-width: 760px;
  margin: 2.2rem auto;
  background: rgba(0,0,0,0.06);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  text-align: center;
}

.about-hero h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.about-hero p {
  margin: 0.5rem 0;
  line-height: 1.5;
  color: #fff;
  opacity: 0.95;
}

.construction-card h2 { margin-top: 0.25rem; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}
.footer-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6));
}

/* Make footer social icons interactive like header icons */
.footer-social a {
  display: inline-block;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.footer-social img {
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), filter 160ms ease;
  will-change: transform, filter;
}

.footer-social a:hover img,
.footer-social a:focus img {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.12) drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

.footer-social a:focus {
  outline: 3px solid rgba(210,57,30,0.15);
  outline-offset: 4px;
}


