/**
 * @NOTE - This CSS is included in all pages (main app, failed-to-load-app.html,
 * no-storage.html) so ensure that there is no conflict with styles used in the
 * main app. Use .initial-x namespacing on class names.
 */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

img {
  border: none;
}

.initial-wrapper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.initial-content {
  width: 800px;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
}

.initial-overlay {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  text-align: center;
  padding: 30px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

noscript .initial-overlay {
  background-color: #c7d306;
  z-index: 2;
}

.initial-warning {
  text-align: center;
  margin-bottom: 1rem;
}

.initial-spinner {
  animation: initial-spinner 1.5s linear infinite;
  fill: transparent;
  filter: none;
  stroke: var(--theme-ui-colors-accent, #c7d306);
  stroke-width: 4px;
  pointer-events: none;
}

.initial-spinner:not(.hidden) ~ * {
  display: none;
}

@keyframes initial-spinner {
  0% {
    stroke-dasharray: 0 100;
    stroke-dashoffset: 25;
  }
  25% {
    stroke-dasharray: 75 25;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 0 100;
    stroke-dashoffset: -125;
  }
  75% {
    stroke-dasharray: 75 25;
    stroke-dashoffset: -150;
  }
  100% {
    stroke-dasharray: 0 100;
    stroke-dashoffset: -275;
  }
}
