* {
    margin: 0;
    padding: 0;
}

#atm {
    background-image: url(../img/atm.png);
    width: 567px;
    height: 378px;
    position: relative;
    overflow: hidden;
}

#card-clip {
    width: 321px;
    height: 80px;
    transform: rotate(-4deg);
    position: absolute;
    top: 107px;
    left: 152px;
    overflow: hidden;
}

#card {
    background-image: url(../img/card.png);
    background-repeat: no-repeat;
    width: 321px;
    height: 300px;
    transform: rotate(4deg);
    top: -10px;
    left: 0px;
    position: absolute;
    animation: card-move 7s infinite;
    transform-origin: top;
}

@keyframes card-move {

    40% {
        transform: translate(0, 0) scaleY(1.2) rotate(4deg);
    }

    45% {
        transform: translate(0, 0) skewY(0deg) rotate(4deg);
    }

    70% {
        transform: translate(160px, -70px) skewY(2deg) rotate(0deg);
    }

    75% {
        transform: translate(160px, -70px) skewY(2deg) rotate(0deg);
    }

    80% {
        transform: translate(160px, -70px) skewY(2deg) rotate(0deg);
    }
}

#schaduw {
    background-image: url(../img/schaduw.png);
    width: 250px;
    height: 70px;
    position: absolute;
    right: 64px;
    top: 68px
}

#guy {
    background-image: url(../img/guy2.png);
    width: 73px;
    height: 143px;
    position: absolute;
    top: -143px;
    left: 240px;
    animation: guy-fall 7s infinite;
    opacity: 1;
    transform-origin: 20% 0;
}

@keyframes guy-fall {

    9% {
        transform: translate(0px, 300px);
    }

    39% {
        transform: translate(0px, 305px);
    }

    46% {
        transform: translate(0px, 294px);
    }

    57% {
        transform: translate(80px, 247px) rotate(10deg);
    }

    58% {
        transform: translate(80px, 247px) rotate(5deg);
    }

    70% {
        transform: translate(80px, 568px);
        opacity: 1;
    }

    71% {
        transform: translate(80px, 568px);
        opacity: 0;
    }

    72% {
        transform: translate(0px, -143px);
        opacity: 0;
    }

}

#leg-1 {
    background-image: url(../img/leg-left.png);
    width: 25px;
    height: 50px;
    top: 93px;
    left: 43px;
    position: absolute;
    animation: 0.5s infinite leg1-rotate;
    transform-origin: 20% 10%;
}

@keyframes leg1-rotate {
    60% {
        transform: rotate(25deg);
    }
}

#leg-2 {
    position: absolute;
    height: 60px;
    width: 40px;
    top: 77px;
    left: 33px;
    animation: 0.5s infinite leg-2-rotate;
    transform-origin: 10% 10%;
}

@keyframes leg-2-rotate {
    50% {
        transform: rotate(-30deg);
    }
}

#leg-2a {
    background-image: url(../img/leg-right1.png);
    width: 22px;
    height: 35px;
    position: absolute;
}

#leg-2b {
    background-image: url(../img/leg-right2.png);
    width: 31px;
    height: 38px;
    position: absolute;
    left: -12px;
    top: 20px;
    animation: 0.5s infinite leg-2b-rotate;
    transform-origin: 80% 20%;
}

@keyframes leg-2b-rotate {
    50% {
        transform: rotate(30deg);
    }
}
