/* Prevent flash of unstyled content before the app bootstraps. */
html {
  visibility: hidden;
}

html.ready {
  visibility: visible;
}

/* Loading skeleton while React boots. */
#root:empty::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
}

#root:empty::after {
  content: "";
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid #ff980033;
  border-top-color: #ff9800;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10000;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  #root:empty::before {
    background: #111;
  }
}