document.addEventListener('DOMContentLoaded', () => {
    document.querySelectorAll('.flash').forEach((element, index) => {
        element.animate(
            [
                { opacity: 0, transform: 'translateY(-10px)' },
                { opacity: 1, transform: 'translateY(0)' },
            ],
            {
                duration: 240,
                delay: index * 40,
                fill: 'forwards',
                easing: 'ease-out',
            }
        );
    });
});