html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: #141117;
}

.hero-header {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-position: center -20px;
}

.navbar-home {
  background-color: #988aa8;
  transition: background-color 0.3s ease;
  padding: 0.5em 0;
  text-align: center;
}

.nav-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-family: "Chelsea Market", system-ui;
  font-weight: bold;
  font-size: 1.7em;
  transition: color 0.15s ease;
  padding: 0em 1em;
}

.nav-list li a:hover {
  color: #fff;
}

.mission-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: #0077cc;
  border: 2px solid #ccc;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  max-width: 750px;
  margin: 30px auto;
}

.top-row {
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.mission-heading {
  flex: 1;
  display: flex;
  justify-content: center; /* Center the text horizontally */
  align-items: center; /* Center the text vertically */
}

.mission-heading h4 {
  text-align: center;
  color: white;
  font-family: "Cal Sans", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.3rem;
  margin: 0;
}

.mission-blurb-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mission-blurb {
  font-family: "Cal Sans", sans-serif;
  color: white;
  letter-spacing: 0.1rem;
  font-size: 1.2rem;
  line-height: 1.6;
  flex: 1;
}

.bio-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.bio-text {
  color: white;
  font-family: "Cal Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

h1 {
  text-align: center;
  color: white;
  font-family: "Chelsea Market", system-ui;
  font-size: 2.2rem;
}

h2 {
  text-align: center;
  color: white;
  font-family: "Chelsea Market", system-ui;
  font-size: 1.3rem;
}

/* Glass Section Container */
.glass-gallery {
  background-color: #ff8200;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 16px;
}

/* Base image styling */
.glass-item img {
  border-radius: 8px;
  border: 2px solid white;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Desert Eagle – Top Left (small) */
.glass-item.deserteagle-glass {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
}
.glass-item.deserteagle-glass img {
  height: 180px;
}

/* Neyland Stadium – Top Middle (large) */
.glass-item.neyland-glass {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
}
.glass-item.neyland-glass img {
  height: 300px;
}

/* Charizard – Top Right (small) */
.glass-item.charizard-glass {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: center;
}
.glass-item.charizard-glass img {
  height: 180px;
}

/* Bottom Row – Tower1, Ship, Tower2 (all small) */
.glass-item.tower1-glass {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  justify-content: center;
}
.glass-item.shipinabottle-glass {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
}
.glass-item.tower2-glass {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  justify-content: center;
}
.glass-item.tower1-glass img,
.glass-item.shipinabottle-glass img,
.glass-item.tower2-glass img {
  height: 180px;
}

/* Partners Section */
.partners-container {
  padding: 40px 20px;
  background-color: #176434;
  color: #fff;
  font-family: "Cal Sans", sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 16px;
}

.partners-container h1 {
  font-family: "Chelsea Market", system-ui;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.partners-image {
  flex: 1 1 40%;
  max-width: 400px;
}

.partners-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
}

.partners-info {
  flex: 1 1 50%;
}

.partners-info h2 {
  font-family: "Chelsea Market", system-ui;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.partners-info p {
  font-family: "Cal Sans", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.1rem;
}

/* Partners Small Box */
.partner-logos-box {
  background-color: #176434;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 15px;
  padding: 10px;
  max-width: 900px;
  margin: 30px auto 0;
  border: 2px solid white;
  border-radius: 16px;
  justify-items: center; /* Center logos in grid cells */
  align-items: center;
}

.partner-logos-box img {
  height: 150px; /* Increased from 60px */
  width: 150px; /* Uniform size */
  object-fit: contain;
  border: 2px solid black;
  border-radius: 16px;
}

.partner-logos-box img.good-logo {
  background-color: white;
}

/*Slideshow gallery section*/

.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  border-radius: 8px;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Contact section */

.social-embeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #d83148;
  border: 2px solid white;
  border-radius: 16px;
}

.instagram-embed {
  flex: 1 1 300px;
  max-width: 500px;
  min-width: 280px;
  border-radius: 16px;
  background-color: #d83148;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  height: 600px;
}

.facebook-embed {
  flex: 1 1 300px;
  max-width: 500px;
  min-width: 280px;
  border-radius: 16px;
  background-color: #d83148;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  height: 600px;
  position: relative;
}

.fb-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#contact {
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center; /* center horizontally */
  text-align: center;
}

#contact h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Form box styling */
.contact-form {
  background-color: #988aa8;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid white; /* white trim */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  font-size: 1.2rem;
  font-family: "Cal Sans", sans-serif;
}

/* Input/textarea styling */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-size: 1rem;
}

/* Submit button */
.form-group button {
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
  transition: background-color 0.15s ease;
}

.form-group button:hover {
  background-color: #89436e;
  color: white;
}

/* Footer Contact Info */
#footer-contact {
  background-color: #89436e;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-info {
  letter-spacing: 0.1rem;
  font-family: "Cal Sans", sans-serif;
  font-size: 1.1rem;
  color: white;
}

