:root {
  --splash-screen-bg-light: #ffffff;
  --splash-screen-bg-dark: #1c1e22;
  --splash-screen-loader-color-light: #6ACBD4;
  --splash-screen-loader-color-dark: #6ACBD4;
}

html {
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--splash-screen-bg-light);
}

.splash {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

.splash_image {
  width: 45%;
}

.splash-loader {
  position: absolute;
  bottom: 56px;
  margin-inline-start: -8px;
  width: 66px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.splash-loader div {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--splash-screen-loader-color-light);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.splash-loader div:nth-child(1) {
  left: 8px;
  animation: splash-loader1 0.6s infinite;
}

.splash-loader div:nth-child(2) {
  left: 8px;
  animation: splash-loader2 0.6s infinite;
}

.splash-loader div:nth-child(3) {
  left: 32px;
  animation: splash-loader2 0.6s infinite;
}

.splash-loader div:nth-child(4) {
  left: 56px;
  animation: splash-loader3 0.6s infinite;
}

@keyframes splash-loader1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes splash-loader3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes splash-loader2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

@media (prefers-color-scheme: dark) {
    body {
      background-color: var(--splash-screen-bg-dark);
    }

    .splash-loader div {
      background-color: var(--splash-screen-loader-color-dark);
    }
}
