@import url("https://necolas.github.io/normalize.css/latest/normalize.css");

/* ===========================
   GLOBAL COLORS
   =========================== */
:root {
  --primary: rgb(68, 32, 17);
  --primary-dark: rgb(50, 24, 12);
  --accent-gold: rgb(165, 148, 53);
  --neutral-light: mintcream;
  --neutral-warm: rgb(240, 236, 230);
}

/* ===========================
   LINKS
   =========================== */
a:link,
a:visited {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
}

a:hover {
  color: var(--primary-dark);
}

/* ===========================
   BACKGROUND
   =========================== */
html,
body {
  background-image: linear-gradient(to bottom,
      var(--neutral-warm) 40%,
      var(--neutral-light) 100%);
  background-repeat: no-repeat;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* ===========================
   HEADINGS
   =========================== */
h1 {
  color: var(--primary);
  font-size: 4em;
  font-family: Fleur De Leah;
  text-align: center;
}

h2 {
  max-width: 800px;
  margin: 2rem auto 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid rgb(68, 32, 17);
  color: rgb(68, 32, 17);
  font-size: 2em;
}

h3 {
  color: var(--primary);
}

/* =========================================
   UNIVERSAL HEADER — IDENTICAL ON ALL PAGES
   ========================================= */

header {
  background-color: #5a3e2b;
  color: white;
  padding: 25px 20px;
  border-bottom: 4px solid #3c2a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Center block for title + tagline */
.header-center {
  text-align: center;
}

/* Header title */
header h1 {
  margin: 0;
  padding: 0;
  font-size: 2.8rem;
  font-weight: 600;
  color: white;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  line-height: 1.2;
}

/* Header tagline */
.header-tagline {
  margin: 0;
  font-size: 1.2rem;
  color: #f5e9d8;
}

/* Menu toggle button */
#menuToggle {
  background-color: #3c2a1f;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

#menuToggle:hover {
  background-color: #2b1e15;
}

/* Side menu links */
#sideMenu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
}

#sideMenu a:hover {
  background-color: #3c2a1f;
}

/* ===========================
   IMAGES
   =========================== */
img:not(.imgaboutus) {
  width: 60%;
  display: block;
  margin: 2rem auto;
}

.imagestuff img {
  display: inline-block;
  margin: 2rem 70px;
  width: 200px;
}


p {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1rem 1.4rem;
  background-color: mintcream;
  border-left: 6px solid rgb(68, 32, 17);
  border-radius: 6px;
  line-height: 1.6em;
  font-size: 1.1em;
}

/* ===========================
   BUTTONS
   =========================== */
button {
  min-width: 8rem;
  height: 3rem;
  border-radius: 50px;
  color: var(--neutral-light);
  background-color: var(--primary);
  font-weight: bold;
  border: none;
}

/* ===========================
   ABOUT PAGE
   =========================== */


.backing {
  padding: 0;
  position: relative;
  min-height: 100vh;
  background-image: url("src/images/Dancing.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.home-page,
.about-page {
  font-family: Georgia, serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #222;
}

.about-page {
  padding: 20px;
}


.about-page h2 {
  color: var(--accent-gold);
}

.about-page p {
  color: var(--primary-dark);
  line-height: 1.5em;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.home-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  z-index: 2;
}

.carousel {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 12px;
}

.carousel img {
  width: 720px;
  height: 568px;
  object-fit: cover;
  display: none;
  margin: 0;
}

.carousel img.active {
  display: block;
}

/* ===========================
   MAIN IMAGES
   =========================== */
/* Full-width bottom image */
#bottom-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* Centered middle image */
#middle-image img {
  width: 80%;
  max-width: 900px;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

/* ===========================
   SPECIAL ELEMENTS
   =========================== */
.hplink {
  border: 3px solid var(--primary);
  border-radius: 50px;
  padding: 4px;
}

#welcome {
  text-align: center;
  font-size: 1.5em;
  color: var(--primary);
}

/* ===========================
   SIDE MENU
   =========================== */

#menuToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgb(68, 32, 17);
  color: mintcream;
  border: none;
  padding: 12px 18px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
}

