/* These styles are applied before the app is fully booted. They are used to show a spinner while the app is loading. */

.is-booting {
  background-color: #eceff1;
}

/* Spinner styles */

.spinner {
  --bubble-size: 0.375rem;
  --bubble-spacing: 0.125rem;
  margin: 0;
  width: calc(var(--bubble-size) * 3 + var(--bubble-spacing) * 2);
  height: var(--bubble-size);
  line-height: var(--bubble-size);
  text-align: center;
  box-sizing: content-box;
  display: flex;
  justify-content: space-between;
}

.spinner > div {
  width: var(--bubble-size);
  height: var(--bubble-size);
  background-color: #5a50ff;

  border-radius: 100%;
  display: inline-block;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.spinner--white {
  background-color: transparent;
}

.spinner--white > div {
  background-color: #ffffff;
}

.spinner--md {
  --bubble-size: 0.5rem;
  --bubble-spacing: 0.25rem;
  width: calc(var(--bubble-size) * 3 + var(--bubble-spacing) * 2);
  height: var(--bubble-size);
}

.spinner--lg {
  --bubble-size: 0.75rem;
  --bubble-spacing: 0.375rem;
}

.spinner:focus {
  outline: none;
  /* box-shadow: 0 0 0 3px #5a50ff; */
}
.spinner--displaceButton {
  display: inline-flex;
  padding: 1rem 0;
}

.spinner--with-progress {
  border: 1px solid #5a50ff;
  border-radius: 2rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.spinner-progress {
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: #c2caff;
}

.bootSpinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.is-booting .bootSpinner {
  display: block;
}
