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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #eee;
  overflow-x: hidden;
}

.parallax-container {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  perspective: 8px;
  scroll-snap-type: y mandatory;
}

.parallax-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  scroll-snap-align: start;
  background-color: #000;
}

/* Parallax background image */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in;
}

.parallax-layer.active {
  opacity: 1;
}

.parallax-layer-base {
  opacity: 1;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.parallax-layer-back {
  z-index: 1;
}

.parallax-layer-deep {
  z-index: 0;
}

.content {
  position: relative;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 5;
  opacity: 0;
  transition: opacity 1s linear;
  transition-delay: 1.8s;
  margin: 0 auto;
}

.content.visible {
  opacity: 1;
}

h1, h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  z-index: 1;
  transform: none !important;
}

.cta-button {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 2rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 2rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

.cta-button:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 1.2);
  text-decoration: underline;
}

.cta-button:visited {
  color: white !important;
}

@media (max-width: 768px) {
  .content {
      margin: 80px 1rem 20px;
      padding: 1rem;
  }
  .parallax-section {
    padding: 0.5rem;
  }

  h1 {
      font-size: 2rem;
  }

  h2 {
      font-size: 1.5rem;
  }

  p {
      font-size: 1rem;
  }
}

  /* Remove margin on home page for story content */
  main {
    margin-top: 0;
  }

  /* Add scroll marker after each story section */
  .content p:last-child::after {
    content: "👇";
    display: block;
    font-size: 2rem;
    margin: 0;
    padding: 1rem 0 0;
    text-align: center;
  }