﻿
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    user-select: none;
    opacity: 0.8;
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}

    /* Variaciones de tamaño */
    .snowflake.small {
        font-size: 0.8em;
        opacity: 0.6;
    }

    .snowflake.medium {
        font-size: 1.2em;
        opacity: 0.75;
    }

    .snowflake.large {
        font-size: 1.5em;
        opacity: 0.85;
    }

/* Animación de caída de copos */
@keyframes snow-fall {
    0% {
        transform: translateY(-15px) translateX(0px) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(105vh) translateX(10px) rotate(360deg);
        opacity: 0.2;
    }
}

/* Velocidades de los copos */
.snowflake.slow {
    animation-duration: 18s;
}

.snowflake.medium-speed {
    animation-duration: 13.5s;
}

.snowflake.fast {
    animation-duration: 10.5s;
}

/* Efecto sutil de movimiento lateral */
@keyframes snow-drift {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.snowflake.drift {
    animation: snow-drift 4s infinite ease-in-out;
    animation-delay: inherit;
}

/* Responsive time */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.9em;
    }

        .snowflake.large {
            font-size: 1.2em;
        }

        .snowflake.slow {
            animation-duration: 14s;
        }

        .snowflake.medium-speed {
            animation-duration: 10s;
        }

        .snowflake.fast {
            animation-duration: 7s;
        }
}
