body {
  --platform-offset-y: -74px;
}

.background-0 {
  background-image: url("../../public/images/setting/0.png");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 100%;
  min-height: 579px;
  background-position: 0 bottom;
  width: 100%;
  animation: scrollBackgroundLg 600s linear infinite;
  position: absolute;
  z-index: 0;
  overflow: hidden;
}

@keyframes scrollBackgroundLg {
  0% {
    background-position: 0 bottom;
  }
  100% {
    background-position: 1000% bottom;
  }
}

@keyframes scrollBackgroundMd {
  0% {
    background-position: 0 bottom;
  }
  100% {
    background-position: 10000% bottom;
  }
}

@keyframes scrollBackgroundSm {
  0% {
    background-position: 0 bottom;
  }
  100% {
    background-position: 1000% bottom;
  }
}

.background-1 {
  background-image:url("../../public/images/setting/1.png");
  background-position: bottom;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  overflow: hidden;
}

.background-2 {
  background-image: url("../../public/images/setting/2.png");
  background-size: 100% 50%;
  background-position: bottom -150px right 0px;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 3;
  overflow: hidden;
}

.platform {
  background-image: url("../../public/images/setting/platform.webp");
  z-index: 4;
  width: 2560px;
  height: 1440px;
  position: absolute;
  bottom: var(--platform-offset-y);
  right: 0px;
}

.portal {
  transform: scale(1.5);
  position: absolute;
  z-index: 6;
  right: 119px;
  bottom: 89px;
  width: 110px;
  height: 150px;
  background: url("../../public/images/animations/portal.png") left center;
  animation: portal 0.96s steps(8) infinite;
}

@keyframes portal {
  100% { background-position: -880px; }
}

@media (max-width: 1024px) {
  .background-0 {
    animation: scrollBackgroundMd 600s linear infinite;
  }
  .background-1 {
    background-size: auto;
  }

  .background-2 {
    background-position: bottom !important;
    background-size: auto !important;
  }

}

@media (max-width: 520px) {
  .background-0 {
    top: auto;
    bottom: 200px;
    animation: scrollBackgroundSm 600s linear infinite;
  }
}

@media (max-width: 600px) {
  .portal {
    display:none;
  }

  .platform {
    right: -700px;
  }
}