/* Global Styles */
body {
  background-color: #000;
  color: #eee;
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
}

html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
}

/* Header Layout */
header {
  color: #eee;
  padding: 1em 2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  flex-wrap: nowrap;
}

/* Base font sizes */
h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
}

p {
  font-size: clamp(1rem, 4vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto 1.2em auto;
  line-height: 1.6;
  color: #f1f1f1;
}

/* Left section: logo + menu */
.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 10;
  position: relative;
  margin-left: 50px !important;
}

/* Small logo above the menu */
.logo-small {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  width: 40px; /* fallback size */
  height: auto;
}

/* Main page logo in the center */
.logo-main {
  display: block;
  margin: 10px auto;
  max-width: 35%;
  width: 100%;
  height: auto;
}

/* Banner Image - absolutely centered horizontally */
.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* makes banner non-interactive, so clicks pass through */
  z-index: 5;           /* below menu */
  text-align: center;
}

/* 2Bit Banner */
.banner {
  max-height: 250px;
  width: auto;
  height: auto;
	margin-top: 100px;
}

/* 2BitDAR Banner */
.big-banner {
  max-height: 250px; /* Overrides .banner if applied later in the cascade */
	width: auto;
  height: auto;
	margin-top: 50px;
}

/* Plex Banner */
.featured-banner {
  max-height: 150px;
  width: auto;
  height: auto;
	margin-top: 100px;
}

/* Ed's Free Charters Banner */
.eds-banner {
  max-height: 150px;
  width: auto;
  height: auto;
	margin-top: 100px;
}

/* Menu container wrapping toggle + nav */
.menu-container {
  position: relative;      /* Position context for absolute menu */
  display: inline-block;   /* shrink-wrap */
}

/* Hamburger Menu */
.menu-toggle {
  display: block;
  cursor: pointer;
  width: 30px;
  height: 30px; /* Added height for proper spacing */
  margin-left: 0;
}

.menu-toggle div {
  background-color: #0af;
  height: 4px;
  width: 100%; /* Ensure hamburger bars are visible */
  margin: 5px 0;
  border-radius: 2px;
}

.text-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; 
  z-index: 5;           /* below menu */
  text-align: center;
  padding-top: 50px;
  padding: 1rem;
  font-size: clamp(1rem, 4vw, 1.3rem);
  width: 100%;
}

/* Navigation Menu */
nav {
  display: none;
  position: absolute;
  top: 100%;      /* below the hamburger */
  left: 0;        /* aligned with the button */
  background-color: #111;
  padding: 1em;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 220px;           /* start closed */
  max-width: 500px;   /* max expand width */
  overflow: hidden;   /* hide content when closed */
  z-index: 9999;
  flex-direction: column;
  transform: none;
  transform-origin: top left;
  transition: width 0.3s ease, opacity 0.3s ease;
	opacity: 0;
}

nav.active {
  display: flex;
  width: 100%; /* or whatever width you prefer */
	opacity: 1;
}

/* Menu links */
nav a {
  color: #0af;
  text-decoration: none;
  margin: 10px 0;
  display: block;
	font-size: 1.2rem; /* Increase this value as needed */
	padding: 6px 10px;
}

/* Hover effect */
nav a:hover {
  background-color: #333; /* dark gray background on hover */
  border-radius: 4px;     /* optional: rounded corners */
  text-decoration: none;  /* prevent underline */
}

/* Main Content */
main {
  flex: 1;
  padding: 20px;
  margin: 0 auto;
  margin-top: 50px;
  text-align: center;
  width: 100%;      /* Ensure main fills horizontally */
  max-width: 1920px; /* or your preferred max width */
}

main a {
  font-size: inherit;         /* 👈 Match the parent text size */
  line-height: inherit;       /* 👈 Also match line height */
  display: inline;            /* Use inline for true paragraph flow */
  margin: 0;                  /* Remove extra spacing */
  padding: 0;                 /* No padding = no mismatch */
  text-decoration: underline; /* Optional: makes links clearer */
  transition: color 0.3s ease;
}

main a:hover {
  text-decoration: underline;
  color: #0af; /* or any hover color */
}

main.wide {
  max-width: 1920px; /* or whatever max width you want */
  margin: 0 auto;
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 100vh;
  background-color: black; /* main background */
  z-index: 0;
}

.wrapper::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: 0;
  background: radial-gradient(circle, transparent 60%, #001f4d 100%);
  z-index: -1; /* behind everything */
  pointer-events: none;
}

.youtube-stream {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #111;
  border: none;
  height: auto; 
  max-height: 788px; /* your max height */
  overflow: hidden;
}

.youtube-stream iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;   /* Fill container width */
    height: 100%;  /* Fill container height */
    border: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px; /* 10px space between images */
  margin-top: 20px;
  max-width: 820px; /* roughly twice the max image width */
  margin-left: auto;
  margin-right: auto;
}