.footer-info p {
  margin: 0.5rem 0;
}

.footer-info strong {
  font-weight: bold;
}

/* Age Gate Overlay */
#age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.age-gate-box {
  background: #988aa8;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border: 2px solid white; /* white trim */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.age-gate-box h2 {
  margin-bottom: 1.5rem;
}

.age-gate-box button {
  font-family: "Cal Sans", sans-serif;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.age-gate-box button:first-of-type {
  background-color: #1f8444;
  color: white;
}

.age-gate-box button:last-of-type {
  background-color: #bc2438;
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-header {
    overflow: visible; /* allow image overflow if needed */
    padding: 1rem 0; /* add vertical padding */
    min-height: 200px; /* ensure minimum height on mobile */
  }

  .hero-img {
    object-position: center center; /* reset vertical shift on mobile */
    max-height: 60vh; /* limit max height to viewport */
    width: 100%;
    height: auto;
  }

  .navbar-home {
    padding: 0.5em 1em; /* add horizontal padding to keep nav away from edges */
    box-sizing: border-box; /* include padding in total width */
  }

  .nav-list {
    gap: 0.7em; /* reduce gap between nav items */
    justify-content: center;
    flex-wrap: wrap; /* allow nav items to wrap to next line */
  }

  .nav-list li a {
    font-size: 1.2em; /* smaller font size for mobile */
    padding: 0.3em 0.6em; /* reduce horizontal padding */
    white-space: nowrap; /* keep text on one line */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis; /* add "..." if text is too long */
    display: inline-block;
  }
  .mission-container {
    padding: 16px;
  }

  .mission-heading h4 {
    font-size: 1.6rem;
    letter-spacing: 0.2rem;
  }

  .mission-blurb {
    font-size: 1rem;
    text-align: center;
  }

  .bio-text {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .mission-blurb-container {
    flex-direction: column;
    align-items: center;
  }

  .bio-column {
    width: 100%;
    max-width: 350px;
  }

  .mission-blurb h2 {
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
  }

  .partners {
    flex-direction: column;
    text-align: center;
  }

  .partners-image,
  .partners-info {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .glass-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .glass-item {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }

  .glass-item img {
    width: 100%;
    height: auto !important;
  }

  .partner-logos-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  .partner-logos-box img {
    width: 120px;
    height: 120px;
  }

  .social-embeds > div {
    flex: 1 1 100%;
    max-width: 100%;
    height: auto; /* let height be automatic */
  }

  .instagram-embed img {
    height: auto;
    object-fit: contain; /* avoid cropping on small screens */
  }

  .contact-section {
    width: 100%;
    box-sizing: border-box; /* include padding in width */
    overflow-x: hidden; /* extra safeguard */
  }
  .contact-form {
    width: 100%;
    max-width: 100%; /* or whatever max you need */
    margin: 0 auto; /* center it horizontally */
    box-sizing: border-box;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
}
