﻿body {
    background: url('background-snow.jpg') no-repeat center center fixed;
    background-size: cover;
}

@keyframes fall {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh); /* Przesuń w dół do końca widoku */
    }
}

/* Animacja tylko dla elementów z klasą emoji */
.emoji {
    animation: fall 5s linear;
}
/* Animacja opadania */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999; /* Podnosi canvas nad inne elementy */
    pointer-events: none; /* Wyłącza interakcje z canvas */
}

#decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Zapobiega interakcji z tym divem */
    z-index: 9999; /* Ustaw najwyższy priorytet wyświetlania */
}

/* Styl dla płatków śniegu */
.snowflake {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    z-index: 1000; /* Ustaw warstwę nad innymi elementami */
}

/* Animacja opadania */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

