body,
html {
  margin: 0;
  padding: 0;
  background-color: black;
}

body {
  cursor: none;
}

#starter {
  z-index: 1;
  position: absolute;
  display: flex;
  top: 25%;
  left: 50%;
  width: 300px;
  height: 50px;
  margin-left: -150px;
  text-align: center;
  font-family: 'Island Moments', cursive;
  font-size: 5em;
  font-weight: 100;
  cursor: pointer;
  color: #FFF4D9;
}

/* Scene now fills the entire screen */
#scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgb(0, 0, 0);
}

/* Scene fade-out effect */
#scene.fade-out {
  animation: fade-out-scene 1s ease-in forwards;
}

@keyframes fade-out-scene {
  from { opacity: 1; }
  to { opacity: 0; }
}


/* Curtain container covers full scene */
#curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* Curtain panels */
#curtain .left,
#curtain .right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  filter: brightness(180%);
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/950358/curtain.svg");
  background-size: cover;
  background-repeat: no-repeat;

  filter: hue-rotate(-15deg) saturate(1.6) brightness(0.9);
}

#curtain .left::after,
#curtain .right::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(128, 0, 32, 0.65);
  mix-blend-mode: multiply; 
  pointer-events: none;
}

#curtain .left {
  left: 0;
  transform-origin: top right;
}

#curtain .right {
  left: 50%;
  transform-origin: top left;
}

/* Optional stage ground light */
.ground {
  position: absolute;
  left: 50%;
  top: 133%;
  width: 10000px;
  height: 10000px;
  margin-left: -5000px;
  border-radius: 100%;
  box-shadow: 0 0 100px 100px white;
}

/* Curtain opening animation */
#curtain.open .left,
#curtain.open .right {
  filter: brightness(100%);
}

#curtain.open .left {
  animation-fill-mode: forwards;
  animation-name: curtain-opening, left-curtain-opening;
  animation-duration: 2s, 4s;
  animation-timing-function: ease-in-out, ease-in-out;
}

#curtain.open .right {
  animation-fill-mode: forwards;
  animation-name: curtain-opening, right-curtain-opening;
  animation-duration: 2s, 4s;
  animation-timing-function: ease-in-out, ease-in-out;
}

/* Fade out starter text */
.fade-out {
  animation-fill-mode: forwards;
  animation-name: fade-out;
  animation-duration: 1s;
  animation-timing-function: ease-in;
}

/* **********
	Animations
********** */

@keyframes curtain-opening {
  from { filter: brightness(180%); }
  to { filter: brightness(100%); }
}

@keyframes left-curtain-opening {
  from { transform: translate(0) rotate(0) scale(1, 1); }
  to { transform: translate(-100%) rotate(20deg) scale(0, 2); }
}

@keyframes right-curtain-opening {
  from { transform: translate(0) rotate(0) scale(1, 1); }
  to { transform: translate(100%) rotate(-20deg) scale(0, 2); }
}

@keyframes fade-out {
  from { color: black; opacity: 1; }
  to { color: white; opacity: 0; }
}


.dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  /* almost black */
  pointer-events: none;
  transition: background 0.3s;
  mask-image: radial-gradient(circle 300px at var(--x, 50%) var(--y, 50%), transparent 20%, black 80%);
  -webkit-mask-image: radial-gradient(circle 300px at var(--x, 50%) var(--y, 50%), transparent 20%, black 80%);
}

#candle-cursor {
  position: fixed;
  width: 200px;
  height: 200px;
  pointer-events: none;
  /* Let clicks pass through */
  transform: translate(-50%, -50%);
}

section.invitation,
section.about {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.paper {
  background-image: url(./img/paper.jpg);
  background-size: cover;
  /* background-color: #FFF4D9; */
  color: black;
  padding: 40px;
  width: 500px;
  height: auto;
  min-height: 10vh;
  border-radius: 8px;
  margin: auto;
  max-height: 900vh;
  overflow: auto;
}



.heading {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

h1,
h2 {
  font-family: 'Island Moments', cursive;
  font-weight: 100;
  margin: 0;
}

h1 {
  font-size: 48px;
  text-align: center;
}

h2 {
  font-size: 32px;
  margin-top: 10px;
  margin-bottom: 20px;
}


p,
li {
  font-family: 'GFS Didot', serif;
  font-weight: 100;
  font-size: 16px;
  line-height: 1.5;
}

ul {
  padding-left: 25px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}


.content img {
  display: block;
  margin: 20px auto 0;
  width: 300px;
  height: auto;
}

span {
  opacity: 0;
  padding-right: 100px;

}

span:hover {
  opacity: 1;
  padding-right: 100px;
}

.about h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.about img {
  margin-top: 50px;
}


/* Navigation */
nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

nav a {
  color: #FFF4D9;
  background-color: #4B0D0D;
  text-decoration: none;
  font-family: 'Island Moments', cursive;
  font-size: 20px;
  font-weight: 100;
  padding: 10px 15px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #8E0505;
}

/* responsive */
@media (max-width: 768px) {
  .paper {
    width: 90%;
    padding: 20px;
    margin: 20px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }
}