*{    
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body{
  background-color: black;
  color: white;
  font-size: 23px;
  font-weight: 400;
}

@font-face {
  font-family: 'FontOne';
  src: url(/static/PlayfairDisplay-ExtraBold.baaa55df45.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FontTwo';
  src: url(/static/PlayfairDisplay-Medium.0b2f31d37e.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.header-container{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 10vw;
}

.links-container{
  display: flex;
  align-items: center;
  gap: 1em;
}

.header-logo{
  width:100px;
}

.header-logo-link{
  margin-right: auto;
}

/* --- Navbar Container --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    color: white;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1101; /* Stay above the menu */
}

/* --- Desktop Navigation --- */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

/* --- Hamburger Button --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1101; /* Stay above the menu */
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.dropdown-container {
  position: relative; /* Crucial for positioning the menu */
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Touching the bottom of the link */
  left: 50%;
  transform: translateX(-50%);
  
  /* The Bridge: This creates the "gap" visually but keeps it clickable */
  padding-top: 15px; 
  z-index: 100;
}

/* The container for the links */
.dropdown-content {
  background-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden; /* Ensures the hover background doesn't bleed past corners */
  min-width: 180px;
}

/* Individual link styling */
.dropdown-content a {
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 0.2s ease; /* Smooth color transition */
  font-size: 20px;
  text-align: center;
}

/* Change background on hover */
.dropdown-content a:hover {
  background-color: #f5f5f5; /* Light grey background */
  color: black; /* Optional: change text color too */
}

/* The Separator Line */
.dropdown-content a:not(:first-child) {
  border-top: 1px solid #eee; /* Light line between items */
}

/* Hover logic: Show when container is hovered */
.dropdown-container:hover .dropdown-menu {
  display: flex;
}

/* Click logic: Show when class is added via JS */
.dropdown-container.is-active .dropdown-menu {
  display: flex;
}

/* Optional: styling the sub-links */
.dropdown-menu a {
  padding: 15px;
  text-decoration: none;
  white-space: nowrap;
}

a{
  text-decoration: none;
  color: white;
  font-family: "FontTwo", sans-serif;
  font-weight: 400;
}

a:hover{
  color: rgb(98, 98, 98);
}

.background {
  /* Remove the background-image line */
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* Keep your other layout styles */
}

.home-page{
  position: relative;
  text-align: center;
}

.hero-text{
  display: flex;
  gap: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
}

.hero-title{
  font-family: "FontOne", serif;
}

.sports-container{
  display: flex;
  justify-content: center;
  padding: 10vw;
  gap: 5vw;
}

.content{
  display:flex;
  padding: 5vw 10vh;
  justify-content: center;
}

.container {
  position: relative;
}

.image {
  display: block;
  width: 30vw;
  height: auto;
  border-radius: 10px;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0, 0, 0, 0.6);
}

.container:hover .overlay {
  opacity: 1;
}

.football-text {
  color: white;
  font-size: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Wrapper centers the gallery and gives padding */
.gallery-wrapper {
  max-width: 1200px; /* limits the gallery width */
  margin: 0 auto;    /* centers horizontally */
  padding: 20px;   /* space left/right */
  box-sizing: border-box;
}

/* Grid: 2 images per row */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px; /* space between images */
}

/* Optional: adjust for smaller screens */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* Make images fill their grid cell nicely */
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* optional rounded corners */
}

.leagues,
.sports-categories{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3vw;
  margin-inline: 8vw;
  margin-block: 3vw;
}

.leagues-content{
  padding: 0px;
}

.football-league-text{
  font-size: 40px;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

/* Lightbox image */
.lightbox img {
  max-width: 70vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.4s ease, filter 0.4s ease;
  touch-action: pan-y; /* allow vertical scroll but capture horizontal swipe */
  user-select: none;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-arrows {
  margin-top: 12px; /* space between image and arrows */
  display: flex;
  justify-content: space-between;
  width: 30%; /* adjust width as needed */
}

.lightbox-nav {
  font-size: 36px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 16px;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

/* Mobile lightbox sizing */
@media (max-width: 768px) {
  .lightbox img {
    max-width: 95vw;
    max-height: 90vh;
  }
}

/* Loading state for progressive image swap */
.lightbox img.loading {
  opacity: 0.5;
  filter: blur(6px);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 0.8;
}

@media screen and (max-width: 900px){

  .header-container{
    padding: 2vh 8vw;
  }

  .hero-text{
    align-items: center;
    padding-top: 20vw;
    font-size: 8vw;
    gap: 2vw;
  }

  .header-container{
    justify-content: flex-end;
  }

  .links-container{
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: black;
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
    transition: 0.40s ease-out;
    gap: 5px;
    padding: 0 0 0 20px;
  }

  a.nav-link{
    height: auto;
    margin-block: 0.7em;
    text-align: center;
    font-size: 1.4em;
  }

  .mobile-menu-btn {
        display: flex;
    }

  .nav-links {
      position: fixed;
      top: 0;
      right: -100%; /* Hidden off-screen to the right */
      background-color: black;
      width: 100%; /* Full screen width */
      height: 100vh;
      flex-direction: column;
      justify-content: flex-start;
      padding-top: 15vh;
      align-items: center;
      gap: 2.5rem;
      transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
      z-index: 1100;
  }

  /* Shown state - Slides in from right */
  .nav-links.active {
      right: 0;
  }

  .nav-links li {
      margin-left: 0;
  }

  .nav-links a {
      font-size: 2rem;
  }

  /* Hamburger to 'X' Transformation */
  .mobile-menu-btn.open span:nth-child(1) {
      transform: translateY(7.5px) rotate(45deg);
  }
  .mobile-menu-btn.open span:nth-child(2) {
      opacity: 0;
      transform: translateX(10px);
  }
  .mobile-menu-btn.open span:nth-child(3) {
      transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Ensure the dropdown menu shows up when we toggle 'is-active' via JS */
  .dropdown-container.is-active .dropdown-menu {
    display: flex;
    position: relative; /* Stacks it under the CONTACT link */
    padding-top: 0;
  }

  .dropdown-menu a{
    font-size:1em;
    padding: 20px 30px;
  }

  a.nav-item-link{
    font-size: 1.4em;
  }

  .nav-item-link-container{
    margin-block: 0.7em;
  }

  .content{
    padding: 10vh;
  }
  .image {
    width: 70vw;
  }

  .overlay{
    display: none;
  }

  .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7vw;
  }

  .gallery{
    gap: 5vw;
    margin-top: 8vw;
  }
  .gallery-image{
    width: 90%;
  }

  .leagues-content{
    padding: 0;
    margin-top: 13vw;
  }

  .leagues{
    margin-bottom: 13vw;
  }

}
