/* Drink Card Image Responsive Fix */
.drink-card img {
  max-width: 100%;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}
/* ===================== */
/* Layout and Body      */
/* ===================== */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-style: normal;
  color: #e7e7e7;
  background: black !important;
}

/* Visually hidden but accessible (for hidden H1) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===================== */
/* Header and Logo      */
/* ===================== */

.roots-header {
  width: 100%;
  text-align: center;
  margin: 32px 0 40px 0;
}
.roots-logo {
  max-width: 400px;
  width: 60vw;
  height: auto;
  display: inline-block;
  padding-top: 0px;
  padding-bottom: 10px;
}

/* ===================== */
/* Buttons              */
/* ===================== */

.button-column {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 24px;
  text-align: center;
}
.button-column .overlay-btn {
  min-width: 320px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
}
.overlay-btn {
  padding: 1em 2em;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #e7e7e7 !important;
  color: #232323;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: opacity 0.2s;
  text-align: center;
  text-decoration: none; /* ensure anchor-style buttons have no underline */
}
.overlay-btn:hover {
  opacity: 0.7;
}

/* ===================== */
/* Sections             */
/* ===================== */

.hidden-section {
  display: none;
  width: 90vw;
  margin-top: 40px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: center;
}

#drinks-section,
#party-section,
#location-section {
  width: 80vw;
  max-width: 900px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: rgba(35, 35, 35, 0.3);
  border-radius: 12px;
  margin: 32px auto 40px auto;
  height: auto;
}

/* Loading bar within events section */
#events-loading {
  width: 100%;
  max-width: 800px;
  padding: 0 10%;
  box-sizing: border-box;
}
.progress {
  position: relative;
  height: 4px;
  display: block;
  width: 100%;
  background-color: rgba(231, 231, 231, 0.2);
  border-radius: 2px;
  overflow: hidden;
}
.progress .indeterminate {
  background-color: #e7e7e7;
}
.progress .indeterminate:before {
  content: "";
  position: absolute;
  background-color: inherit;
  top: 0;
  left: 0;
  bottom: 0;
  will-change: left, right;
  animation: indeterminate 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.progress .indeterminate:after {
  content: "";
  position: absolute;
  background-color: inherit;
  top: 0;
  left: 0;
  bottom: 0;
  will-change: left, right;
  animation: indeterminate-short 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.75s;
}
@keyframes indeterminate {
  0% {
    left: -35%;
    right: 100%;
  }
  60% {
    left: 100%;
    right: -90%;
  }
  100% {
    left: 100%;
    right: -90%;
  }
}
@keyframes indeterminate-short {
  0% {
    left: -200%;
    right: 100%;
  }
  60% {
    left: 107%;
    right: -8%;
  }
  100% {
    left: 107%;
    right: -8%;
  }
}

/* ===================== */
/* Event Cards & Content*/
/* ===================== */

#event {
  align-items: center;
  width: 80vw;
  height: auto;
}
.event img.event-img {
  max-width: 80%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 12px auto 8px;
  box-sizing: border-box;
}
#events-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 0.9em;
}
.icon-link img {
  width: 28px;
  height: 28px;
  filter: invert(95%) sepia(2%) saturate(135%) hue-rotate(180deg)
    brightness(105%) contrast(96%);
}
.event {
  background: rgba(35, 35, 35, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  padding: 10px 10px;
  width: 80%;
  /* content continues */
  max-width: 800px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.event-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* removed generic .event img rule to avoid affecting description icons and drink images */
.event h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2em;
  font-weight: 700;
  color: #e7e7e7;
  text-align: left;
  width: 100%;
}
.event h4 {
  margin: 4px 0;
  font-size: 1em;
  color: #e7e7e7;
  font-weight: 550;
}
.event p {
  margin: 6px 0;
  font-size: 1em;
  color: #e7e7e7;
  font-weight: 400;
  text-align: justify;
}
.event p#date {
  margin: 4px 0;
  font-size: 1em;
  color: #e7e7e7;
  font-weight: 550;
}
.event-link {
  display: inline-block;
  /* width: 100%; */
  padding: 1em 2em;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #e7e7e7;
  color: #232323;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
}
.event-link:hover {
  opacity: 0.7;
  background: #ccc;
}

.drinks-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}
/* Make the drinks menu image responsive and fill the card width */
#drinks-section .drinks-content img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  border-radius: 8px;
  margin: 0 auto;
}

/* Desktop centering for Itallap image */
@media (min-width: 900px) {
  #drinks-section #drinks-list,
  #drinks-section .event,
  #drinks-section .drinks-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #drinks-section .drinks-content img {
    max-width: 400px; /* cap size on desktop */
    width: 100%; /* keep image responsive within the cap */
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* removed embedded Google Form styles */

/* ===================== */
/* Social/Footer         */
/* ===================== */

footer {
  width: 100vw;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
}
.social-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.social-icons svg {
  fill: #e7e7e7;
  width: 32px;
  height: 32px;
  margin: 0 8px;
  vertical-align: middle;
  transition: opacity 0.2s;
  cursor: pointer;
}
.social-icons svg:hover {
  opacity: 0.7;
}

/* Footer image icons (Instagram/Facebook/Spotify as <img>) -> target color #e7e7e7 */
.social-icon img {
  display: block;
  width: 36px;
  height: 36px;
  /* Approximate #e7e7e7 using filter on monochrome SVG/PNG */
  filter: brightness(0) invert(91%);
  transition: transform 0.2s, opacity 0.2s;
}
.social-icon:hover img {
  transform: scale(1.12);
  opacity: 0.85;
}

/* Inline description link helpers (top-level, not nested) */
.desc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desc-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.desc-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  filter: invert(98%) sepia(3%) saturate(200%) hue-rotate(180deg)
    brightness(110%) contrast(96%);
}
.desc-links {
  margin-top: 8px;
}
.desc-icons-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* footer-like centering */
  gap: 18px; /* similar spacing to footer */
  margin-top: 8px;
}
.desc-icons-row a {
  display: inline-flex;
  align-items: center;
}
.desc-icons-row .desc-icon {
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.desc-icons-row a:hover .desc-icon {
  opacity: 0.7;
  transform: scale(1.06);
}

/* Ensure Linktree SVG uses its intrinsic #e7e7e7 fill (do not recolor via filters) */
img[src$="linktree.svg"] {
  filter: none !important;
}

/* ===================== */
/* Utility & Misc        */
/* ===================== */

.map-responsive {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Match map width to event card width and center it */
#location-section .map-responsive {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  color: #e7e7e7;
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 0.5em;
  text-align: center;
}

/* ===================== */
/* Media Queries         */
/* ===================== */

@media (max-width: 800px) {
  #drinks-section .drink-card,
  #party-section .event {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  body {
    background: black !important;
  }

  .overlay-btn {
    font-size: 1.5em !important;
    padding: 1em 2em !important;
  }

  .button-column .overlay-btn {
    min-width: 0;
    width: 80%;
    max-width: 800px;
    text-align: center;
  }

  /* Make all sections match the same outer width on mobile */
  #party-section,
  #drinks-section,
  #location-section {
    width: 95vw;
    max-width: 100vw;
  }
  .event {
    max-width: 280px;
    width: 90vw;
  }
  /* removed mobile form styles */

  /* Match map container to .event width on mobile */
  #location-section .map-responsive {
    width: 90vw;
    max-width: 280px;
  }
}
