@import './black-background';

$duration: 0.5s;
$coin-animation-duration: 1s;

@mixin handWithCoinMixin {
  #hand_with_coin {
    animation-name: hand_with_coin_animation;
    animation-delay: var(--animation-delay, 0s);
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.84, 1.84, 0.59, 0.72);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    rotate: -70deg;
    transform-origin: -1144px 1601px;
  }

  #hand_with_coin_coin {
    animation-name: coin_animation;
    animation-delay: calc(var(--animation-delay, 0s) + 1s);
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  #hand_with_coin_finger_1_1_ {
    animation-name: finger_1_animation;
    animation-delay: calc(var(--animation-delay, 0s) + 0.8s);
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    transform-origin: 4214px 2931px;
  }

  #hand_with_coin_finger_2_1_ {
    animation-name: finger_2_animation;
    animation-delay: calc(var(--animation-delay, 0s) + 0.8s);
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    transform-origin: 3938px 3016px;
  }

  @keyframes hand_with_coin_animation {
    0% {
      rotate: -70deg;
    }
    100% {
      rotate: 0deg;
    }
  }

  @keyframes coin_animation {
    0% {
      translate: 0 0;
    }
    100% {
      translate: 0 2000px;
    }
  }

  @keyframes finger_1_animation {
    0% {
      rotate: 0;
    }
    100% {
      rotate: -10deg;
    }
  }

  @keyframes finger_2_animation {
    0% {
      rotate: 0;
    }
    100% {
      rotate: 10deg;
    }
  }
}
