body {
  margin: 0;
  overflow: hidden;
  background: #000;
  height: 100vh;
}

/* parallax bg */
#parallax-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  will-change: transform;
  pointer-events: none;
}

#sky {
  z-index: 1;
  width: calc(100% + 80px);
  height: 100%;
  left: -40px;
}

#mount {
  z-index: 2;
  width: calc(100% + 80px);
  height: 100%;
  left: -40px;
}

#tree {
  z-index: 3;
}

/* petals */
.petal {
  position: absolute;
  z-index: 10;
  height: auto;
  pointer-events: none;
  will-change: transform, opacity;
}

/* social  */
.social {
  position: absolute;
  left: 32px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 32px;
  z-index: 99;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.social__btn {
  width: 100px;
  height: 100px;
  position: relative;
  transition: transform 0.3s ease;
}

.social__btn > picture {
  width: inherit;
  height: inherit;
}

.social__btn::before {
  content: "";
  width: inherit;
  height: inherit;
  background: no-repeat center center;
  background-size: 100px 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  transition: transform 0.3s ease;
}
.no-webp .social__btn::before {
  background-image: url("./img/social/bottom.png");
}
.webp .social__btn::before {
  background-image: url("./img/social/bottom.webp");
}

.social__btn::after {
  content: "";
  width: inherit;
  height: inherit;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100px 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 15;
  transition: transform 0.3s ease;
}

.social__btn:hover::after {
  transform: rotate(30deg);
}

.social__btn:hover::before {
  transform: rotate(30deg);
}

.no-webp .social__btn--discord::after {
  background-image: url("./img/social/discord/top.png");
}
.webp .social__btn--discord::after {
  background-image: url("./img/social/discord/top.webp");
}

.no-webp .social__btn--instagram::after {
  background-image: url("./img/social/instagram/top.png");
}
.webp .social__btn--instagram::after {
  background-image: url("./img/social/instagram/top.webp");
}

.no-webp .social__btn--patreon::after {
  background-image: url("./img/social/patreon/top.png");
}
.webp .social__btn--patreon::after {
  background-image: url("./img/social/patreon/top.webp");
}

.no-webp .social__btn--pinterest::after {
  background-image: url("./img/social/pinterest/top.png");
}
.webp .social__btn--pinterest::after {
  background-image: url("./img/social/pinterest/top.webp");
}

.no-webp .social__btn--threads::after {
  background-image: url("./img/social/threads/top.png");
}
.webp .social__btn--threads::after {
  background-image: url("./img/social/threads/top.webp");
}

.no-webp .social__btn--tiktok::after {
  background-image: url("./img/social/tiktok/top.png");
}
.webp .social__btn--tiktok::after {
  background-image: url("./img/social/tiktok/top.webp");
}

.no-webp .social__btn--youtube::after {
  background-image: url("./img/social/youtube/top.png");
}
.webp .social__btn--youtube::after {
  background-image: url("./img/social/youtube/top.webp");
}

.no-webp .social__btn--itch::after {
  background-image: url("./img/social/itch/top.png");
}
.webp .social__btn--itch::after {
  background-image: url("./img/social/itch/top.webp");
}

.social__img {
  width: inherit;
  height: inherit;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.social__btn:hover .social__img {
  transform: rotate(-10deg);
}

@media all and (max-width: 1024px) {
  .social {
    gap: 8px;
    bottom: 16px;
    left: 0;
    height: auto;
    width: 100%;
    flex-direction: row;
  }

  .social__btn {
    width: 50px;
    height: 50px;
  }

  .social__btn::before,
  .social__btn::after {
    background-size: 50px 50px;
  }
}
