
/* ==========================================
   FIMITECH WHITE FINGER GUIDE
   File: finger-guide.css
========================================== */

#fimiCursorGuide {
  position: fixed;
  top: 0;
  left: 0;
  width: 54px;
  height: 65px;
  z-index: 9990;

  display: none;
  pointer-events: none;

  opacity: 0;
  transform: translate3d(-100px, -100px, 0);

  transition:
    transform 1.1s cubic-bezier(.45, 0, .2, 1),
    opacity .3s ease;

  will-change: transform, opacity;
}

#fimiCursorGuide.fimi-guide-active {
  display: block;
  opacity: 1;
}

/* White hand */

.fimi-cursor-hand {
  position: relative;
  width: 52px;
  height: 60px;

  filter: drop-shadow(0 4px 5px rgba(0,0,0,.28));

  transform-origin: 18px 10px;
}

.fimi-cursor-hand svg {
  display: block;
  width: 52px;
  height: 60px;
}

/* Finger tap */

#fimiCursorGuide.fimi-guide-tapping
.fimi-cursor-hand {
  animation: fimiFingerTap .5s ease-in-out 2;
}

@keyframes fimiFingerTap {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(.88) rotate(-8deg);
  }
}

/* Tap ripple */

.fimi-tap-ripple {
  position: absolute;
  top: 3px;
  left: 16px;

  width: 15px;
  height: 15px;

  border: 2px solid #0a84ff;
  border-radius: 50%;

  opacity: 0;
  transform: scale(.3);
}

#fimiCursorGuide.fimi-guide-tapping
.fimi-tap-ripple {
  animation: fimiTapRipple .65s ease-out 2;
}

@keyframes fimiTapRipple {
  0% {
    opacity: .9;
    transform: scale(.3);
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* Mobile finger */

@media (max-width: 600px) {
  #fimiCursorGuide {
    scale: .8;
    transform-origin: top left;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  #fimiCursorGuide {
    display: none !important;
  }
}
