/* Header with heading on the left and logo on the right: */

header > div {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header > div > *:first-child {
    margin-left: 0;
}
header > div > *:last-child {
    margin-right: 0;
}

@media screen and (max-width: 640px) {
    header > div {
        justify-content: space-around;
        flex-direction: column;
    }
}

/* Hyperlinks with image and text shall appear as cards */

a:has(img) {
    display: inline-block;
    padding: 16px;
    text-align: center;
    background-color: var(--surface);
    border-radius: 8px;
    text-decoration: none;
}

a:has(img):not(:last-child) {
    margin-right: 16px;
}

a > img {
    display: block;
}
