﻿@charset "utf-8";

/*.leaf {
    position: absolute;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}*/

    .leaf span {
        position: absolute;
        list-style: none;
        top: -50px;
        /*
        background: #47ff76;
        border-radius: 0% 70%;
        */
        background-image: url('../img/leaf01.svg');
        background-repeat: no-repeat;
    }


@keyframes fall {
    to {
        top: 120%;
    }
}

@keyframes sway1 {
    from {
        /*transform: translateX(0px) rotate(0deg);*/
        transform: translateX(0px) rotateX(0) rotateY(0);
    }

    to {
        /*transform: translateX(200px) rotate(-45deg);*/
        transform: translateX(200px) rotateX(180deg) rotateY(360deg);
    }
}

@keyframes sway2 {
    from {
        /*transform: translateX(200px) rotate(-45deg);*/
        transform: translateX(200px) rotateX(180deg) rotateY(360deg);
    }

    to {
        /*transform: translateX(0px) rotate(0deg);*/
        transform: translateX(0px) rotateX(0) rotateY(0);
    }
}

.leaf span:nth-child(1) {
    left: 0%;
    top: -60px;
    width: 48px;
    height: 30px;
    /*
    width: 24px;
    height: 15px;
    background-color: #ffbf00;
    */
    animation: fall 10s linear infinite, sway1 3s ease-in-out infinite alternate;
    animation-delay: 2s;
    background-image: url('../img/leaf02.svg');
    background-repeat: no-repeat;
}

.leaf span:nth-child(2) {
    left: 5%;
    top: -70px;
    width: 26px;
    height:18px;
    /*
    width: 13px;
    height: 9px;
    background-color: #009926;
    */
    animation: fall 15s linear infinite, sway1 2s ease-in-out infinite alternate;
    animation-delay: 8s;
    background-image: url('../img/leaf03.svg');
    background-repeat: no-repeat;
}

.leaf span:nth-child(3) {
    left: 15%;
    top: -50px;
    width: 32px;
    height: 20px;
    /*
    width: 16px;
    height: 10px;
    background-color: #c2704e;
    */
    animation: fall 9s linear infinite, sway1 3.5s ease-in-out infinite alternate;
    animation-delay: 13s;
    background-image: url('../img/leaf01.svg');
    background-repeat: no-repeat;
}

.leaf span:nth-child(4) {
    left: 30%;
    top: -70px;
    width: 32px;
    height: 20px;
    /*
    width: 16px;
    height: 10px;
    background-color: #ffbf00;
    */
    animation: fall 8s linear infinite, sway2 4s ease-in-out infinite alternate;
    animation-delay: 7s;
    background-image: url('../img/leaf02.svg');
    background-repeat: no-repeat;
}

.leaf span:nth-child(5) {
    left: 40%;
    top: -60px;
    width: 32px;
    height: 20px;
    /*
    width: 16px;
    height: 10px;
    */
    animation: fall 10s linear infinite, sway1 4s ease-in-out infinite alternate;
    animation-delay: 0s;
}

.leaf span:nth-child(6) {
    left: 55%;
    top: -50px;
    width: 48px;
    height: 30px;
    /*
    width: 24px;
    height: 15px;
    background-color: #009926;
    */
    animation: fall 11s linear infinite, sway2 3s ease-in-out infinite alternate;
    animation-delay: 3s;
    background-image: url('../img/leaf03.svg');
    background-repeat: no-repeat;
}

.leaf span:nth-child(7) {
    left: 65%;
    top: -40px;
    width: 32px;
    height: 20px;
   /*
    width: 16px;
    height: 10px;
    */
    animation: fall 7s linear infinite, sway2 3.5s ease-in-out infinite alternate;
    animation-delay: 7s;
}

.leaf span:nth-child(8) {
    left: 50%;
    top: -60px;
    width: 26px;
    height:18px;
    /*
    width: 13px;
    height: 9px;
    background-color: #c2704e;
    */
    animation: fall 7s linear infinite, sway1 3s ease-in-out infinite alternate;
    animation-delay: 3s;
    background-image: url('../img/leaf01.svg');
    background-repeat: no-repeat;
}

.leaf span:nth-child(9) {
    left: 80%;
    top: -70px;
    width: 32px;
    height: 20px;
    /*
    width: 16px;
    height: 10px;
    */
    animation: fall 10s linear infinite, sway2 4s ease-in-out infinite alternate;
    animation-delay: 4s;
}

/*EOF*/
