:root {
  --header_height: 45px;
  --header_padding: 9px;
  --mobile_header_height: 30px
}

@font-face {
  font-family: 'chillen'; /* It's good practice to quote font family names */
  src: url("/fonts/ChillenRegular.woff2") format("woff2"), /* Modern Browsers */
       url("/fonts/ChillenRegular.woff") format("woff"),   /* Most Browsers */
       url("/fonts/ChillenRegular.ttf") format("truetype"), /* Safari, Android, iOS */
       url("/fonts/ChillenRegular.eot"),
       url("/fonts/ChillenRegular.eot?#iefix") format("embedded-opentype");
  font-weight: normal; /* Explicitly define weight */
  font-style: normal;  /* Explicitly define style */
  font-display: block;
}

/* General Styles */
body {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  margin: 0;
  padding: 0;
  /* Make body a flex container to ensure it fills the viewport height */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body h1 {
  font-family: "chillen", sans-serif;
  font-size: 50px;
  font-weight: 500;
}

/* Header Styles */
header {
  background: #F7F6FF;
  color: #fff;
  padding: var(--header_padding);
  display: flex;
  justify-content: center;
  /* Center navbar horizontally */
  align-items: center;
  /* Center navbar vertically */
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header_height);
}

/* .header-img {
  max-width: 100%;
  height: auto;
} */

#homepic {
  position: relative;
  margin: -20px;
}

#homepic img {
  max-width: 100%;
  height: auto;
}

#homepictext {
  position: absolute;
  top: -7%;
  left: 0;
  text-align: center;
  width: 100%;
  font-size: 9vw; /** responsive font-size **/
}

#belowhometext {
  margin-top: 50px;
}

/* Hamburger Menu Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  left: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: #D9D7E5;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 4px;
}

/* Animate Hamburger Menu into "X" */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navbar Styles */
.navbar {
  display: flex;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  /* Add spacing between navbar items */
}

.navbar ul li a {
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  font-weight: bolder;
  font-size: 17px;
}

.navbar ul li a:hover {
  background: #D9D7E5;
  border-radius: 8px;
}

/* Main Content Styles */
main {
  padding: 20px;
  text-align: center;
}

.main-home {
  flex-grow: 1; /* Allows the main content area to fill available vertical space */
  display: flex;
  flex-direction: column;
}


/* Details Page Styles */
.schedule-container {
  max-width: 600px;
  margin: 20px auto;
  border-radius: 8px;
  padding: 20px 30px;
  background-color: #F7F6FF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  box-sizing: border-box;
}

.schedule-item {
  display: flex;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid #D9D7E5;
  font-size: 1.1em;
  line-height: 1.6;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: bold;
  min-width: 110px;
  flex-shrink: 0;
  padding-right: 20px;
}

/* Add to Calendar Container Styles */
.calendar-container {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;
  gap: 15px; /* Space between text and icons */
  background-color: #F7F6FF;
  color: #000;
  padding: 20px 30px; /* Adjusted padding for stacked layout */
  text-decoration: none;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: auto;
  margin-top: 20px;
  transition: background-color 0.3s, transform 0.3s;
}

.calendar-text {
  font-size: 1.5em;
  font-weight: normal;
  margin: 0;
}

.calendar-icons {
  display: flex;
  align-items: center;
  gap: 5px; /* Spacing between icons */
}

.calendar-icons a {
  color: #000;
  font-size: 20px; /* Slightly reduced size for better alignment */
  padding: 0.5rem 1rem; /* Padding to create the hover box */
  border-radius: 8px; /* Rounded corners for the hover box */
  transition: background-color 0.3s ease;
  line-height: 1; /* Ensures icon is centered in the hover box */
}

.calendar-icons a:hover {
  background: #D9D7E5; /* Matches the menu hover style */
}

/* Registry Page Styles */
.registry-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.registry-link {
  display: block;
  background-color: #F7F6FF;
  color: #000;
  padding: 20px 30px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
  width: 80%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.registry-link:hover {
  background-color: #D9D7E5;
  transform: translateY(-5px);
}

.registry-link h3 {
  margin: 0;
  font-size: 1.5em;
  font-weight: normal;
}

.registry-photo {
  max-width: 600px; /* Match the max-width of the paragraph text */
  width: 100%; /* Ensure it's responsive */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Needed for margin: auto to work */
  margin: 30px auto; /* Center the image and add vertical space */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Travel Page Styles */
.travel-image {
  max-width: 600px; /* Match the max-width of the paragraph text */
  width: 100%; /* Ensure it's responsive */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Needed for margin: auto to work */
  margin: 30px auto; /* Center the image and add vertical space */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Gallery Page Styles */
.gallery-container {
  /* Using columns for a simple masonry-like effect that handles varying aspect ratios */
  column-count: 2;
  column-gap: 15px;
  margin-top: 30px;
}

.gallery-container img {
  width: 100%;
  height: auto;
  margin-bottom: 15px; /* Vertical gap between images */
  display: block; /* Removes extra space below image */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main > p {
    text-align: center;
    max-width: 600px;
    margin: 20px auto 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.home-bottom-image {
  display: block; /* Allows the use of margin: auto for horizontal centering */
  width: 100%; /* Makes the image scale with its container's width */
  max-width: 2000px; /* Prevents the image from becoming too large on wider screens */
  height: auto; /* Maintains the image's aspect ratio */
  /* Pushes image to the bottom of its container, centers it, and removes bottom margin */
  margin: auto auto 0;
}


/* Responsive Styles */
@media (max-width: 768px) {
  header {
    height: var(--mobile_header_height);
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    position: fixed;
    left: 0;
    max-width: 100%;
    min-width: 30%;
    background: #F7F6FF;
    flex-direction: column;
    transform: translateX(-100%);
    overflow-y: auto;
    /* Allow scrolling */
    height: calc(100vh - var(--mobile_header_height) - (var(--header_padding) * 2));
    top: calc(var(--mobile_header_height) + (var(--header_padding)* 2));
  }

  .navbar-transition {
    transition: transform 0.3s ease;
  }

  .navbar.active {
    transform: translateX(0);
  }

  .navbar ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0rem;
    /* Add some padding at the top */
  }

  .navbar ul li a {
    padding: 10px;
    margin: 5px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
  }

  .gallery-container {
    /* Switch to a single column on mobile */
    column-count: 1;
  }
}