/*
 Copyright 2023 tookhats technologies,
 Ez egy tookhats script.
 Minden jog fenntartva.
*/

:root {
  --slide-duration: 0.6s;
  --wordmark-fade-duration: 0.41s;
  --compose-delay: 0.09s;
  --fingerprint-center-x: 518px;
  --app-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}

html.intro-page-active,
html.intro-page-active body {
  height: var(--app-height);
  min-height: var(--app-height);
  max-height: var(--app-height);
  overflow: hidden;
  overscroll-behavior: none;
}

.intro-page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  max-height: var(--app-height);
  margin: 0;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  overflow: hidden;
  box-sizing: border-box;
  background: #e2e8f0;
}

.logo {
  /* width: min(68vw, 220px); */
  width: min(72vw, 300px);
  height: auto;
  overflow: visible;
  transform: translateY(-2vh);
}

@media (min-width: 640px) {
  .logo {
    width: min(80vw, 300px);
  }
}

.intro-fingerprint {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translateX(var(--fingerprint-center-x));
}

.intro-fingerprint-fill {
  fill: var(--brand-color);
  opacity: 0;
}

.intro-fingerprint-strokes path {
  stroke: var(--brand-color);
}

.logo.is-composed .intro-fingerprint {
  animation: fingerprintSlide var(--slide-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--compose-delay);
}

.intro-wordmark {
  fill: #181818;
  opacity: 0;
}

.logo.is-composed .intro-wordmark {
  animation: wordmarkFade var(--wordmark-fade-duration) ease forwards;
  animation-delay: var(--compose-delay);
}

.logo.is-reduced .intro-fingerprint {
  transform: none;
  animation: none;
}

.logo.is-reduced .intro-fingerprint-fill {
  opacity: 1;
}

.logo.is-reduced .intro-fingerprint-strokes {
  display: none;
}

.logo.is-reduced .intro-wordmark {
  opacity: 1;
  animation: none;
}

@keyframes fingerprintSlide {
  from {
    transform: translateX(var(--fingerprint-center-x));
  }
  to {
    transform: translateX(0);
  }
}

@keyframes wordmarkFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
