/* === GLOBAL FIXES === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fffaf5;
  color: #FFFFFF;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 8.75rem;
}

main {
  flex: 1;
  padding-top: 0rem;
}

/* === WATERMARK LOGO === */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  opacity: 0.1;
  z-index: -1;
}

/* === SLIDESHOW BACKGROUND === */
.slideshow-background {
  position: fixed;
  top: 0;
  height: 100%;
  left: 0;
  width: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 2s ease-in-out, background-image 1s ease-in-out;
  opacity: 0.5;
  animation: zoomOut 15s forwards ease-in-out;
}

@keyframes zoomOut {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/* === DESKTOP HEADER === */
.header-section {
  background-color: #330909;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.3);
}

.header-section h1 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
}

/* === NAVIGATION === */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #f2eee3;
  padding: 0.5rem 0.875rem;
  background-color: #654857;
  border-radius: 0.5rem;
  font-weight: 600;
  display: block;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #7c5d68;
  color: white;
}

/* === CONTENT CONTAINER === */
.paragraph-box {
  max-width: 56.25rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #f2eee3;
  color: #3c1e1e;
  border-radius: 0.75rem;
  line-height: 1.6;
  font-size: 1.05rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.07);
}

/* === EVENT TABLE === */
table.event-calendar {
  width: 75%;
  max-width: 56.25rem;
  margin: 2rem auto;
  padding: 0.5rem;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #f2eee3;
  color: #3c1e1e;
  border: 0.125rem solid #f2eee3;
  border-radius: 0.75rem;
  line-height: 1.6;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

table.event-calendar th,
table.event-calendar td {
  padding: 0.625rem;
  border: 0.062rem solid #4c0d0d;
  text-align: center;
  font-size: 1.35rem;
}

table.event-calendar tr:first-child th:first-child {
  border-top-left-radius: 0.75rem;
}

table.event-calendar tr:first-child th:last-child {
  border-top-right-radius: 0.75rem;
}

table.event-calendar tr:last-child td:first-child {
  border-bottom-left-radius: 0.75rem;
}

table.event-calendar tr:last-child td:last-child {
  border-bottom-right-radius: 0.75rem;
}

/* === FORMS === */
textarea,
input[type="text"] {
  width: 100%;
  padding: 0.625rem;
  margin: 0.5rem 0;
  font-size: 1rem;
}

button {
  background-color: #C63D2F;
  color: white;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.312rem;
  font-size: 1rem;
  cursor: pointer;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 1.25rem;
  background-color: #6C566B;
  color: #FFFFFF;
  width: 100%;
  z-index: 10;
  font-size: 1rem;
}

/* === LOGO === */
.logo {
  height: 3.05rem;
  max-height: 100%;
  margin-right: 1.25rem;
  float: left;
}

/* === MOBILE OVERRIDE === */
.mobile-header,
.mobile-menu {
  display: none;
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
  .header-section {
    display: none;
  }

  .mobile-header {
    background-color: #330909;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
  }

  .mobile-header h1 {
    font-size: 1.25rem;
    margin: 0;
    flex-grow: 1;
    text-align: left;
    padding-right: 1rem;
  }

  .hamburger {
    font-size: 1.75rem;
    cursor: pointer;
    user-select: none;
  }

  .mobile-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    flex-direction: column;
    background-color: #330909;
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    text-align: center;
  }

  .mobile-menu.show {
    max-height: 500px;
    opacity: 1;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-top: 1px solid #654857;
  }

  body {
    padding-top: 4.5rem;
    font-size: 1rem;
  }

  .paragraph-box {
    width: 100%;
    box-sizing: border-box;
    margin: 1rem 0;
    padding: 1rem;
    text-align: center;
  }

  button,
  .nav-button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
    margin: 0.5rem 0;
  }

  table {
    width: 100%;
    overflow-x: auto;
    display: block;
    font-size: 0.95rem;
  }

  th,
  td {
    padding: 0.5rem;
  }

  nav ul {
    flex-direction: column;
  }

  footer {
    font-size: 0.8rem;
    text-align: center;
  }

  h1 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0 auto 1rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .slideshow-background {
    background-size: cover;
    opacity: 0.3;
  }
}
