@import '../../scss/cells/mixins/black-background';

.animated.remove_deposit {
  @include blackBackgroundMixin;

  #remove-deposit-main-container {
    animation-name: remove_deposit_main_container_animation;
    animation-delay: calc(var(--animation-delay, 0s) + 2.75s);
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  #use-remove-deposit-jar-background {
    scale: 0;
    animation-name: remove_deposit_background_circle_animation;
    animation-timing-function: linear;
    animation-delay: var(--animation-delay, 0s);
    animation-duration: 3s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transform-origin: center center;
  }

  #jar-remove-deposit-with-hands {
    animation-name: remove_deposit_jar_with_hand_animation;
    animation-timing-function: ease-in-out;
    animation-delay: var(--animation-delay, 0s);
    animation-duration: 3s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transform-origin: -3000px 3000px;
  }

  #use-remove-deposit-coin-2 {
    scale: 0;
    animation-name: remove_deposit_coin_animation;
    animation-timing-function: linear;
    animation-delay: calc(var(--animation-delay, 0s) + 1.5s);
    animation-duration: 0.7s;
    animation-iteration-count: 1;
  }

  #use-remove-deposit-jar-money {
    scale: 0;
    animation-name: remove_deposit_jar_appearing_animation;
    animation-timing-function: cubic-bezier(0.84, 1.84, 0.59, 0.72);
    animation-delay: var(--animation-delay, 0s);
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transform-origin: center 7000px;
  }

  use.use-remove-deposit.d-none {
    display: block;
  }
}

@keyframes remove_deposit_main_container_animation {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes remove_deposit_background_circle_animation {
  0% {
    scale: 0;
  }
  10% {
    scale: 1.1;
  }
  50% {
    scale: 1;
  }
  90% {
    scale: 1.1;
  }
  100% {
    scale: 0;
  }
}

@keyframes remove_deposit_jar_appearing_animation {
  0% {
    scale: 0;
  }
  100% {
    scale: 1;
  }
}

@keyframes remove_deposit_jar_with_hand_animation {
  0% {
    rotate: -90deg;
  }
  10% {
    rotate: 0deg;
  }
  15% {
    rotate: -2deg;
  }
  20% {
    rotate: 2deg;
  }
  25% {
    rotate: -2deg;
  }
  30% {
    rotate: 2deg;
  }
  35% {
    rotate: -2deg;
  }
  40% {
    rotate: 2deg;
  }
  45% {
    rotate: -2deg;
  }
  50% {
    rotate: 2deg;
  }
  55% {
    rotate: -2deg;
  }
  60% {
    rotate: 2deg;
  }
  80% {
    rotate: 2deg;
  }
  100% {
    rotate: -10deg;
  }
}

@keyframes remove_deposit_coin_animation {
  0% {
    scale: 0.07;
    translate: 3900px 2900px;
  }
  100% {
    scale: 0.07;
    translate: 4100px 6000px;
  }
}
