/******************************
 * 1) BASE / PAGE LAYOUT
 ******************************/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #E9F2FF 0%, #EFD9B4 50%, #FCE8C2 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: #161616;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  padding-bottom: 80px; /* prevent sticky footer overlap */
}

/******************************
 * 2) HEADER / NAV
 ******************************/
.topbar {
  position: relative; /* allows absolute positioning inside */
  display: flex;
  flex-direction: column; /* stack title and nav vertically */
  align-items: center;
  gap: 10px;
  padding: 20px;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.5)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark-mode toggle button in header */
#theme-button {
  position: absolute;
  top: 20px;
  right: 30px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

#theme-button:hover {
  background: #ececec;
}

body.dark-mode #theme-button {
  background: #1a2842;
  color: #e9eef7;
  border-color: rgba(255, 255, 255, 0.3);
}

#pagename {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2em;
  font-weight: bold;
}

#subhead {
  text-align: center;
  margin-top: 10px;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
}

.navbar a:hover {
  color: #0077cc;
}

/******************************
 * 3) INTRO
 ******************************/
.intro {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  text-align: center;
}

/******************************
 * 4) BUTTONS
 ******************************/
.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  margin-bottom: 20px;
}

button {
  background-color: #d2cff5;
  font-family: monospace;
  font-size: 18px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  font-weight: 600;
}

button:hover {
  background-color: #bdb8f0;
}

button:active {
  transform: translateY(2px);
}

/******************************
 * 5) PHOTO GALLERY
 ******************************/
.header-pictures {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* stacks on smaller screens */
  margin-top: 30px;
}

/* Each picture + caption block */
.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 380px;
}

/* Image styling */
.hero-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: none; /* prevents hover floating/zoom */
}

/* Description under each photo */
.photo-desc {
  text-align: center;
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  margin-top: 10px;
}

/******************************
 * 6) VIDEO
 ******************************/
.video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
}

.video-wrap iframe {
  display: block;
  max-width: 90%;
  width: 560px;
  height: 315px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/******************************
 * 7) EVENTS / TRIPS
 ******************************/
.event-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.event-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* stack on small screens */
}

.event {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  position: relative;
}

.event h3 {
  margin-top: 10px;
  font-size: 20px;
  color: #222;
}

.event p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* status chips for previous / upcoming trips */
.status-chip {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background-color: #f1f0f0e9;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.status-chip.is-past {
  background-color: #f0f0ff;
  color: #4b4b9c;
}

.status-chip.is-upcoming {
  background-color: #e9fff4;
  color: #1b7a46;
}

/******************************
 * 8) QUOTE SECTION
 ******************************/
.quote-section {
  text-align: center;
  margin: 60px auto;
  max-width: 700px;
}

.quote-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.quote {
  font-style: italic;
  font-size: 18px;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.6;
}

.quote-section h3 {
  font-weight: 500;
  font-size: 17px;
  color: #222;
}

/******************************
 * 9) FOOTERS
 ******************************/
.newsletter-footer {
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.newsletter-footer h2 {
  color: #333;
}

.newsletter-footer h3 {
  color: #4b0082;
  margin: 5px 0;
}

.newsletter-footer p {
  color: #333;
  font-size: 0.95rem;
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover h3 {
  text-decoration: underline;
}

/* Sticky footer (always visible) */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333;
  font-size: 14px;
  padding: 10px 0;
  z-index: 1000;
}

/******************************
 * 10) RSVP SECTION
 ******************************/
#rsvp {
  margin: 60px auto;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  backdrop-filter: blur(6px);
}

.rsvp-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

#rsvp-count {
  text-align: center;
  font-weight: 600;
  color: #444;
  margin-bottom: 20px;
  transition: opacity 0.25s ease;
}

.rsvp-para,
.rsvp-participants {
  flex: 1 1 45%;
}

.rsvp-para p {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 20px;
}

.rsvp-para label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  color: #222;
}

.rsvp-para input,
.rsvp-para select,
.rsvp-para textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.rsvp-para button {
  margin-top: 15px;
  background-color: #d2cff5;
  color: #000;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rsvp-para button:hover {
  background-color: #bdb8f0;
}

.rsvp-participants h3 {
  text-align: center;
  margin-bottom: 10px;
}

