:root {
  color-scheme: only light;
}

* {
  touch-action: manipulation;
}

@font-face {
  font-family: "Brother";
  src: url("/fonts/BROTHER-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

* {
  font-family: "Poppins", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-callout: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Brother", sans-serif;
}

html {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  background: #ccebfc;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
}

body {
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media all and (display-mode: standalone) {
  body {
    height: 100vh;
  }
}

img {
  -webkit-user-drag: none;
}

::-webkit-scrollbar {
  display: none;
}

@keyframes rightCloud {
  from {
    transform: translateX(30%);
  }
  50% {
    transform: translateX(40%);
  }
  to {
    transform: translateX(30%);
  }
}

@keyframes leftCloud {
  from {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(-40%);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes bottomCloud {
  from {
    transform: translateY(0%);
  }
  50% {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0%);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(0.8);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes pulse {
  from {
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
  to {
    opacity: 0.2;
  }
}

@keyframes bulge {
  from {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

#splash-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  background: #ccebfc;

  opacity: 1;
  transition: opacity 0.7s ease-out;
  transition-delay: 0.3s;
  @starting-style {
    opacity: 0;
  }

  #loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2rem;
    height: 100%;
    width: 100%;

    img {
      animation: bulge 3s ease-in-out infinite;
    }

    h1 {
      color: #94b3c1;
      font-size: 1rem;
      font-weight: 600;
      font-family: sans-serif;
      text-transform: uppercase;
      animation: pulse 3s ease-in-out infinite;
    }
  }

  #loading #sun-burst {
    max-width: 200vmax;
    width: 200vmax;
    position: absolute;
    z-index: -1;
    animation: rotate 30s linear infinite;
  }

  #intro {
    display: none;

    flex-direction: column;
    align-items: center;
    gap: 0.5rem;

    #logo {
      width: 200px;
    }

    p {
      max-width: 30ch;
      text-align: center;
      color: #508095;
    }
/* 
    button {
      background: #292929;
      color: #fdfdfd;
      border-radius: 100px;
      padding: 1rem 3rem;
      font-size: 1rem;
      font-weight: 600;
      border: none;
      display: flex;
      align-items: center;
      gap: 1rem;
      max-width: 344px;
    } */
    a, button {
      display: flex;
      align-items: center;
      gap: 1rem;
      width: 100%;
      max-width: 344px;
      border-radius: 40px;
      background: #292929;
      color: #fdfdfd;
      padding: 0.5rem 1.25rem;
      text-decoration: none;
      box-sizing: border-box;
      font-size: 1rem;
      font-weight: 600;
      border: none;
    }
    .app-text {
      display: inline-flex;
      flex-direction: column;
      line-height: 1;
    }
  }

  #bottom-cloud {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-width: 800px;
    z-index: -1;
    animation: bottomCloud 12s ease-in-out infinite;
  }

  #right-cloud {
    position: absolute;
    width: 30vw;
    right: 0;
    bottom: 70vh;
    transform: translateX(30%);
    animation: rightCloud 8s ease-in-out infinite;
  }

  #left-cloud {
    position: absolute;
    width: 30vw;
    min-width: 150px;
    left: 0;
    bottom: 75vh;
    transform: translateX(-40%);
    animation: leftCloud 10s ease-in-out infinite;
  }
}
.install-instruction {
  display: inline-block;
  line-height: 35px;
  width: 100%;
  text-align: center;
  color: #004665;
}

#add-to-home-screen {
  display: none;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  margin-bottom: 5rem;

  #app-icon {
    width: 150px;
    border-radius: 24px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
    animation: bulge 2s ease-in-out infinite;
  }

  h1 {
    position: relative;
    color: #004665;
    line-height: 0;
    margin: 0px;
    font-size: 2.5rem;
  }

  p {
    position: relative;
    text-align: center;
    color: #508095;
    text-align: center;
    line-height: 2.5;
    margin: 0;
  }

  .share-button {
    position: relative;
    background: #f9e28a;
    border-radius: 4px;
    display: inline-block;
    padding: 0px 6px;
    margin: 0 0.25rem;
    img {
      transform: translateY(5px);
    }
  }

  .more-icon-wrapper {
    display: inline-block;
    margin: 0 0.25rem;
  }

  .more-icon {
    width: 32px;
    vertical-align: middle;
  }

  #add-to-homescreen-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #004665;
    background: #f9e28a;
    padding: 8px 12px;
    margin: 0 0.25rem;
    border-radius: 4px;
    line-height: 1;
  }

  #qr-code {
    width: 200px;
    border-radius: 1rem;
  }
}

#open-on-phone {
  display: none;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  #qr-code {
    width: 200px;
    border-radius: 1rem;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5);
  }

  p {
    position: relative;
    max-width: 30ch;
    text-align: center;
    color: #508095;
  }

  #copy-link {
    position: relative;
    background: #f9e28a;
    color: #004665;
    border-radius: 100px;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
  }
}

#install-instructions {
  position: relative;
  text-align: center;
  color: #508095;
  text-align: center;
  line-height: 2.4;
  margin: 0;
}

.text-container {
  height: 1.5em;
  overflow: hidden;
  width: fit-content;
  position: relative;
  display: inline-block;
}

.text-content {
  animation: scrollText 5s ease-in-out infinite;
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  transform: translateX(-50%);
  margin: 0 6px;
}

.text {
  height: 1.5em;
  line-height: 1.5em;
  font-size: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@keyframes scrollText {
  0% {
    transform: translateY(0.4em);
  }
  33% {
    transform: translateY(-1.2em);
  }
  66% {
    transform: translateY(-2.7em);
  }
  100% {
    transform: translateY(0.4em);
  }
}
.browser-icons {
  display: inline-flex;
  gap: 8px;
  vertical-align: middle;
  margin-bottom: 4px;
}
