body {
  background-image: url('images/background_leaves.png');
  /* background-size: 50%; */
  font-family: "JetBrains Mono", monospace;
  height: 100vh;
  margin: 0;
}

main {
  height: 100vh;
  margin: 0;
}

.main-box {
  width: 750px;
  margin: auto;

  margin-top: 300px;
  position: relative;

  display: grid;
  grid-template-columns: 1fr 10fr;
}

.content {
  /* Border */
  border: 50px solid transparent;
  border-image-source: url('images/panel2.png');
  border-image-slice: 24 fill;
  image-rendering: crisp-edges;
  color: #131e22;
}

.tabs {
  flex-direction: row;
  justify-items: flex-start;
  padding-top: 10%;
  padding-bottom: 10%;
}

.tab {
  /* Border */
  border: 10px solid transparent;
  border-image-source: url('images/panel.png');
  border-image-slice: 10 fill;
  image-rendering: crisp-edges;

  background: none;

  width: 100px;

  /* background-color: aqua; */
}


.tab.active {
  /* background-color: aqua; */
  transform: scale(1.04);
}

.tab:hover {
  transform: scale(1.06);
}

.tab-content {
  display: none;
  margin-top: 20px;
}

.tab-content.active {
  display: block;
}

.page-title {
  font-family: sans-serif;
  font-weight: 500;

  border: 20px solid transparent;
  border-image-source: url('images/panel3.png');
  border-image-slice: 10 fill;
  image-rendering: crisp-edges;
  margin: auto;
}

.arts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.art {
  border: 20px solid transparent;
  border-image-source: url('images/panel3.png');
  border-image-slice: 10 fill;
  image-rendering: crisp-edges;
  margin: auto;
}

.art-title {
  font-size: larger;
}

.art-desc {
  font-size: smaller;
}

.art p {
  margin-top: 2px;
  margin-bottom: 2px;
}

.art-box {
  width: 130px;
  height: 130px;
}

.art-art {
  width: 100%;
  height: 100%;
  object-fit: contain;

  cursor: pointer;
  transition: transform 0.2s;
}

.art-art:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 99999;

}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* floating background image */
#dvd {
  position: fixed;
  top: 0;
  left: 0;

  width: 120px;

  image-rendering: crisp-edges;

  z-index: -1;
  /* behind content */
  pointer-events: none;
  /* clicks pass through */
}

.girl {
  position: absolute;

  pointer-events: none;


  top: -470px;
  right: -190px;
}

#petal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  /* page still clickable */
  overflow: hidden;
  z-index: 9999;
}

.petal {
  position: absolute;
  top: -50px;

  width: 24px;
  height: 24px;

  /* background-image: url("images/petal.png"); */
  background-size: contain;
  background-repeat: no-repeat;

  animation: fall linear forwards;

  opacity: 0.9;
  filter: drop-shadow(0 0 4px pink);
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(40px) rotate(0deg);
  }

  100% {
    transform: translateY(110vh) translateX(-200px) rotate(720deg);
  }
}

#rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.drop {
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: 60px;

  background: linear-gradient(transparent,
      rgba(255, 255, 255, 0.6));

  animation: rain linear infinite;

}

@keyframes rain {
  0% {
    transform: translateY(0) translateX(40px) rotate(6deg);
  }

  100% {
    transform: translateY(120vh) translateX(-200px) rotate(7deg);
  }
}

.audio-ui {
  position: absolute;
  top: -70px;
  left: 195px;

  z-index: 20;
}

#mute-btn {
  border: 10px solid transparent;
  border-image-source: url('images/panel.png');
  border-image-slice: 6 fill;
  image-rendering: crisp-edges;

  background: none;
}

#mute-btn:hover {
  transform: scale(1.05);
}

/* #audio-player {
  volume: 0.06;
} */

#spooky-girl {
  image-rendering: crisp-edges;
}

#spooky-link {
  position: fixed;
  top: 60%;
  left: -120px;

  width: 120px;


  /* z-index: -2; */
  
  animation: spoopy linear 1;
  animation-delay: 1000s;
  animation-duration: 100s;
}

@keyframes spoopy {
    0% {
    transform: translateX(0px) rotate(0deg);
  }

  80% {
    transform: translateX(40px) rotate(45deg);
  }

  95% {
    transform: translateX(40px) rotate(45deg);
  }
    100% {
    transform: translateX(0px) rotate(0deg);
  }
}