/* footer rocket class */
#FooterScrollToTop {
  display: block;
  height: 6rem;
  margin: 0 auto;
  position: relative;
  width: 6rem;
}

#FooterScrollToTop #ToTopRocketSVG {
  overflow: visible;
  width: 26px;
}

#FooterScrollToTop #ToTopRocket,
#FooterScrollToTop #ToTopRocketWindow {
  fill: var(--primary-color);
}

#FooterScrollToTop #ToTopRocketFlame {
  fill: transparent;
  transform-box: fill-box;
  transform-origin: 50% 0;
}

#FooterScrollToTop .ToTopRocketBg {
  fill: var(--background-color);
}

#FooterScrollToTop .FooterScrollToTopText {
  bottom: 15px;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 400;
  font-weight: 700;
  left: 0;
  line-height: 1.75rem;
  line-height: 1;
  position: absolute;
  text-align: center;
  width: calc(6rem - 2px);
}

#FooterScrollToTop .FooterScrollToTopButton {
  border: 1px solid var(--border-color);
  border-radius: 50%;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: block;
  height: 6rem;
  line-height: 0;
  position: relative;
  text-align: center;
  width: 6rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #FooterScrollToTop .FooterScrollToTopButton {
    box-shadow: 0 2px 2px rgba(63, 92, 110, 0.15);
  }
}

@media (min-width: 1025px) {
  #FooterScrollToTop .FooterScrollToTopButton {
    box-shadow: 0 2px 2px rgba(63, 92, 110, 0.15);
  }
}

#FooterScrollToTop .FooterScrollToTopButton .FooterScrollToTopRocket {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  left: 0;
  margin: 0 auto;
  outline: none;
  overflow: visible;
  position: absolute;
  top: 1.5rem;
  width: calc(6rem - 2px);
}

#FooterScrollToTop .FooterScrollToTopButton.canHover:hover #ToTopRocket {
  fill: var(--primary-color);
  animation: rocketShake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite
    alternate;
  transform: translateZ(0);
}

#FooterScrollToTop .FooterScrollToTopButton.canHover:hover #ToTopRocketWindow {
  fill: var(--secondary-color);
  animation: rocketShake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite
    alternate;
  transform: translateZ(0);
}

#FooterScrollToTop .FooterScrollToTopButton #ToTopRocketWindow {
  fill: var(--secondary-color);
}

#FooterScrollToTop .FooterScrollToTopButton.canHover:hover #ToTopRocketFlame {
  fill: rgb(255, 170, 0);
  animation: rocketFlame 0.8s ease-in-out infinite;
  transform: scale(1);
}

#FooterScrollToTop .FooterRocketLaunch,
#FooterScrollToTop .FooterRocketLaunch:hover {
  pointer-events: none;
}

#FooterScrollToTop .FooterRocketLaunch .FooterScrollToTopRocket,
#FooterScrollToTop .FooterRocketLaunch:hover .FooterScrollToTopRocket {
  background-position: 50% -62px;
  transition-property: transform;
  transition-timing-function: ease-in;
  z-index: 50;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}

#FooterScrollToTop .FooterRocketLaunch #ToTopRocket,
#FooterScrollToTop .FooterRocketLaunch:hover #ToTopRocket {
  fill: var(--secondary-color);
}

#FooterScrollToTop .FooterRocketLaunch #ToTopRocketWindow,
#FooterScrollToTop .FooterRocketLaunch:hover #ToTopRocketWindow {
  fill: var(--primary-color);
}

#FooterScrollToTop .FooterRocketLaunch #ToTopRocketFlame,
#FooterScrollToTop .FooterRocketLaunch:hover #ToTopRocketFlame {
  fill: #fa0;
  animation: none;
  transform: scale(1.5, 2);
}

@keyframes rocketShake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(1px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-2px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(2px, 0, 0);
  }
}

@keyframes rocketFlame {
  10%,
  90% {
    transform: scale(0.7, 0.6);
  }

  20%,
  80% {
    transform: scale(1);
  }

  30%,
  50%,
  70% {
    transform: scale(0.6, 0.4);
  }

  40%,
  60% {
    transform: scale(1.1, 1.3);
  }
}

.shakeRocket {
  animation: shakeAnimation 0.1s ease-in-out infinite;
}

.flyRocket {
  animation: flyAnimation 10s ease-in-out;
}

@keyframes shakeAnimation {
  0% {
    margin-left: 0px;
  }

  25% {
    margin-left: 2px;
  }

  75% {
    margin-left: 0px;
  }

  100% {
    margin-left: -2px;
  }
}

@keyframes flyAnimation {
  0% {
    margin-top: 0px;
  }

  2% {
    margin-top: -2px;
  }

  3% {
    margin-top: -4px;
  }

  4% {
    margin-top: -5px;
  }

  100% {
    margin-top: -5px;
  }
}

.animate-shake:hover {
  /* Start the shake animation and make the animation last for 0.5 seconds */
  animation: shake 0.7s;
  /* When the animation is finished, start again */
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }

  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }

  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }

  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }

  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}
