#pfp img {
    width: 4em;
    border-radius: 1em;
    position: absolute;
    right: 2em;
    top: 2em;
}

#title {
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 3em 0 0 0;
    font-weight: 900;
    font-size: 4em;
}

#links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1em;
    padding: 2em;
}

.link {
    width: 16em;
    height: 16em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1em;
    margin: 0.5em;
    color: white;
    text-decoration: none;
    background-color: #2f3948;
    transition: transform 0.3s ease;
}

.link:hover {
    transform: scale(1.1);
    z-index: 2;
}

/* items AFTER the hovered one → move right */
.link:hover ~ .link {
    transform: translateX(1em);
}

/* items BEFORE the hovered one move left */
#links:has(.link:hover) .link:not(:hover):not(:hover ~ .link) {
    transform: translateX(-1em);
}

.link#pictures-link {
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(#00000080, #00000080),
        url("/images/gallery/bridge_2024-02-17_17-37-42.jpg");
}

.link#chat-link {
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(#00000080, #00000080),
        url("/chat/images/samat-chat-favicon.png");
}

@media (max-width: 768px) {
    #links {
        flex-direction: column;
        align-items: center;
    }

    .link:hover ~ .link {
        transform: translateY(1em);
    }

    #links:has(.link:hover) .link:not(:hover):not(:hover ~ .link) {
        transform: translateY(-1em);
    }
}
