body, html {
    height: 100%;
    margin: 0;
    background-color: #000000;
    overflow: hidden;
}

.falling-leaves {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, 0);
    overflow: hidden;
}

.leaf-scene {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    transform-style: preserve-3d;
}

.leaf-scene div {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background: url(leaf.svg) no-repeat;
    background-size: 100%;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;  /* Default size */
    height: auto;
    max-height: 95vh;
}

/* Increase size on mobile */
@media (max-width: 767px) {
    svg {
        width: 60vw;  /* Larger size for mobile */
    }
}

/* Reduce size on larger screens (desktop) */
@media (min-width: 1024px) {
    svg {
        width: 30vw;  /* Smaller size for desktop */
    }
}

.cls-1 {
    fill: transparent;
    stroke: #7a0005;
    stroke-width: 4px;
    stroke-dasharray: 9000;
    stroke-dashoffset: 9000;
    animation: draw 8s ease forwards, fillColor 2s ease forwards;
    animation-delay: 0s, 8s; /* يرسم أولاً، ثم يلون بعد 8 ثواني */
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillColor {
    from {
        fill: transparent;
    }
    to {
        fill: #7a0005;
    }
}
