/* Global Styles */
html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: Arial, sans-serif;
  background-color: lightgray;
  color: #1a1a1a;
  margin: 0;
  padding: 0 0 100px 0; /* Add bottom padding so content doesn't get hidden behind footer */
}
a {
  text-decoration: none;
  color: inherit;
}

/* TARC Gallery Styles */
/* Clean Navbar Styles */
nav {
  background: var(--primary-color);
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 60px;
}

nav .brand a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav .nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav .nav-links a:hover {
  background: rgba(255,255,255,0.1);
}

/* Hide Events link on desktop since we have event buttons */
@media (min-width: 769px) {
  nav .nav-links .events-nav-link {
    display: none !important;
  }
}

nav .mobile-menu-btn {
  display: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  padding: 10px;
}

nav .events-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--primary-color);
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

nav .events-menu.show {
  display: block;
}

nav .events-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.3s ease;
}

nav .events-menu a:hover {
  background: rgba(255,255,255,0.1);
}

/* Enhanced Gallery Styles */
.gallery-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

/* Caption loading styles */
.caption-loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* Image loading states */
#preview-img {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.header-spacer {
  height: 300px; /* Adjust based on header height + navbar height + extra headroom */
}

.content-area {
  padding: 20px;
  padding-top: 80px;
  min-height: calc(100vh - 340px);
  overflow-y: auto;
}

.header-section {
  text-align: center;
  position: fixed;
  top: 60px; /* Position below navbar */
  left: 0;
  right: 0;
  background: #004d5c;
  color: white;
  padding: 30px 20px 10px 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 999; /* Lower than navbar */
}

.header-section h1 {
  font-size: 2.5em;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
  color: #ffffff;
  font-weight: 700;
}

.header-section .subtext {
  font-size: 1.2em;
  margin: 5px 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
  color: #ffffff;
  font-weight: 500;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 5px 0;
}

.current-event-status {
  font-size: 0.9em;
  color: #ffffff;
  font-weight: 600;
  text-shadow: none;
  flex-shrink: 0;
}

.hero-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 5px 0 5px 0;
  gap: 20px;
  padding-bottom: 20px;
}

.hero-controls .hero-select-info {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: 20px;
}

.hero-controls .event-buttons {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.hero-controls .download-section {
  flex-shrink: 0;
}

.download-instructions {
  font-size: 0.8em;
  color: #ffffff;
  text-shadow: none;
  font-weight: 400;
  flex-shrink: 0;
}

.select-all-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
}

.select-all-line input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: #4facfe;
}

.select-all-line label {
  color: #ffffff;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
  cursor: pointer;
}

.hero-select-info .photo-count {
  color: #4facfe;
  font-size: 0.75em;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
}

.event-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  overflow-x: auto;
}

.event-buttons button {
  background: rgba(255,255,255,0.4);
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8em;
  backdrop-filter: blur(10px);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.4);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: fit-content;
}

.event-buttons button:hover {
  background: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.8);
}

.event-buttons button.more-button {
  background: rgba(255,255,255,0.2);
  border: 2px dashed rgba(255,255,255,0.6);
  font-style: italic;
}

.event-buttons button.more-button:hover {
  background: rgba(255,255,255,0.4);
  border-style: solid;
}

/* More Events Popup */
.more-events-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.95);
  color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  min-width: 300px;
  max-width: 500px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
}

.more-events-popup.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.more-events-popup h3 {
  margin: 0 0 15px 0;
  text-align: center;
  color: #4facfe;
  font-size: 1.2em;
}

.more-events-popup .popup-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.more-events-popup .popup-buttons button {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  text-align: left;
}

.more-events-popup .popup-buttons button:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

.more-events-popup .close-popup {
  text-align: center;
  margin-top: 15px;
}

.more-events-popup .close-popup button {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
}

.more-events-popup .close-popup button:hover {
  background: rgba(255,255,255,0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 60px;
}

.photo-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card .checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  transform: scale(1.5);
  accent-color: #4facfe;
}

