﻿@-webkit-keyframes stars-fall {

    0% {
        top: -10%
    }

    100% {
        top: 100%
    }
}

@-webkit-keyframes stars-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 stars-fall {

    0% {
        top: -10%
    }

    100% {
        top: 100%
    }
}

@keyframes stars-shake {

    0% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(80px)
    }

    100% {
        transform: translateX(0)
    }
}

.star {
    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: stars-fall, stars-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: stars-fall, stars-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
}

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

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

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

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

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

    .star:nth-of-type(5) {
        left: 90%;
        -webkit-animation-delay: 7s, .12s;
        animation-delay: 2s, .3s
    }

    .star:nth-of-type(6) {
        left: 20%;
        -webkit-animation-delay: 4s, .10s;
        animation-delay: 8s, .7s
    }