/*
This is loaded in the head of index.html to show a loading spinner while all the
main JS and css is being downloaded.

TODO: move this into its own webpack bundle so it's not totally static
*/

html.app-loading,
html.app-loading body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}
html.app-loading #root {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.loading-spinner-initial {
  box-sizing: border-box;
  display: block;
  position: relative;
  text-indent: -9999em;
  border-top: 4px solid rgba(0,0,0,0.1);
  border-right: 4px solid rgba(0,0,0,0.1);
  border-bottom: 4px solid rgba(0,0,0,0.1);
  border-left: 4px solid #fb7578;
  flex-shrink: 0;
  flex-grow: 0;

  border-radius: 50%;
  width: 28px;
  height: 28px;

  margin: 0 auto;

  transform: translateZ(0);
  animation: appLoadingSpinner 1.2s infinite linear;
  vertical-align: middle;
  align-self: center;
  justify-self: center;
}

@keyframes appLoadingSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