.rsvp-participants ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rsvp-participants li {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/******************************
 * 11) RESPONSIVE TWEAKS
 ******************************/
@media (max-width: 700px) {
  .video-wrap iframe {
    width: 90%;
    height: auto;
  }
}

/******************************
 * 12) DARK MODE + TOGGLE
 ******************************/
.theme-toggle {
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  font-weight: 600;
  cursor: pointer;
}

.dark-mode .theme-toggle {
  background: #141a28;
  color: #e9eef7;
  border-color: rgba(255, 255, 255, 0.12);
}

/* All dark-mode base text */
.dark-mode {
  color: #e9eef7;
}

body.dark-mode {
  background-image:
    radial-gradient(1px 1px at 18% 22%, rgba(255, 255, 255, 0.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 16%, rgba(255, 255, 255, 0.18) 50%, transparent 51%),
    linear-gradient(to bottom, #0b1a2a 0%, #0e2238 52%, #1a2d4a 100%);
  background-repeat: repeat, repeat, no-repeat;
  background-size: 600px 600px, 600px 600px, cover;
  background-attachment: fixed;
  color: #e9eef7;
}

/* header/top bar glass */
.dark-mode .topbar {
  background: linear-gradient(
    to bottom,
    rgba(16, 22, 34, 0.78),
    rgba(16, 22, 34, 0.55)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* links */
.dark-mode a {
  color: #9ecbff;
}

.dark-mode .navbar a {
  color: #e9eef7;
}

.dark-mode .navbar a:hover {
  color: #b9dcff;
}

/* cards / panels (events, etc.) */
.dark-mode .event {
  background: rgba(30, 40, 60, 0.95);
  color: #e9eef7;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ensure trip text is bright */
.dark-mode .event,
.dark-mode .event h3,
.dark-mode .event p,
.dark-mode .status-chip {
  color: #ffffff !important;
}

/* photo shadows a touch cooler */
.dark-mode .hero-photo {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

/* quote block */
.dark-mode .quote-section h2,
.dark-mode .quote-section h3,
.dark-mode .quote {
  color: #dfe7f4;
}

/* newsletter footer */
.dark-mode .newsletter-footer {
  background: rgba(16, 21, 34, 0.92);
  color: #e9eef7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .footer-link:hover h3 {
  text-decoration: underline;
}

/* sticky footer */
.dark-mode .sticky-footer {
  background: rgba(16, 21, 34, 0.92);
  color: #e9eef7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* global buttons in dark mode */
.dark-mode button {
  background: #1a2842;
  color: #e9eef7;
}

.dark-mode button:hover {
  background: #213356;
}

/* RSVP dark-mode tweaks */
.dark-mode #rsvp {
  background: rgba(20, 26, 40, 0.9);
  color: #e9eef7;
}

.dark-mode #rsvp-count {
  color: #e9eef7;
}

.dark-mode .rsvp-para input,
.dark-mode .rsvp-para textarea,
.dark-mode .rsvp-para select {
  background: rgba(16, 21, 34, 0.85);
  color: #e9eef7;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .rsvp-participants li {
  background: rgba(24, 30, 46, 0.9);
}

/* RSVP text labels in dark mode */
.dark-mode .rsvp-para label,
.dark-mode .rsvp-para p,
.dark-mode .rsvp-para h3 {
  color: #ffffff !important;
}

/* form inputs & placeholders in dark mode */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.dark-mode select option {
  background-color: #1a1f2f;
  color: #ffffff;
}

/******************************
 * 13) FORM ERROR STYLING
 ******************************/
.error {
  border: 2px solid #e63946 !important; /* red border */
  background-color: rgba(230, 57, 70, 0.1); /* soft pink background */
  transition: 0.3s;
}

.dark-mode .error {
  border: 2px solid #ff7b7b !important;
  background-color: rgba(255, 80, 80, 0.15);
}

/******************************
 * 14) SUCCESS MODAL
 ******************************/
.modal {
  /* hidden by default */
  display: none;

  /* lock it to the viewport */
  position: fixed;
  z-index: 2000;

  /* fill the entire screen */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  /* shadow background behind modal */
  background-color: rgba(0, 0, 0, 0.4);

  /* center the modal content */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* card in the middle of the screen */
.modal-container {
  padding: 40px;
  width: min(90%, 480px);

  background-color: #f7f3ff;
  color: #222;

  text-align: center;
  font-size: 1rem;
  font-family: monospace;

  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.modal-item img {
  max-width: 160px;
  border-radius: 12px;
}

/* dark-mode version of the modal */
.dark-mode .modal-container {
  background-color: #141a28;
  color: #e9eef7;
}
#modal-img {
  width: 160px;      /* adjust as you want */
  height: 160px;
  object-fit: cover;     /* this crops the GIF */
  object-position: center; /* keeps the plane centered */
  border-radius: 10px; /* optional: rounded edges */
}


