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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.special-elite-regular {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}

.geist-mono-<uniquifier> {
  font-family: "Geist Mono", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

@font-face {
  font-family: 'Bootzy';
  src: url('fonts/BootzyTM.ttf');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dotrice';
  src: url('fonts/Dotrice-Regular.otf');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/*Intro*/
#intro {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

/*1*/
#gate {
  display: block;
  margin: -25px auto 0;
  width: 95%;
  position: relative;
  z-index: 2;
}

.rain-letter {
  position: absolute;
  margin-top: -100px;
  font-family: 'Bootzy', monospace;
  font-size: clamp(9px, 1.3vw, 17px);
  font-weight: bold;
  color: black;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 3;
}

/*2*/
#window {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 15%;
}

#window2 {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 15%;
}
.grid-wrap {
  position: absolute;
  top: 50%; 
  left: 53.5%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 1.5vw;
  text-align: justify;
}

.grid-letter {
  display: inline-block;
   font-family: "narly-ot", system-ui;
 font-weight: 700;
 font-size: 3vw;
font-style:normal;
  text-align: justify;
  color: black; 
  transition: transform 0.1s ease;
  cursor: default;
  will-change: transform;
}


/*3*/
body:has(#stack) {
  display: flex;
  align-items: center;
  justify-content: center;
}

#stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55vmin;
  height: 55vmin;
}

#entertain {
  position: absolute;
  z-index: 4;
  width: 160%;
  height: auto;
  animation: rotate 12s linear infinite paused;
  transition: transform 1.5s ease-out;
}

#entertain:hover {
  animation-play-state: running;
  transform: rotate(-.15turn);
}
@keyframes rotate {
  to {rotate: 2turn}
}

#flower {
  position: absolute;
  z-index: 3;
  width: 125%;
  height: auto;
}

/*4*/
#gatei {
  display: block;
  margin: -60px auto 0;
  width: 95%;
  position: relative;
  z-index: 2;
}

/*5 + 8*/
body:has(.script-stage) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.long-thresh {
  display: block;
  width: 70%;
  margin: 0 auto;
  pointer-events: none;
}

.script-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5vh;
  padding: 3vh 0;
  flex-shrink: 0;
}

.script-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-shrink: 0;
}

.sc {
  display: inline-block;
  font-family: 'puntino', cursive;
  font-size: clamp(36px, 7vw, 180px);
  color: #1a0800;
  line-height: 1.15;
  cursor: grab;
  user-select: none;
}

.sc:active {
  cursor: grabbing;
}

.sc-space {
  display: inline-block;
  width: 0.28em;
}

.sc-ghost {
  display: inline-block;
  visibility: hidden;
}
/*7*/
.tall-thresh {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
}
.tall-thresh.left  { left: 15px; }
.tall-thresh.left2 { left: 145px; }
.tall-thresh.right { right: 15px; transform: scaleX(-1); }
.tall-thresh.right2 { right: 145px; transform: scaleX(-1); }

.grid-wrap-7 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 3.5vw;
  text-align: justify;
}

.grid-letter-7 {
  display: inline-block;
    font-family: "louvettepixel-light", monospace;
  font-size:3vw;
  font-weight: 900;
  color: #1a001f;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: default;
  will-change: transform, opacity;
}

/*9*/
body:has(#about-layout) {
  display: flex;
  align-items: stretch;
}

#about-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  padding: 4vh 4vw;
  gap: 4vw;
  align-items: center;
}

#lyrics-col {
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
}

#lyrics-col p {
  font-family: 'Courier New', monospace;
  font-size: clamp(7px, 0.95vw, 13px);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

#title-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  height: 100%;
}

#wed-img {
  width: 28%;
  position: absolute;
  top: 2vh;
  right: 0;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

#big-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(38px, 8.5vw, 120px);
  font-weight: 900;
  color: white;
  line-height: 0.88;
  text-transform: lowercase;
  margin-top: auto;
  margin-bottom: auto;
}

#about-desc {
  font-family: 'Courier New', monospace;
  font-size: clamp(7px, 0.8vw, 11px);
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  position: absolute;
  bottom: 0;
  right: 0;
  text-align: right;
  max-width: 45%;
}

/*About*/
#about{
   display: block;
   width: 100vw;
  height: 100vh;
  object-fit: contain;
}