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

body {
  background-color: black;
  font-family: 'Courier New', Courier, monospace;
  color: white;
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

#bgVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Ensure the video covers the whole screen */
  z-index: -1;  /* Place video behind other content */
  opacity: 0.10;  /* Set opacity to 25% for a darker, more subtle effect */
}

.container {
  display: none;
  text-align: center;
  position: relative;
}

.poem {
  font-size: 1.5em;
  line-height: 1.6;
}

.line {
  opacity: 0;
  animation: fadeIn 3s forwards;
}

.line:nth-child(1) {
  animation-delay: 0.5s;
}
.line:nth-child(2) {
  animation-delay: 1s;
}
.line:nth-child(3) {
  animation-delay: 1.5s;
}
.line:nth-child(4) {
  animation-delay: 2s;
}
.line:nth-child(5) {
  animation-delay: 2.5s;
}
.line:nth-child(6) {
  animation-delay: 3s;
}
.line:nth-child(7) {
  animation-delay: 3.5s;
}
.line:nth-child(8) {
  animation-delay: 4s;
}
.line:nth-child(9) {
  animation-delay: 4.5s;
}
.line:nth-child(10) {
  animation-delay: 5s;
}
.line:nth-child(11) {
  animation-delay: 5.5s;
}
.line:nth-child(12) {
  animation-delay: 6s;
}
.line:nth-child(13) {
  animation-delay: 6.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

body {
  animation: flicker 0.1s infinite;
}

.spooky-button {
  padding: 20px 40px;
  font-size: 1.5em;
  color: white;
  background-color: transparent;
  border: 2px solid white;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  position: absolute;
  animation: flicker 0.2s infinite;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 0, 0, 0.5);
}

.spooky-button:hover {
  background-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.8), 0 0 100px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
  color: red;
}

.spooky-button:active {
  transform: scale(0.95);
}
