.modal {
  position: fixed;
  margin: 0 auto;
  height: auto;
  background: var(--bg-color);
  border-width: 8px;
  border-image: url("/background/frame.png") 22 fill / auto space;
  padding: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  & button {
    font-size: 1.4rem;
    margin: 0 11px;
  }
  & h2 {
    margin-top: 0;
  }
  .loadingImage {
    position: relative;
    width: 240px;
    height: 240px;
  }
  .loadingHamster {
    position: absolute;
    background-image: url("/loader/hamster.png");
    width: 240px;
    height: 240px;
    animation: jump 0.2s ease infinite;
  }
  .loadingHamsterWheel {
    position: absolute;
    background-image: url("/loader/hamster_wheel.png");
    width: 240px;
    height: 240px;
    animation: spin 3.5s linear infinite;
  }
  .loadingHamsterWheelStand {
    position: absolute;
    background-image: url("/loader/hamster_stand.png");
    width: 240px;
    height: 240px;
  }
  .loadingText {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes jump {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, -10px);
  }
}