.photo-card .caption {
  padding: 12px;
  font-size: 0.75em;
  color: #666;
  text-align: center;
  background: #f8f9fa;
}

.select-all-container {
  background: white;
  padding: 12px 20px;
  border-radius: 25px;
  margin: 20px 0 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}

.select-all-container input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: #4facfe;
}

.select-all-container label {
  font-weight: bold;
  color: #333;
}

.event-description {
  margin-left: 20px;
  color: #666;
  font-style: italic;
  font-size: 0.9em;
  flex: 1;
  text-align: left;
  padding: 8px 15px;
  background: rgba(0, 77, 92, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(0, 77, 92, 0.2);
}

/* Removed duplicate current-event-status rule */

.download-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  padding-bottom: 15px;
  order: 3;
}

.download-button {
  background: #ffffff;
  color: #005f73;
  border: 2px solid #005f73;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.download-button:hover:not(:disabled) {
  background: #005f73;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.download-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.copyright-notice {
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  color: #fff;
  padding: 8px 0;
  max-width: 100%;
  background-color: transparent;
  font-weight: normal;
}

.content-area {
  padding-bottom: 100px; /* Space for download section */
}

/* Removed duplicate download-button rule */

/* Removed duplicate download-button hover and disabled rules */

.download-loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loading-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 90%;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4facfe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content h3 {
  color: #004d5c;
  margin: 0 0 15px 0;
  font-size: 1.3em;
}

.loading-content p {
  color: #666;
  margin: 5px 0;
  line-height: 1.4;
}

.loading-detail {
  font-size: 0.9em;
  color: #888;
  font-style: italic;
}

.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  z-index: 2000;
  cursor: pointer;
}

