html, body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  z-index: 100;
  opacity: 1;
  transition: opacity 1s ease-out;

  .content {
    background-color: white;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0.4rem;
    padding: 0.5rem 1rem;
  }

  &.hidden {
    opacity: 0;
  }
}

#image-container {
  overflow: hidden;
  visibility: hidden;
  img {
    max-width: 50px;
    max-height: 50px;
  }
}

body {
  --image-offset: 0px;
}

#current-image, #current-image-background, #next-image, #next-image-background {
  position: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

#next-image, #next-image-background {
  transition: opacity 0.5s ease;
}

#current-image-background, #next-image-background {
  top: -40px;
  left: -40px;
  bottom: -40px;
  right: -40px;
  background-size: cover;
  filter: blur(20px);
}

#current-image, #next-image {
  top: var(--image-offset);
  left: var(--image-offset);
  bottom: var(--image-offset);
  right: var(--image-offset);
  background-size: contain;
  transition: top 10s ease, bottom 10s ease, left 10s ease, right 10s ease;
}

#current-image-background {
  z-index: 1;
}
#current-image {
  z-index: 2;

}
#next-image-background {
  z-index: 3;
}
#next-image {
  z-index: 4;
}
