body {
    text-align: center;
}

#container {
    display: inline-block;
    text-align: center;
    margin: 15px;
    padding: 30px;
}

#banner {
    margin-bottom: 15px;
}

#banner-img {
    width: 100%;
}

#links-bar {
    margin-bottom: 15px;
    padding: 5px;
    display: flex;
    justify-content: center;
}

.link-bar-link {
    transition-duration: 0.2s;
}

.link-bar-link:hover {
    transition-duration: 0.2s;
}

.link-bar-link-image {
    max-height: 1em;
}

.link-bar-separator {
    margin: 0 10px;
    cursor: default;
    pointer-events: none;
}

/* Styles <a> links to look like buttons with rounded borders. */
.button {
    display: inline-block;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 1.2em;
    transition: ease 0.2s;
    text-decoration: none;
}

/* The blue background with the dotted borders that shows up on most pages. */
#blurb {
    display: inline-block;
    text-align: left;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 15px 15px 10px 15px;
}

/* Webring */

.webring-members {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.webring-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    column-gap: 20px;
}

.webring-links > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.webring-img {
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

.webring-label {
    margin: 1em auto;
}

#powered-by {
    margin-top: 2em;
    font-size: 0.7em;
}

/* Responsive list indenting */
ul, ol {
    padding-left: clamp(1rem, 5vw, 2rem);
}

@media screen and (max-width: 700px) {
    body, #container {
        margin: 0;
    }

    #container {
        padding: 0 0 30px;
    }

    #blurb {
        margin: 0 10px;
    }
}

@media screen and (max-width: 500px) {
    #links-bar {
        flex-wrap: wrap;
        column-gap: 0.45em;
        row-gap: 0.35em;
        padding: 4px;
        line-height: 1.25;
    }

    .link-bar-link {
        display: inline-block;
        padding: 0.2em 0.45em;
        border-radius: 999px;
        white-space: nowrap;
        text-decoration: none;
        background-color: rgb(255 255 255 / 12%);
    }

    .link-bar-link:hover {
        text-decoration: none;
    }

    .link-bar-separator {
        display: none;
    }

    .link-bar-link-image {
        max-height: 0.9em;
    }
}
