.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: -1;
  overflow: clip;
  & > div.clouds {
    height: 100%;
    width: 100%;
    position: absolute;
    & > img {
      width: 300px;
      position: absolute;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      z-index: -1;
      animation-duration: 50s;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      &:nth-last-of-type(1) {
        bottom: 42%;
        left: 21vw;
        width: 320px;
        animation-name: cloud-move-left;
      }
      &:nth-last-of-type(2) {
        bottom: -5%;
        left: -4vw;
        width: 300px;
        animation-name: cloud-move-left;
        animation-duration: 50s;
      }
      &:nth-last-of-type(3) {
        bottom: -15%;
        right: -6vw;
        width: 350px;
        animation-name: cloud-move-right;
        animation-duration: 50s;
      }
      &:nth-last-of-type(4) {
        bottom: 27%;
        right: 14vw;
        width: 260px;
        animation-name: cloud-move-right;
        animation-duration: 45s;
      }
      &:nth-last-of-type(5) {
        bottom: 21%;
        left: 17vw;
        width: 160px;
        animation-name: cloud-small-move-left;
        animation-duration: 50s;
      }
      &:nth-last-of-type(6) {
        bottom: 57%;
        right: 43vw;
        width: 140px;
        animation-name: cloud-small-move-right;
        animation-duration: 55s;
      }
      &:nth-last-of-type(7) {
        bottom: 14%;
        right: 17vw;
        width: 120px;
        animation-name: cloud-small-move-right;
        animation-duration: 60s;
      }
    }
  }
  & > div.stars {
    height: 100%;
    width: 100%;
    position: absolute;
    & > img {
      position: absolute;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      z-index: -2;
      opacity: 0.2;
      transform: scale(0.8);
      animation-name: twinkle;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      &.big {
        width: 35px;
        &:nth-of-type(1) {
          bottom: 85%;
          right: 75vw;
          animation-duration: 3s;
          animation-delay: 0.2s;
        }
        &:nth-of-type(2) {
          bottom: 65%;
          left: 55vw;
          animation-duration: 3.2s;
          animation-delay: 0.5s;
        }
        &:nth-of-type(3) {
          bottom: 14%;
          left: 21vw;
          animation-duration: 3.4s;
          animation-delay: 0.8s;
        }
        &:nth-of-type(4) {
          bottom: 4%;
          left: 85vw;
          animation-duration: 3.6s;
          animation-delay: 1.1s;
        }
        &:nth-of-type(5) {
          bottom: 75%;
          right: 25vw;
          animation-duration: 3.8s;
          animation-delay: 1.4s;
        }
        &:nth-of-type(6) {
          bottom: 35%;
          left: 15vw;
          animation-duration: 4s;
          animation-delay: 1.7s;
        }
        &:nth-of-type(7) {
          bottom: 86%;
          right: 29vw;
          animation-duration: 4.2s;
          animation-delay: 2s;
        }
        &:nth-of-type(8) {
          bottom: 55%;
          left: 86vw;
          animation-duration: 4.4s;
          animation-delay: 2.3s;
        }
      }
      &.small {
        width: 20px;
        &:nth-of-type(9) {
          bottom: 80%;
          left: 40vw;
          animation-duration: 2.8s;
          animation-delay: 0.1s;
        }
        &:nth-of-type(10) {
          bottom: 63%;
          left: 5vw;
          animation-duration: 2.6s;
          animation-delay: 0.4s;
        }
        &:nth-of-type(11) {
          bottom: 40%;
          right: 4vw;
          animation-duration: 2.4s;
          animation-delay: 0.7s;
        }
        &:nth-of-type(12) {
          bottom: 20%;
          right: 20vw;
          animation-duration: 2.2s;
          animation-delay: 1s;
        }
        &:nth-of-type(13) {
          bottom: 90%;
          left: 30vw;
          animation-duration: 2s;
          animation-delay: 1.3s;
        }
        &:nth-of-type(14) {
          bottom: 50%;
          right: 80vw;
          animation-duration: 1.8s;
          animation-delay: 1.6s;
        }
        &:nth-of-type(15) {
          bottom: 70%;
          right: 10vw;
          animation-duration: 1.6s;
          animation-delay: 1.9s;
        }
        &:nth-of-type(16) {
          bottom: 5%;
          left: 11vw;
          animation-duration: 1.4s;
          animation-delay: 2.2s;
        }
      }
    }
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cloud-move-left {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(7.5vw);
  }
  100% {
    transform: translateX(-7.5vw);
  }
}

@keyframes cloud-move-right {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-7.5vw);
  }
  100% {
    transform: translateX(7.5vw);
  }
}

@keyframes cloud-small-move-left {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2.5vw);
  }
  100% {
    transform: translateX(-2.5vw);
  }
}

@keyframes cloud-small-move-right {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2.5vw);
  }
  100% {
    transform: translateX(2.5vw);
  }
}

.background-container2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: -1;
  overflow: clip;
  & > div.pipes {
    height: 100%;
    width: 100%;
    position: absolute;
    & > img {
      width: 80px;
      height: auto;
      position: absolute;
      z-index: -1;
      &:nth-of-type(1) {
        top: 65%;
        left: 1vw;
      }
      &:nth-of-type(2) {
        top: 35%;
        left: 11vw;
      }
      &:nth-of-type(3) {
        top: 50%;
        left: 21vw;
      }
      &:nth-of-type(4) {
        top: 35%;
        right: 1vw;
      }
      &:nth-of-type(5) {
        top: 50%;
        right: 11vw;
      }
      &:nth-of-type(6) {
        top: 65%;
        right: 21vw;
      }
      &:nth-of-type(7) {
        bottom: 0%;
        left: 14vw;
        height: auto;
        width: 8vw;
        /* object-fit: cover; */
        z-index: -2;
      }
      &:nth-of-type(8) {
        bottom: 0%;
        right: 4vw;
        height: auto;
        width: 8vw;
        /* object-fit: cover; */
        z-index: -2;
      }
    }
  }
  & > div.bricks {
    height: 100%;
    width: 100%;
    position: absolute;
    & > div {
      position: absolute;
      height: 11vh;
      width: 8.25vw;
      background-image: url("../images/elements/brick.png");
      background-repeat: repeat;
      background-size: cover;
      background-position: contain;
      z-index: -2;
      &:nth-of-type(1) {
        bottom: 0%;
        right: 3.75vw;
        z-index: -2;
      }
      &:nth-of-type(2) {
        bottom: 0%;
        left: 13.75vw;
        z-index: -2;
      }
    }
  }
}