#sideMenu {
  position: fixed;
  top: 0;
  left: -260px;
  /* hidden by default */
  width: 240px;
  height: 100%;
  background-color: rgb(68, 32, 17);
  padding-top: 80px;
  transition: left 0.35s ease;
  z-index: 999;
}

#sideMenu a {
  display: block;
  padding: 18px 24px;
  color: mintcream;
  font-size: 1.2em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#sideMenu a:hover {
  background-color: rgb(50, 24, 12);
}

/* ===========================
   MEDIA QUERIES
   =========================== */
@media (width <=800px) {
  img {
    max-width: 100%;
    margin: 1rem auto;
  }
}

@media (width >=800px) {
  body {
    font-size: 1.2em;
  }
}

/* ============================
   Handbook Page Styling
   ============================ */

.handbook-page {
  font-family: Georgia, serif;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #222;
}



/* Section Titles */
.handbook-page h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
}

/* Paragraphs */
.handbook-page p {
  margin-bottom: 15px;
}

/* Lists */
.handbook-page ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.handbook-page li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  color: #444;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer li {
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 600px) {
  .handbook-page {
    padding: 15px;
  }

  .handbook-page h1 {
    font-size: 1.6rem;
  }

  .handbook-page h2 {
    font-size: 1.2rem;
  }
}

/* ============================
   Calendar Page Styling
   ============================ */

.calendar-page {
  font-family: Georgia, serif;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #222;
}

.calendar-page h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
}

.schedule ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.schedule li {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f7f7f7;
  border-left: 4px solid #003366;
  border-radius: 4px;
}

.schedule li strong {
  color: #003366;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  color: #444;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer li {
  margin-bottom: 5px;
}

/* Calendar images layout */
.calendar-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.calendar-images img {
  width: 100%;
  max-width: 800px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
  .calendar-page {
    padding: 15px;
  }

  .calendar-page h1 {
    font-size: 1.6rem;
  }

  .calendar-page h2 {
    font-size: 1.2rem;
  }

  .schedule li {
    padding: 10px;
  }
}

/* ============================
   Print Button
   ============================ */

.print-btn {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 18px;
  background-color: #5a3e2b;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.print-btn:hover {
  background-color: #4a2f20;
}

/* ============================
   Print-Friendly Layout
   ============================ */

@media print {

  body * {
    display: none !important;
  }

  main,
  main * {
    display: block !important;
  }

  .calendar-images img {
    width: 90% !important;
    max-width: 600px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .page-break {
    page-break-before: always;
  }

  .schedule li {
    background: none !important;
    border: none !important;
    padding: 4px 0 !important;
    font-size: 12pt;
  }

  * {
    color: #000 !important;
    background: transparent !important;
  }
}

/* ============================
   Contact Page Styling
   ============================ */

.contact-page {
  font-family: Georgia, serif;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #222;
}

.contact-section {
  margin-bottom: 30px;
}

.contact-section h2 {
  font-size: 1.4rem;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.contact-section ul {
  list-style: none;
  padding-left: 0;
}

.contact-section li {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f7f7f7;
  border-left: 4px solid #003366;
  border-radius: 4px;
}

.contact-section li strong {
  color: #003366;
}

.contact-section p {
  background: #f7f7f7;
  padding: 10px 12px;
  border-left: 4px solid #003366;
  border-radius: 4px;
}

.contact-page,
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-page {
    padding: 15px;
  }

  .contact-page h1 {
    font-size: 1.6rem;
  }

  .contact-section h2 {
    font-size: 1.2rem;
  }
}

/* ============================
   Unified Header Layout
   ============================ */

/* Center block */
.header-center {
  text-align: center;
}

.header-tagline {
  margin: 0;
  font-size: 1.2rem;
  color: #5b3909;
  /* soft warm white */
}

/* ============================
   Donation Page Styling
   ============================ */
.donate-button {
  display: block;
  width: fit-content;
  margin: 20px auto;
  background-color: #5a3e2b;
  color: white !important;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  text-align: center;
}

.donate-button:hover {
  background-color: #4a2f20;
}