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

.animated.add_deposit {
  @include handWithCoinMixin;
  @include blackBackgroundMixin;

  #add-deposit-main-container {
    animation-name: 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-add-deposit-jar-background {
    scale: 0;
    animation-name: 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;
  }

  #use-add-deposit-jar-bottom,
  #use-add-deposit-jar-money,
  #use-add-deposit-jar-top {
    scale: 0;
    animation-name: 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-add-deposit.d-none {
    display: block;
  }
}

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

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

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