.preview-modal img {
  max-width: 95%;
  max-height: 75%; /* Reduced to make more space */
  margin: auto;
  display: block;
  position: absolute;
  top: 52%; /* Moved up 3% to clear the filename box */
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.preview-caption {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  z-index: 2001;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-caption.collapsed {
  padding: 8px 15px;
  max-height: 40px;
  overflow: hidden;
}

.preview-caption.collapsed .caption-details {
  display: none;
}

.preview-caption .filename-only {
  font-size: 0.9em;
  opacity: 0.8;
  margin: 0;
}

.preview-caption .caption-details {
  margin-top: 10px;
}

.preview-caption .caption-content {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.preview-caption .caption-content p {
  margin: 8px 0;
  line-height: 1.4;
}

.preview-caption .caption-instruction {
  font-size: 0.8em;
  opacity: 0.6;
  margin-bottom: 8px;
  font-style: italic;
}

.preview-caption h3 {
  margin: 0 0 10px 0;
  color: #4facfe;
  font-size: 1.3em;
}

.preview-caption p {
  margin: 5px 0;
  opacity: 0.9;
}

.preview-caption .photo-details {
  font-size: 0.9em;
  opacity: 0.7;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.preview-nav {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2001;
}

.preview-nav button {
  background: rgba(0,0,0,0.7);
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  min-width: 45px;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-nav button:hover {
  background: rgba(0,0,0,0.8);
  border-color: white;
}

.preview-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.password-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 2001;
  display: none;
  min-width: 300px;
}

.password-modal h3 {
  margin: 0 0 20px 0;
  color: #333;
}

.password-modal input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  margin-bottom: 15px;
}

.password-modal input:focus {
  outline: none;
  border-color: #4facfe;
}

.password-modal button {
  background: #4facfe;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  width: 100%;
}

.password-modal button:hover {
  background: #3d9be8;
}

.error {
  animation: shake 0.3s;
  border-color: #dc3545 !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.2em;
}

.no-photos {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-photos h3 {
  color: #333;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-spacer {
    height: 320px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .header-spacer {
    height: 250px;
  }
}

@media (max-width: 1400px) {
  /* Make click instructions more responsive */
  .download-instructions {
    font-size: 0.7em;
    max-width: 45%;
  }
}

@media (max-width: 1200px) {
  /* Hide event buttons and show mobile dropdown for smaller screens */
  .hero-controls .event-buttons {
    display: none;
  }
  
  .hero-controls {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .hero-controls .hero-select-info {
    margin-left: 0;
    align-items: center;
  }
  
  .hero-controls .download-section {
    order: -1;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block !important;
  }
  
  /* Show events menu when needed */
  .events-menu {
    display: block;
  }
  
  /* Ensure click instructions stay visible */
  .hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 0 5px 0;
  }
  
  .download-instructions {
    font-size: 0.65em;
    color: #ffffff;
    text-shadow: none;
    font-weight: 400;
    flex-shrink: 1;
    line-height: 1.2;
    text-align: right;
    max-width: 40%;
    word-wrap: break-word;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .header-section h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
  }
  
  .header-section .subtext {
    font-size: 1em;
    margin: 3px 0;
  }
  
  .header-section {
    padding: 15px 10px;
    top: 60px;
  }
  
  .header-spacer {
    height: 220px;
  }
  
  /* Keep click instructions visible on mobile */
  .hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 0 5px 0;
  }
  
  .download-instructions {
    font-size: 0.6em;
    color: #ffffff;
    text-shadow: none;
    font-weight: 400;
    flex-shrink: 1;
    line-height: 1.1;
    text-align: right;
    max-width: 35%;
    word-wrap: break-word;
  }
  
  .content-area {
    padding-top: 20px;
    min-height: calc(100vh - 240px);
  }
}

@media (max-width: 480px) {
  /* Keep click instructions visible on very small screens */
  .download-instructions {
    font-size: 0.55em;
    max-width: 30%;
    line-height: 1.0;
  }
  
  /* Mobile navbar - smaller and positioned in top right */
  nav .nav-links {
    display: none;
  }
  
  nav .mobile-menu-btn {
    display: block;
  }
  
  nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 150px;
    background: var(--primary-color);
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
  }
  
  nav.mobile-open .nav-links a {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
  }
  
  /* Show Events link on mobile */
  nav .nav-links .events-nav-link {
    display: block !important;
  }
  
  /* Events menu positioning - desktop and mobile */
  nav .events-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 150px;
    background: #2c3e50;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    z-index: 1001;
  }
  
  nav .events-menu.show {
    display: block;
  }
  
  nav .events-menu a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
    transition: background-color 0.3s ease;
  }
  
  nav .events-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
  }
  
  /* Event buttons remain visible on mobile */
  
  /* Hide more events popup on mobile */
  .more-events-popup {
    display: none !important;
  }
  
  .select-all-container {
    display: none;
  }
  
  .download-section {
    display: none;
  }
  
  /* Hide checkboxes on mobile since download is disabled */
  .photo-card .checkbox {
    display: none !important;
  }
  
  /* Hide download-related text on mobile */
  .download-instructions {
    display: none !important;
  }
  
  .preview-nav {
    top: 6%;
    gap: 6px;
  }
  
  .preview-nav button {
    padding: 8px 12px;
    font-size: 0.8em;
    min-width: 40px;
    min-height: 30px;
  }
}

@media (max-width: 480px) {
  .preview-nav {
    top: 4%;
    gap: 5px;
  }
  
  .preview-nav button {
    padding: 6px 10px;
    font-size: 0.7em;
    min-width: 35px;
    min-height: 25px;
  }
}

/* Hero Section */
.hero {
    background-image: url('path_to_your_image.jpg');
    background-size: cover;
    background-position: center;
    color: #1a1a1a;
    text-align: center;
    padding: 40px 20px 20px 20px;
    position: relative;
}

.hero h1, .hero p {
    position: relative;
    z-index: 1;
}

 .intro {
        max-width: 60%; 
        margin: 0 auto; 
        padding: 20px 20px 20px 20px; 
        margin-top: 0;
    }
       
    .intro img, .story img {
    display: block !important; /* Ensures the image behaves as a block element */
    max-width: 100% !important; /* Sets the image to be responsive within its container */
    width: 100% !important; /* Sets the image width to match its container exactly */
    max-height: 80vh !important; /* Limit height to 80% of viewport height for tall images */
    object-fit: contain !important; /* Maintain aspect ratio */
    margin: 0 auto !important; /* Centers the image horizontally */
    padding: 0 !important; /* Removes extra padding */
}

  .fixed-top {
  text-align: left;
  margin-left: 2em; /* or whatever spacing you already use */
}

