
/* leaf animations */

#leaves {position:fixed;top:-50px;width:100%;text-align: center;z-index: 500;}

#leaves i {
    display: inline-block;
    background:#d8de26;
    transform: skew(40deg，10deg);
    border-radius: 5px 3px 5px 3px;
    z-index: 1;
    -webkit-animation: falling 5s 0s infinite;
}

#leaves i:nth-of-type(2n) { -webkit-animation: falling2 3s 0s infinite; }
#leaves i:nth-of-type(3n) { -webkit-animation: falling3 4s 0s infinite; }


#leaves i:after {
  content: '';
  height: 125px;
  width: 10px;
  display: block;
  position: absolute;
  left: 85px;
  border-radius:50%;
}


#leaves i:nth-of-type(n)    { height:23px; width:30px; }
#leaves i:nth-of-type(n):before { width:7px; height:5px; top:17px; right:1px; }
#leaves i:nth-of-type(n):after { width:2px; height:17px; left: 12px; top:0px; }

#leaves i:nth-of-type(2n+1)    { height:11px; width:16px; }
#leaves i:nth-of-type(2n+1):before { width:4px; height:3px; top:7px; right:0px; }
#leaves i:nth-of-type(2n+1):after { width:2px; height:6px; left: 5px; top:0px; }

#leaves i:nth-of-type(3n+2)  { height:17px; width:23px; }
#leaves i:nth-of-type(3n+2):before  { height:4px; width:4px; top:12px; right:0px; }
#leaves i:nth-of-type(3n+2):after  { height:10px; width:2px; top:0px; left:8px; }

#leaves i:nth-of-type(n)   { -webkit-animation-delay: 0.1s;}
#leaves i:nth-of-type(2n)  { -webkit-animation-delay: 1.9s;}
#leaves i:nth-of-type(3n)  { -webkit-animation-delay: 1.3s;}
#leaves i:nth-of-type(4n)  { -webkit-animation-delay: 4.4s;}
#leaves i:nth-of-type(5n)  { -webkit-animation-delay: 0.5s;  }
#leaves i:nth-of-type(6n)  { -webkit-animation-delay: 1.9s;}
#leaves i:nth-of-type(7n)  { -webkit-animation-delay: 2.8s;}
#leaves i:nth-of-type(8n)  { -webkit-animation-delay: 1.5s;}
#leaves i:nth-of-type(9n)  { -webkit-animation-delay: 2.3s;}
#leaves i:nth-of-type(10n) { -webkit-animation-delay: 2.5s;}
#leaves i:nth-of-type(11n) { -webkit-animation-delay: 0.2s;}
#leaves i:nth-of-type(12n) { -webkit-animation-delay: 3.1s;}
#leaves i:nth-of-type(13n) { -webkit-animation-delay: 1s;  }
#leaves i:nth-of-type(14n) { -webkit-animation-delay: 2.7s;}
#leaves i:nth-of-type(15n) { -webkit-animation-delay: 3s;  }

#leaves i:nth-of-type(n)    { background: #ffbe00; }
#leaves i:nth-of-type(2n+2)  { background: #ff484f; }
#leaves i:nth-of-type(4n+1)  { background: #d8de26; }

#leaves i:nth-of-type(n)    { opacity: .7;}
#leaves i:nth-of-type(3n+1)  { opacity: .5;}
#leaves i:nth-of-type(3n+2)  { opacity: .3;}




#leaves i:nth-of-type(n) { -webkit-animation-timing-function:ease-in-out;}

@-webkit-keyframes falling {
    
    0% {
        -webkit-transform:
            translate3d(300,0,0)
            rotate(0deg);
		
    }
    
    100% {
        -webkit-transform:
            translate3d(-250px,700px,0)
            rotate(90deg);
        opacity: 0;

    }
}

@-webkit-keyframes falling3 {
     0% {
        -webkit-transform:
            translate3d(0,0,0)
            rotate(-20deg);
    }
    
    100% {
        -webkit-transform:
            translate3d(-130px,640px,0)
            rotate(-70deg);
		
        opacity: 0;
    }
}

@-webkit-keyframes falling2 {
     0% {
        -webkit-transform:
            translate3d(0,0,0)
            rotate(90deg);
    }
    
    100% {
        -webkit-transform:
            translate3d(-300px,680px,0)
            rotate(0deg);
	
        opacity: 0;
    }
}