body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-image: linear-gradient(176.66deg, #FFEF8A -6.26%, #FF7B00 76.44%);
}

#loader {
  width: 100vw;
  height: 100vh;
  background-image: var(--background-image);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

@supports (height: 100dvh) {
  #loader {
    height: 100dvh;
  }
}

.coin-top {
  position: absolute;
  top: -76px;
  right: 45%;
}

#image_wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-56%, -70%);
}

#main-image {
  width: 60vh;

  position: relative;
}

.coin-small {
  position: absolute;
  bottom: -3px;
  right: -15px;
}

.coin-main {
  position: absolute;
  bottom: 73px;
  left: -195px;;
}

#left-coin {
  position: absolute;
  bottom: 20%;
  left: 0;
  visibility: hidden;
}

.loader-content__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;

  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  @media screen and (max-width: 744px) {
    bottom: 32px;
  }
}

#logo {
  text-align: center;
  margin-bottom: 80px;
  img {
    height: 25px;
    width: auto;
  }
}

#progress {
  width: 454px;
  height: 14px;
  border-radius: 10px;
  box-sizing: border-box;

  padding: 2px;
  position: relative;
  background-color: #000000;

  @media screen and (max-width: 744px) {
    width: 246px;
    height: 8px;
  }
}

#bar {
  position: absolute;
  border-radius: 10px;
  width: 98%;
  right: 2px;
  height: 9px;
  background-color: #FF9C3E;

  .bar__chicken {
    position: absolute;
    left: -20px;
    top: -41px;

    @media screen and (max-width: 744px) {
      transform: scale(70%);
      top: -37px;
    }
  }

  .bar__train {
    opacity: 0;
    background-image: var(--progress-train);
    width: 110px;
    height: 47px;
    position: absolute;
    left: -163px;
    top: -48px;

    transition: opacity 0.3s ease-in-out;

    @media screen and (max-width: 744px) {
      transform: scale(70%);
      top: -40px;
      left: -130px;
    }

    > img {
      position: absolute;
      opacity: 1;
      transition: all 0.5s ease-in-out;
    }

    > img:nth-child(1) {
      top: -2px;
      left: -29px;
    }

    > img:nth-child(2) {
      top: -23px;
      left: -2px;
    }

    > img:nth-child(3) {
      top: -30px;
      left: 35px;
    }

    > img:nth-child(4) {
      top: -24px;
      left: 58px;
    }

    > img:nth-child(5) {
      top: -24px;
      left: 90px;
    }

    > img:nth-child(6) {
      top: 7px;
      left: 101px;
    }

    img.fly-away-1 {
      transform: translate(-80px, 30px) rotate(-90deg);
      opacity: 0;
    }

    img.fly-away-2 {
      transform: translate(-90px, 40px) rotate(80deg);
      opacity: 0;
    }

    img.fly-away-3 {
      transform: translate(-60px, 50px) rotate(-120deg);
      opacity: 0;
    }

    img.fly-away-4 {
      transform: translate(-100px, 60px) rotate(150deg);
      opacity: 0;
    }

    img.fly-away-5 {
      transform: translate(-70px, 35px) rotate(-120deg);
      opacity: 0;
    }

    img.fly-away-6 {
      transform: translate(-80px, 45px) rotate(-90deg);
      opacity: 0;
    }
  }

  .show-train {
    opacity: 1;
  }

  @media screen and (max-width: 744px) {
    height: 4px;
  }
}

#percent {
  margin-top: 13px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.09px;
  color: #000000;
}

@media screen and (max-width: 744px) {
  #image_wrapper {
    transform: translate(-51%, -65%);
  }

  .coin-top {
    top: -30px;
    right: 25%;
    width: 90px
  }

  #loader {
    width: auto;
    margin-left: -20px;
    position: initial;
  }

  #loader::before {
    transform: translate(-51%, -57%);
  }

  #left-coin,
  #right-coin {
    visibility: visible;
  }

  #main-image {
    width: 100vw;
    max-width: 390px;
  }

  #logo {
    margin-bottom: 50px;
    img {
      height: 16px;
      width: auto;
    }
    #percent {
      margin-top: 9px;
      line-height: 20px;
      font-size: 14px;
    }
  }
}

@media screen and (orientation: landscape) and (max-width: 744px) {
  #main-image {
    width: 43vh;
    height: 50%;
  }
  #image_wrapper {
    transform: translate(-59%, -78%);
  }
}
