@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap";

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url(/dist/assets/fonts/Roboto-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, input {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
}

html,body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  background: rgba(165, 207, 179, 1);
  color: #e6edf3;
  font-family: "DM Sans", sans-serif !important;
}

h1.restart-title {
  min-width: 500px;
  margin-left: 40px;
  width: 60%;
}

img.flowfactory_logo {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 140px;
  display: block;
  z-index: 20;
  background: #ffffffcf;
  border-radius: 6px;
  padding: 6px;
  border: solid 1px #ffffff;
}

.splash_box {
  background: #ffffffcf;
  color: #333;
  padding: 10px 30px;
  border: solid 1px #f5f5f5;
  border-radius: 20px;
  text-align: center;
  max-width: 100vw;
  margin: 20px;
  z-index: 10;
}

.splash_box_restart {
  background: #ffffffcf;
  color: #333;
  padding: 10px 30px;
  border: solid 1px #f5f5f5;
  border-radius: 20px;
  max-width: 100vw;
  margin: 20px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
}

#counter {
    font-size: 36px;
}

.long_wait {
    color: #8e1e1e;
}

#author {
  display: block;
  text-align: right;
  font-style: italic;
  margin-top: 6px;
}

  .app-shell {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    z-index: 1;
  }

  /* The animated background lives under everything */
  #bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
    filter: saturate(115%);
  }

  /* Optional: blur layer for a softer look (toggle in JS) */
  #blur-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(40px) saturate(110%);
    -webkit-backdrop-filter: blur(40px) saturate(110%);
    pointer-events: none;
    z-index: 0; /* keep under content but above canvas */
  }

  /* Demo loader card */
  .loader-card {
    background: rgba(10, 14, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
  }

  .loader {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.85);
    animation: spin 1.2s linear infinite;
    margin: 0 auto 14px;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .controls {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 10px;
    backdrop-filter: blur(6px);
    z-index: 2;
  }

  .controls button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    color: #e6edf3;
    cursor: pointer;
    transition: background 120ms ease;
  }

  .controls button:hover { background: rgba(255,255,255,0.14); }

.loader-line {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 26px auto 14px;
}

  .loader-line .line {
    position: absolute;
    width: 8px; /* Line width */
    height: 0; /* Start with height 0 */
    top: 0; /* Align lines to the top */
    background: rgb(51,209,107);
    background: linear-gradient(185deg, rgba(51,209,107,1) 0%, rgba(41,157,72,1) 85%, rgba(9,109,45,1) 100%);
    opacity: .2; /* Start hidden */
    animation: moveLine 2s infinite ease-in-out; /* Slower animation */
  }

  .loader-line .line1 {
    left: 10%;
    animation-delay: 0s;
  }

  .loader-line .line2 {
    left: 30%;
    animation-delay: 0.2s;
  }

  .loader-line .line3 {
    left: 50%;
    animation-delay: .4s;
  }

  .loader-line .line4 {
    left: 70%;
    animation-delay: .6s;
  }

  .loader-line .line5 {
    left: 90%;
    animation-delay: .8s;
  }

@keyframes moveLine {
  0% {
    height: 0;
    opacity: .2;
  }

  45% {
    height: 80px;
    opacity: 1;
  }

  55% {
    height: 80px;
    opacity: 1;
  }

  100% {
    height: 0;
    opacity: .2;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
