/* Keep in sync with styles/_north-splash-screen.scss */
html,
body {
  margin: 0;
  min-height: 100%;
}

:root {
  --north-splash-bg: #233359;
  --north-splash-fg: #ffffff;
}

lib-north-splash-screen,
.north-splash-screen {
  --north-splash-bg: #233359;
  --north-splash-fg: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100%;
  margin: 0;
  background-color: var(--north-splash-bg);
  color: var(--north-splash-fg);
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

lib-north-splash-screen img,
.north-splash-screen img {
  width: auto;
  max-width: 80vw;
  max-height: 350px;
  height: auto;
}

lib-north-splash-screen .spinner,
.north-splash-screen .spinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  width: 56px;
}

lib-north-splash-screen .spinner > div,
.north-splash-screen .spinner > div {
  width: 12px;
  height: 12px;
  background-color: currentColor;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: north-splash-bouncedelay 1s infinite ease-in-out both;
  animation: north-splash-bouncedelay 1s infinite ease-in-out both;
}

lib-north-splash-screen .spinner .bounce1,
.north-splash-screen .spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

lib-north-splash-screen .spinner .bounce2,
.north-splash-screen .spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes north-splash-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes north-splash-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

body:not(.north-splash-screen-hidden) {
  overflow: hidden;
}

lib-north-splash-screen[hidden],
.north-splash-screen[hidden],
body.north-splash-screen-hidden lib-north-splash-screen,
body.north-splash-screen-hidden .north-splash-screen {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}
