/* Shared badge footer, used by the homepage and the cat archive. */
.footer {
    padding-top: 10px;
    background-color: beige;
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 120px;
    overflow: auto;
    display: flex;
    justify-content: center;
}

.footer > * {
    margin-left: 20px;  
}

.footer > *:first-child {
    margin-left: 0;
}

.footer-buttons {
    width: 50%;
    text-align: center;
    height: 70px;
    overflow: auto;
}

.comment {
    text-decoration: none;
    border: 1px solid black;
    padding: 10px;
    background-image: linear-gradient(45deg, red, blue);
    margin-bottom: auto;
    color: white;
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin-left: 0;
}

/* Below tablet width, let the footer follow content instead of hiding it. */
@media (max-width: 900px) {
    .footer {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: auto;
        height: auto;
        min-height: 120px;
        padding: 12px;
        overflow: visible;
    }

    .footer > * {
        margin-left: 0;
    }

    .footer-buttons {
        width: 100%;
        max-width: 650px;
        height: auto;
        overflow: visible;
    }

    .footer-buttons img {
        max-width: 100%;
    }

    .footer .comment {
        position: static;
        margin: 0;
        align-self: center;
    }
}

/* The cat archive retains an 8px legacy body margin at desktop size. */
@media (min-width: 901px) and (max-width: 1799px) {
    .footer {
        left: 0;
    }
}
