@import './black-background';
@import './hand_with_coin';

$main-animation-delay: 5s;
$building-duration: 0.5s;
$coin-animation-duration: 1s;
$delay-before-last-disapearing: 1s;

@mixin rentMixin {
  .animated.rent {
    @include handWithCoinMixin;
    @include blackBackgroundMixin;

    #rent_building,
    #rent_buiding_top {
      animation-name: building_animation;
      animation-delay: $main-animation-delay;
      animation-duration: $building-duration;
      animation-timing-function: cubic-bezier(0.84, 1.84, 0.59, 0.72);
      animation-iteration-count: 1;
      animation-fill-mode: forwards;
      scale: 0;
      transform-origin: 4008px 6890px;
    }

    #main-container_1_ {
      animation-name: main_container_animation;
      animation-delay: $main-animation-delay + $building-duration + $coin-animation-duration +
        $delay-before-last-disapearing;
      animation-duration: 0.5s;
      animation-iteration-count: 1;
      animation-fill-mode: forwards;
    }

    use.use-rent.d-none {
      display: block;
    }
  }

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

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