.footer-image {
    position: relative;
    width: 100%;
    height: 100%;
    bottom: 0;
    transform: translateY(8px);
    user-select: none;
    z-index: -1;
}

.footer-content {
    background-color: #5e1c24;
    width: 100%;
    min-height: 200px;
    position: relative;
    display: grid;
    grid-column: 1 / span 1;
    justify-items: center;
    align-items: center;
    color: #ea4759;
    padding: 20px 0;
}

.name-and-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    z-index: 2;
}

.name {
    font-size: 1.5em;
    color: #ea4759;
    margin-bottom: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: center;
    z-index: 1;
}

.footer-nav a {
    color: #ea4759;
    text-decoration: none;
    font-size: 1em;
}

.footer-nav a:hover {
    color: #fff;
}

.footerimg {
    display: flex;
    align-items: end;
    width: 100vw;
    overflow: hidden;
    pointer-events: none;
}

.footer-birds {
    position: relative;
    top: -10vw;
    height: 100%;
    left: 0;
    margin-left: -100%;
    transform: scale(0.5) translateX(-150%);
    z-index: -2;
    opacity: 1;
    transition: opacity 0.2s ease;
    user-select: none;
}

.footer-birds.animate {
    animation: flyAcross 20s linear infinite; /* Dodaj animację tylko, gdy klasa 'animate' jest obecna */
}

@media (max-width: 828px) {
    .footer-birds {
        top: 5vw;
    }
}

@keyframes flyAcross {
    0% {
        transform: scale(0.5) translateX(-150%); /* Start poza lewą krawędzią ekranu */
    }
    100% {
        transform: scale(0.5) translateX(200vw); /* Przelot poza prawą krawędź */
    }
}