html,
body {
  margin: 0;
  min-height: 100%;
}

#initial-loading {
  align-items: center;
  background: #f5f8fc;
  color: #083566;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 10000;
}

#initial-loading[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

#initial-loading img {
  border-radius: 22%;
  height: 72px;
  margin-bottom: 16px;
  width: 72px;
}

.loading-track {
  background: #d8e1ec;
  border-radius: 4px;
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  width: 120px;
}

.loading-track span {
  animation: loading-progress 1.4s ease-in-out infinite;
  background: #1673d1;
  border-radius: inherit;
  display: block;
  height: 100%;
  transform-origin: left;
  width: 45%;
}

.font-load-error {
  margin: 20px 24px 12px;
  max-width: 320px;
  text-align: center;
}

.font-load-retry {
  background: #1673d1;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 10px 24px;
}

@keyframes loading-progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(75%); }
  100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  #initial-loading { transition: none; }
  .loading-track span { animation: none; transform: none; }
}
