body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #f7f2e8;
  color: #3b2a1d;
}

header {
  background-color: #4b2e1a;
  padding: 15px 40px;
}

.nav-container {
  display: flex;
  justify-content: flex-start;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  margin-right: 40px;
  letter-spacing: 1px;
}

nav a:hover {
  text-decoration: underline;
}

.banner {
  background: url("/static/images/barn_new.png") no-repeat center center/cover;
  height: 600px;
  width: 100%;
}

video {
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-top: 20px;
}


main {
  text-align: center;
  padding: 60px 20px;
  background-color: #fdf9f3;
}

main h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

video {
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#calendar {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.about-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  line-height: 1.7;
}

.about-section h1 {
  text-align: center;
  color: #4b2e1a;
  margin-bottom: 30px;
}
/* Navbar Layout */
.navbar {
  background-color: #4b2e1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-left a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 1px;
}

.nav-left a:hover {
  text-decoration: underline;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* <-- THIS is the important fix (replaces your 35px or whatever) */
  left: 0;
  background-color: #fff;
  min-width: 180px;
  border-radius: 6px;
  padding: 8px 0;
  z-index: 9999;
}


.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #4b2e1a;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile View */
@media (max-width: 768px) {
  .nav-left {
    display: none;
    flex-direction: column;
    background-color: #4b2e1a;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 15px 0;
  }

  .nav-left.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
/* Fix spacing for Cannery and About pages */
.about-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

/* Fix gallery display */
/* Restore gallery layout */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Restore image sizing */
.gallery img {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.25);
}

/* Ensure HOME link on single-page headers appears white */
.home-link {
  color: #fff !important;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 1px;
}

.home-link:hover {
  text-decoration: underline;
}

/* MOBILE FIX FOR CALENDAR PAGE */
@media (max-width: 768px) {

  /* Keep structure exactly the same */
  .calendar {
    width: 95% !important;
    max-width: 95% !important;
    padding: 8px;
  }

  /* Reduce font slightly so numbers fit clean */
  .calendar table {
    font-size: 12px; 
  }

  /* Tighter cells to prevent overflow */
  .calendar th,
  .calendar td {
    padding: 2px 3px; 
    line-height: 1.2;
    word-wrap: break-word;
  }

  /* Make sure table never expands wider than box */
  .calendar table {
    table-layout: fixed;
    width: 100%;
  }
}

/* Event modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}



.modal-content {
  background: #fff;
  color: #4b2e1a;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  width: 85%;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.close {
  float: right;
  font-size: 26px;
  cursor: pointer;
}
/* Birthday Banner */
.birthday-banner {
  background: url("/static/images/birthday_banner.png") no-repeat top center;
  background-size: cover;
  height: 500px;  /* Shows full heads */
  width: 100%;
}
/* Keep the REAL hamburger (inside header) */
header .hamburger {
  display: block !important;
}

/* Hide any extra / duplicate hamburger outside the header */
.hamburger {
  display: none !important;
}

/* Show hamburger only on mobile */
@media (max-width: 800px) {
    header .hamburger {
        display: block !important;
    }
}

/* Hide hamburger on desktop where full menu is visible */
@media (min-width: 801px) {
    header .hamburger {
        display: none !important;
    }
}
