﻿@-webkit-keyframes leafs-fall {
    0% {
        top: -10%
    }
    100% {
        top: 100%
    }
}

@-webkit-keyframes leafs-shake {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    50% {
        -webkit-transform: translateX(80px);
        transform: translateX(80px)
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@keyframes leafs-fall {
    0% {
        top: -10%
    }
    100% {
        top: 100%
    }
}

@keyframes leafs-shake {
    0% {
        transform: translateX(0)
    }
    50% {
        transform: translateX(80px)
    }
    100% {
        transform: translateX(0)
    }
}

.leaf {
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 1px #000;
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-animation-name: leafs-fall, leafs-shake;
    -webkit-animation-duration: 15s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: leafs-fall, leafs-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
}

.leaf:nth-of-type(0) {
    left: 90%;
    -webkit-animation-delay: 12s, 12s;
    animation-delay: 10s, 10s
}

.leaf:nth-of-type(1) {
    left: 60%;
    -webkit-animation-delay: 3s, 3s;
    animation-delay: 3s, 6s
}

.leaf:nth-of-type(2) {
    left: 25%;
    -webkit-animation-delay: 6s, .5s;
    animation-delay: 6s, .5s
}

.leaf:nth-of-type(3) {
    left: 40%;
    -webkit-animation-delay: 10s, 8s;
    animation-delay: 1s, 1s
}

.leaf:nth-of-type(4) {
    left: 80%;
    -webkit-animation-delay: 12s, .11s;
    animation-delay: 2s, .3s
}