.fixed-top .subtext {
  display: block;
  margin-left: 2em;        /* aligns nicely under h1 */
  max-width: 45ch;         /* keeps lines from going too long */
  text-align: left;        /* keeps text left-aligned */
  line-height: 1.4;        /* moderate line spacing */
  margin-top: 0.3em;       /* gentle top spacing */
}

.fixed-top .subtext.tight {
  margin-top: -0.6em;  /* Was -0.2em — this pulls it up closer */
}

.download-content p:nth-of-type(3) {
  border-left: none !important;
}



.download-content {
  padding-top: 100px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0;
  max-width: none;
  background-color: lightgray;
}

.download-content h1 {
  margin-bottom: 0.2em;
}

.download-content p {
  margin-top: 0;
}

#download-box-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: lightgray;
  border-top: 1px solid #ccc;
  padding: 10px 20px;
  text-align: left;
  z-index: 100;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

#download-box-fixed button {
  padding: 10px 20px;
  font-size: 16px;
}

.event-buttons button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.event-buttons button:hover {
  background-color: var(--accent-color);
}

.event-buttons button.selected {
  background-color: #337ab7;
  color: white;
  border: 2px solid #285e8e;
}


:root {
  --primary-color: #005f73; /* Teal/blue color for navbar */
  --secondary-color: #94d2bd;
  --accent-color: #ee9b00;
  --background-color: #f4f4f9;
      --text-color: #1a1a1a;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #004d5c;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 60px;
}

/* New clean navbar styles */
nav .brand a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav .nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav .nav-links a:hover {
  background: rgba(255,255,255,0.1);
}

nav .nav-links a.active {
  background: rgba(255,255,255,0.2);
}

nav .mobile-menu-btn {
  display: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  padding: 10px;
}



@media (max-width: 768px) {
  /* Hide old navbar elements */
  nav ul {
    display: none;
  }
  
  .menu-toggle {
    display: none;
  }
  
  /* Show new navbar elements */
  nav .nav-links {
    display: none;
  }
  
  nav .mobile-menu-btn {
    display: block;
  }
  
  /* Mobile menu open state */
  nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  nav.mobile-open .nav-links a {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

.caption {
  text-align: center;
  font-size: 0.85em;
  margin-top: 5px;
  color: #1a1a1a;
  word-break: break-word;
}

.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: lightgray;
  z-index: 100;
  padding: 20px;
  border-bottom: 1px solid #ccc;
}

.showtime .thumb-container {
  margin: 10px;
  width: 200px;
  position: relative;
  align-self: flex-end;
}

.showtime .thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.showtime .checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

#showtime {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 20px;
  margin-top: 140px;
  padding-bottom: 160px; /* Make room above the fixed button */
}

#showtime::after {
  content: "";
  display: none;  /* or remove this block entirely */
}


#preview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  display: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 2000;
}

#preview-modal img {
  max-width: 90vw;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 2000;
}

#download-password.error {
  border: 2px solid red;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}


footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  z-index: 1000;
}

/* Hamradio Page Specific Styles */
/* Image container styling for hamradio pages */
.image-container {
  margin: 2rem 0;
  text-align: center;
}

/* Enhanced image styling for hamradio pages */
.story img, .image-container img {
  max-height: 80vh !important;
  object-fit: contain !important;
}

/* Hero section styling for hamradio pages */
.hero.hamradio-hero {
  color: #1a1a1a !important;
  padding: 100px 20px 20px 20px !important;
}

/* Story section styling for hamradio pages */
.story.hamradio-story {
  width: 60%;
  margin: 0 auto;
  padding: 20px;
  margin-top: -20px;
}

/* Intro section styling for hamradio pages */
.intro.hamradio-intro {
  margin-top: -20px !important;
}