/* =========================
   Global / Base
   ========================= */
html {
  background-image: url(images/pg_bkg.png);
  background-repeat: repeat;
  background-color: #333; /* Fallback color */
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  background-color: #333;
  text-align: center;
  overflow-x: hidden; /* prevent accidental horizontal scroll */
}

.content {
  text-align: left;
  margin: 0 auto;
  padding: 20px;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* =========================
   Typography
   ========================= */
h1 {
  font-family: "cooper-black-std", Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  color: white;
  text-transform: lowercase;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #333399;
}

h2 {
  margin-top: 30px;
  font-family: "cooper-black-std", Arial, sans-serif;
  font-style: italic;
  color: #333399;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #88888b;
}

/* =========================
   Tighten guide lists
   ========================= */
ul {
  margin-top: 8px;
  margin-bottom: 12px;
  padding-left: 22px;   /* keeps bullets readable */
}

ul li {
  margin-bottom: 4px;   /* single-spaced feel */
  line-height: 1.25;
}

/* Tighten lists even if <li> contains <p> */
.content ul { 
  margin: 8px 0 12px;
  padding-left: 22px;
}

.content ul li { 
  margin: 2px 0;
  line-height: 1.25;
}

/* If list items contain paragraphs, remove paragraph margins */
.content ul li p {
  margin: 0;
}


/* =========================
   Links
   ========================= */
a:link { color: #88888b; }
a:visited { color: #88888b; }
a:hover { color: #333399; }
a:active { color: #88888b; }

/* =========================
   Banner / Footer
   ========================= */
.banner-ad {
  text-align: center;
}
a.banner-ad { stroke: none; }

.banner-ad img {
  width: 100%;
  max-width: 900px;
  height: auto;
}

#bottom_nav {
  text-align: center;
}

#copyright {
  color: #d3d3d3;
  font-size: 0.8em;
}

/* =========================
   Header (Reusable header.html)
   ========================= */
#header-id {
  padding: 12px 24px;
}

/* Desktop header layout: left control (hamburger hidden) | logo | donate */
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
}

/* Logo on left (desktop) */
.header-logo {
  justify-self: start;
  text-align: left;
}

.header-logo img {
  max-height: 90px;
  width: auto;
}

.header-donate {
  justify-self: end;
  text-align: right;
}

.donate-note {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #cfcfcf;
}

/* Hide PayPal image input button if present */
.header-donate input[type="image"] {
  display: none;
}

/* =========================
   Donate button
   ========================= */
.donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #88888b;
  background: #333399;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.donate-btn:hover {
  background: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.donate-btn:active {
  transform: translateY(0);
}

.donate-btn:focus-visible {
  outline: 3px solid rgba(136, 136, 139, 0.7);
  outline-offset: 3px;
}

/* =========================
   Nav (Hamburger-ready)
   ========================= */
.site-nav {
  background-color: #333399;
  text-align: center;
  padding: 12px 0;
  border-radius: 14px;
  margin: 12px auto 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  margin: 0 15px;
  padding: 10px;
  display: inline-block;
}

.site-nav a:hover {
  background-color: black;
  border-radius: 10px;
}

/* =========================
   Hamburger (white lines, no box)
   ========================= */
.nav-toggle {
  display: none;           /* shown on mobile only */
  background: transparent; /* no box */
  border: none;
  padding: 8px;
  cursor: pointer;
  justify-self: start;
  width: 44px;
  height: 44px;

  /* stack bars vertically */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(136, 136, 139, 0.7);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 26px;
  margin: 0;
  background: #ffffff;
  border-radius: 2px;
}

.nav-toggle:hover .nav-toggle-bar { opacity: 0.85; }
.nav-toggle:active .nav-toggle-bar { transform: scaleX(0.95); }

/* =========================
   Mobile Responsive Fixes
   ========================= */
@media (max-width: 768px) {

  body { padding: 0 12px; }
  .content { padding: 12px; }

  /* Headings */
  h1 {
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  /* MOBILE HEADER: logo full width above hamburger + donate */
  .header-grid {
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo logo"
      "menu donate";
    row-gap: 10px;
    align-items: center;
  }

  .header-logo {
    grid-area: logo;
    justify-self: center;
    width: 100%;
    text-align: center;
  }

  .header-logo img {
    max-height: none;
    width: 100%;
    max-width: 420px;
    height: auto;
  }

  .nav-toggle {
    grid-area: menu;
    display: inline-flex; /* show hamburger on mobile */
    align-items: center;
    justify-content: center;
  }

  .header-donate {
    grid-area: donate;
    justify-self: end;
    text-align: right;
  }

  /* Collapsible nav panel on mobile */
  .site-nav {
    display: none; /* collapsed by default */
    padding: 0;
    margin-top: 10px;
    border-radius: 14px;
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .site-nav a {
    margin: 0;
    font-size: 16px;
    padding: 12px 10px;
  }

  /* Location cards (if used elsewhere) */
  .location-image {
    width: 100%;
    max-width: 320px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Guide images (FINAL, SINGLE SOURCE)
   ========================= */

/* Desktop / tablet float-right image that wraps text */
.guide-float-image {
  float: right;
  width: min(400px, 45%);
  max-width: 400px;
  margin: 0 0 12px 16px;
  cursor: pointer;

  border: 1px solid white;
  padding: 5px;
  background: #fff;
  border-radius: 6px;
}

/* Standard guide image (centered) */
.guide-image {
  display: block;
  margin: 0 auto 16px;
  max-width: 700px;
  width: 100%;
  cursor: pointer;

  border: 1px solid white;
  padding: 5px;
  background: #fff;
  border-radius: 6px;
}

/* Mobile: stack images and make them nearly full-screen */
@media (max-width: 768px) {
  .guide-float-image,
  .guide-image {
    float: none;
    display: block;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 520px; /* nearly full screen */
  }
}

/* =========================
   Fullscreen image overlay (MODAL)
   ========================= */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.overlay img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;

  border: 2px solid #fff;
  background: #fff;
  border-radius: 8px;
}

.close-button {
  position: fixed;
  top: 14px;
  right: 14px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid #88888b;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}

/* =========================
   Toast notification
   ========================= */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}