* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Crimson+Text:ital,wght@0,400;1,400&display=swap');

body {
    font-family: "Libre Caslon Display", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    /* color: #3a2f2a; */
    color: #25692d;
    /* background: linear-gradient(135deg, #f4f1eb 0%, #e8dcc6 100%); */
    background-color: #fefefe;
    background-image: url("https://www.transparenttextures.com/patterns/cardboard.png");
}


@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px #b99b69,
      0 0 80px #b99b69,
      0 0 90px #b99b69,
      0 0 100px #b99b69,
      0 0 150px #b99b69;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
  position: relative; /* Needed to position the overlay and content */
  height: 100vh; /* Make the section full height of the viewport */
  display: flex; /*  Use flexbox for easy content centering */
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevent content from overflowing */
}

.hero-image {
  /* background-image: url("img/bc-margs.jpg"); */
  background-image: url("img/margs-crop1.jpg");
  background-size: cover; /* Cover the entire hero section */
  background-position: top; /* Center the image */
  position: absolute; /*  Position behind the overlay and content */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure the image is behind the overlay */
}

.overlay {
  position: absolute; /* Position over the image */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  z-index: 2; /*  Ensure overlay is between the image and content */
}

.hero-content {
  position: relative; /* Ensure content is on top of the overlay */
  z-index: 3; /* Ensure content is on top */
  text-align: center;
  color: white; /* Make text readable on the dark overlay */
  padding: 20px;
  max-width: 800px; /* Limit content width for better readability */
  text-shadow: 0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #b99b69,
    0 0 42px #b99b69,
    0 0 82px #b99b69;
}

.hero-content h1 {
  font-family: "Herr Von Muellerhoff", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 7.55em;
  transform: rotate(-35deg);

  line-height: 0.75;
  margin-bottom: 40px;
}

.hero-content p {
  text-transform: uppercase;
  font-size: 1.6em;
  margin: 15px 0;

}

.hero-content h2 {
  text-transform: uppercase;
  font-size: 2.15em;
  margin: 25px 0;
}

.hero-content h3 {
  text-transform: uppercase;
  font-size: 1.25em;
}

.hero-content .button {
  margin-top: 10px;
  display: inline-block;
  background-color: #69afb9; /* Example button color */
  color: white;
  padding: 20px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.8em;
}

.hero-content .scrolldown {
  margin-top: 15px;
  font-size: 1.1em;
  color: #bed5a6;
  display: none;
}

.doflicker {
  animation: flicker 2.1s infinite alternate;
}

.libre-caslon-display-regular {
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-style: normal;
}

.tangerine-regular {
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}

.tangerine-bold {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-style: normal;
}

.ephesis-regular {
  font-family: "Ephesis", cursive;
  font-weight: 400;
  font-style: normal;
}

.herr-von-muellerhoff-regular {
  font-family: "Herr Von Muellerhoff", cursive;
  font-weight: 400;
  font-style: normal;
}

.story-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  perspective: 400px;
  background-image: url("img/bk-bw.jpg");
  background-size: cover; /* Cover the entire hero section */
  background-position: center; /* Center the image */
}

.story-credits {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) rotateX(15deg);
  transform-origin: 50% 100%; /* Rotate from the bottom */
  animation: crawl 48s linear infinite; /* Adjust duration and timing */
  color: yellow; /* Star Wars text color */


  font-family: 'Arial Black', sans-serif; /* Or a similar font */
  font-size: 3em;
  text-align: justify;
  width: 21.5em; /* Adjust width as needed */
  z-index: 2;
}

.story-credits h1 {
  font-size: 2.5em;
  text-align: center;
}

.story-credits h2 {
  font-size: 1.75em;
  text-align: center;
}

.story-credits p {
  padding-bottom: 40px;
}

@keyframes crawl {
      0% {
        top: 90%;
        opacity: 1;

      }
      25% {

      }
      85% {
        opacity: .9;
      }
      100% {
        top: -275%;

        opacity: 0;
      } /* Adjust to match content height */
    }
/*
.story-container {
  margin: 0 auto;
  perspective: 380px;
  perspective-origin: bottom;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: visible;
  transform: scaleY(0.9);
}

.story-credits {
  position: absolute;
  top: 0;
  left: 13%;
  right: 13%;
  height: 100%;
  animation: play 20s infinite;
}

.story-headings {
  margin-bottom: 5rem;
}

.story-headings h1 {
  font-size: 2.5rem;
  text-align: center;
}

.story-headings h2 {
  font-size: 3rem;
  text-transform: uppercase;
  text-align: center;
}

.story-headings p {
  padding: 0.5rem 0;
}

@@keyframes play {
  0% {
    transform: rotateX(21deg) translate3d(0, 100rem, 0);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: rotateX(21deg) translate3d(0, -150rem, 0);
    opacity: 0;
  }
}
*/





.sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.section {
    background: #faf8f3;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
    border: 1px solid #e8dcc6;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
}



.faq-section {
    font-weight: 700;
    /* background: #faf8f3; */
    background-color: rgba(245, 245, 245, 0.45);
    padding: 40px;
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 1px solid #e8dcc6;
}

.faq-section h2 {
    font-weight: 700;
    color: #463924;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #463924;
    padding-bottom: 15px;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    /* background: #f0ebe4; */
    background-color: rgba(0, 0, 0, 0.11);
    border-radius: 10px;
    border-left: 4px solid #b99b69;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.faq-question {
    font-size: 1.5em;
    font-weight: 700;
    color: #5a713e;
    margin-bottom: 10px;
    line-height: 1.3;
}

.faq-answer {
    font-size: 1.25em;
    color: #3a2f2a;
    line-height: 1.6;
}

.faq-answer p {
  padding-top: 15px;
}

.faq-answer img {
  height: 100%;
  width: 100%;
  margin-top: 15px;
}

.faq-answer a {
  color: #b97a69;
}

@media (max-width: 1199px) {
  /* Desktop-specific styles */
  .hero-content h1 {
      font-size: 7.5em;
      margin-bottom: 50px;
  }

  .hero-content h2 {
      font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1.25em;
  }
}



@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 6em;
        margin-bottom: 50px;
    }

    .hero-content p {
      font-size: 1.15em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content h3 {
      font-size: 1.15em;
    }

    .hero-content .scrolldown {
      display: block;
    }

    .story-credits {
      font-size: 2.65em;
      width: 18em;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 6em;
    }

    .hero-content p {
      font-size: 1.2em;
    }

    .hero-content h2 {
        font-size: 1.85em;
    }

    .hero-content .button {
      font-size: 1.25em;
    }

    .story-credits h1{
      font-size: 2.2em;
    }

    .story-credits {
      font-size: 2.1em;
      width: 10.2em;
    }
}
