body {
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
    background-position: 0;
    background-size: contain;
    display: flex;
    justify-content: space-between;
    height: 100vh;
    perspective: 800px;
    overflow: hidden;
    position: relative;
}

.gate-left, .gate-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-size: cover;
    z-index: 10;
    transition: transform 3s ease-in-out;
}

.gate-left {
    left: 0;
    background-image: url('img/gate-left.jpg');
}

.gate-right {
    right: 0;
    background-image: url('img/gate-right.jpg');
}

body:hover .gate-left {
    transform: translateX(-100%);
    z-index: 5;
}

body:hover .gate-right {
    transform: translateX(100%);
    z-index: 5;
}

body:hover {
    background-image: url('img/magical\ garden.png');
    background-size: cover;
    height: 100vh;
    z-index: 1;
}

.tree {
    background-image: url('img/tree.png');
    background-repeat: no-repeat;
    background-position: top, center;
    background-size: cover;
    z-index: 10;
}

.leaf1 {
    animation: leaf1 10s cubic-bezier(0.25, 0.25, 0.75, 0.75) infinite forwards;
    padding-left: 450px;
}

@keyframes leaf1 {
    0% {
        transform: scale(0.8) translateY(100px) rotate(-30deg);
        opacity: 0;
    }

    25% {
        transform: translate(-100px, 150px) rotate(10deg);
        opacity: 1;
    }

    50% {
        transform: translate(-120px, 350px) rotate(-10deg);
    }

    75% {
        transform: translate(-180px, 400px) rotate(20deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) translate(-200px, 500px) rotate(10deg);
        opacity: 0;
    }
}


.group-left {
    position: absolute;

}

.group-right {
    position: absolute;
}

.firefly {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 80%;
    box-shadow: 0 0 20px 4px rgb(255, 239, 196);
    position: absolute;
    left: 150px;
    top: 150px;
}

/* גחליליות שמאל */

.firefly1 {
    margin-top: 250px;
    animation: firefly1 6s ease-in-out infinite both;
}

@keyframes firefly1 {
    0% {
        transform: translate(400px, 300px);
    }
    25% {
        transform: translate(600px, 200px);
    }
    50% {
        transform: translate(700px, 400px);
    }
    75% {
        transform: translate(500px, 100px);
    }
    100% {
        transform: translate(400px, 300px);
    }
}

.firefly2 {
    margin-top: 0px;
    animation: firefly2 6s ease-in-out infinite both;
}

@keyframes firefly2 {
    0% {
        transform: translate(600px, 500px);
    }
    25% {
        transform: translate(400px, 300px);
    }
    50% {
        transform: translate(200px, 400px);
    }
    75% {
        transform: translate(400px, 600px);
    }
    100% {
        transform: translate(600px, 500px);
    }
}

.firefly3 {
    margin-left: 250px;
    animation: firefly3 6s ease-in-out infinite alternate-reverse both;
}

@keyframes firefly3 {
    0% {
        transform: translate(700px, 100px);
    }
    25% {
        transform: translate(800px, 300px);
    }
    50% {
        transform: translate(600px, 500px);
    }
    75% {
        transform: translate(400px, 200px);
    }
    100% {
        transform: translate(700px, 100px);
    }
}

/* פיה */

.fairy-loc {
padding-top: 500px;
padding-left: 1200px;
animation: fairy 12s ease-in-out infinite forwards;
z-index: 4;
position: absolute;
}


@keyframes fairy {
    0% {
        transform: scale(0.05) translateX(0px);
        opacity: 0;
    }

    25%{
        opacity: 1;
    }

    50% {
        transform: scale(1) translateX(10px);

    }

    70% {
        opacity: 1;
    }

    90% {
        transform: scale(0.05) translateX(900px);
        opacity: 0;
    }

    100% {
        transform: scale(0) translateX(1100px);
        opacity: 0;
    }
}

/* גחליליות ימין */

.firefly4 {
    animation: firefly4 10s infinite;
}

@keyframes firefly4 {
    0% {
        transform: translate(800px, 400px);
    }
    25% {
        transform: translate(900px, 300px);
    }
    50% {
        transform: translate(700px, 200px);
    }
    75% {
        transform: translate(800px, 100px);
    }
    100% {
        transform: translate(800px, 400px);
    }
}


.firefly5 {
    animation: firefly5 10s infinite;
}

@keyframes firefly5 {
    0% {
        transform: translate(900px, 500px);
    }
    25% {
        transform: translate(1000px, 400px);
    }
    50% {
        transform: translate(1100px, 300px);
    }
    75% {
        transform: translate(900px, 200px);
    }
    100% {
        transform: translate(900px, 500px);
    }
}


.firefly6 {
    animation: firefly3 10s ease-in-out infinite alternate-reverse both;
}

@keyframes firefly6 {
    0% {
        transform: translate(1100px, 200px);
    }
    25% {
        transform: translate(1200px, 300px);
    }
    50% {
        transform: translate(1000px, 400px);
    }
    75% {
        transform: translate(1100px, 500px);
    }
    100% {
        transform: translate(1100px, 200px);
    }
}


.leaf2 {
    position: absolute;
    animation: leaf2 10s cubic-bezier(0.25, 0.25, 0.75, 0.75) infinite forwards;
    left: 1450px;
}

@keyframes leaf2 {
    0% {
        transform: scale(0.8) translateY(150px) rotate(5deg); /* התחלה - באוויר */
        opacity: 0;
    }

    25% {
        transform: scale(1) translateY(200px) rotate(-20deg); /* זז ימינה ויורד */
        opacity: 1;
    }

    50% {
        transform:translateY(280px) rotate(15deg); /* זז יותר ימינה ויורד יותר */
    } 

    75% {
        transform: translateY(400px) rotate(-15deg); /* כמעט בצד ימין, יורד */
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(500px) rotate(30deg); /* סוף הדרך בצד ימין למטה */
        opacity: 0;
        z-index: 3;
    }
}