#journal-page-center-loader {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#journal-page-center-loader > span {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: journal-page-center-loader-spin 720ms linear infinite;
}

html.journal-page-center-loading-visible #journal-page-center-loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 140ms ease-out, visibility 0s linear 0s;
}

html.journal-page-center-loading-finishing #journal-page-center-loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}

@keyframes journal-page-center-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #journal-page-center-loader > span {
    animation-duration: 1.5s;
  }
}
