/* Covers the page while the app and its language load, so unstyled content never shows. */
#boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

html[data-theme="dark"] #boot {
  background: #1a1a1e;
}

html[data-theme="light"] #boot {
  background: #ffffff;
}

html.booting #boot {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease;
}

#boot span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(88, 101, 242, 0.22);
  border-top-color: #5865f2;
  animation: boot-spin 0.7s linear infinite;
}

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