.img-wrapper {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.image-row img {
  max-width: none;    /* Remove max-width to avoid restricting width */
  height: 600px;      /* Fixed height for all images */
  width: auto;        /* Width adjusts automatically to keep aspect ratio */
  border-radius: 10px;
  object-fit: cover;  /* Ensures image covers the height nicely */
}

.fishing-photo {
  height: 600px;  /* fixed height */
  width: auto;    /* maintain aspect ratio */
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Footer */
footer {
    color: #eee;
    padding: 1em 2em;
    text-align: center;
}

/* FIX: removed extraneous "a" after footer a selector */
footer a {
  font-size: 1.1rem; /* smaller size on desktop */
  line-height: 1.4;
  display: inline-block;
  margin: 0 0.8em;
  padding: 4px 8px;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

.footer-inner {
  font-size: 1rem;       /* Set a consistent size */
  line-height: 1.4;      /* Maintain vertical rhythm */
  margin: 0.5em 0 0;     /* Optional: control spacing */
  color: #eee;           /* Match your footer text color */
  text-align: center;    /* Center-align like your links */
  width: 100%;            /* Make sure it spans full width */
  display: block;         /* Ensure it's treated like a block element */
}

#status-message {
  font-weight: bold;
  margin-top: 10px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Base styles for the form */
#request-form {
  max-width: 600px;
  margin: 0 auto;
}

#request-form label,
#request-form input,
#request-form select,
#request-form button, 
#request-form textarea {
  font-size: 1.6rem;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

/* Base styles for the form */
#issue-form {
  max-width: 600px;
  margin: 0 auto;
}

#issue-form label,
#issue-form input,
#issue-form select,
#issue-form button,
#issue-form textarea {
  font-size: 1.6rem;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

/* Password Screen Overlay */
#password-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  padding: 20px;
  text-align: center;
}

#password-screen form {
  width: 100%;
  max-width: 400px;
}

#password-screen input, 
#password-screen button {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 5px;
  border: none;
}

#password-screen button {
  background-color: #0078d7;
  color: white;
  cursor: pointer;
}

#error {
  color: #ff4c4c;
  margin-top: 12px;
}

#password-overlay {
  position: fixed;
  pointer-events: none;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0); /* semi-transparent black */
  z-index: 9998; /* below the form */
}

.password-banner {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 250px; /* adjust size */
  height: auto;
}

.password-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* make room for the icon */
}

#toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-35%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  color: #ccc;
}

.page-border {
  min-height: 100vh;
  padding: 20px;
  background: 
    radial-gradient(circle, #001f4d 0%, black 100%);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  html, body {
    width: 100vw;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
  }
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  .wrapper {
    width: 100vw;
    flex: 1 0 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    align-items: center;
  }
  header {
  justify-content: flex-start !important;
  display: flex;
  padding-left: 5vw;
  height: auto;
  }
  footer {
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  }
  header, footer {
    width: 100vw;
    min-width: 0;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  position: relative; /* Make this the anchor for nav's absolute positioning */
  margin-left: 5vw !important;
  text-align: left;
  }
  .youtube-stream {
    margin-left: auto;
    margin-right: auto;
  }
  nav a {
    font-size: 1.2rem;
  }
nav {
    display: none;
    position: absolute;
    top: 100%;       /* Appear below the menu button */
    left: 0;
    min-width: 250px;
    max-width: 80vw;
    background-color: #111;
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    flex-direction: column;
    z-index: 100;
    transition: opacity 0.3s ease;
  }
  nav.active {
    display: flex !important;
    opacity: 1;
  }
  nav a {
    font-size: 1.2rem;
    padding: 0.5em 0;
    text-align: left;
  }
  .banner,
  .big-banner,
  .featured-banner {
    max-width: 100vw;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }
  .eds-banner {
    align-items: center;
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0 auto;
    padding-top: 0;
    display: block;
  }
  .logo-main {
    max-width: 500px;
  }
  body p, html p, p {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: center;
  }
  main {
    display: flex;
    flex: 1 0 auto;
    flex-grow: 1;        /* allow main to expand */
    min-height: 0;       /* prevent flex overflow issues */
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  main h2 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    line-height: 1.3;
    word-break: break-word;
  }
  main p {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: center;
    box-sizing: border-box;
    display: block;
    word-break: break-word;
  }
  main h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
    width: 100%;
  }
  .image-row {
  display: flex;
  flex-direction: row;      /* side by side */
  justify-content: center;
  gap: 10px;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  padding: 0 10px;
  flex-wrap: nowrap;        /* prevent wrapping */
}
.image-row img {
  height: auto;             /* auto height to keep aspect ratio */
  max-width: 48%;           /* each image takes roughly half screen minus gap */
  width: 48%;               /* scale images down to fit */
  border-radius: 10px;
  object-fit: cover;      /* no cropping */
  display: block;
}
  footer {
    padding: 0.5em 0.5em;
    text-align: center;
  }
  footer a {
    font-size: 1rem;
    line-height: 1.2;
    display: inline;
    margin: 0 0.2em;
    padding: 2px 2px;
    vertical-align: middle;
    text-align: center;
  }
  .footer-inner {
    font-size: 0.95rem;
    margin: 0.2em 0 0;
    display: block;
    width: 100%;
    text-align: center;
  }
  #request-form {
    max-width: 100vw;
    padding: 10px;
  }
  #request-form label,
  #request-form input,
  #request-form select,
  #request-form button {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    padding: 12px 15px;
  }
}