html,
body {
    height: 100%;
    /* Make body fill the viewport height */
    margin: 0;
    /* Remove default margin */
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
}

img {
    max-width: 100%;
    height: auto;
}

footer {
    line-height: 1.6;
    margin-bottom: 20px;
}

splash-img {
    background: #00000054 url(/static/banner.png) no-repeat center center / cover;
    background-position-y: top 20%;
    background-blend-mode: darken;
    min-height: 300px;
    width: 100%;
}

header,
footer,
splash-img,
.flex-total-center {
    display: flex;
    flex-flow: column nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

splash-img>h1 {
    padding: 0 10px 5px 10px;
    margin: 0;
    font-size: 300%;
    border-bottom: 3px solid blue;
    text-shadow: #000000a4 -2px 2px;
    color: #eee;
    text-align: center;
    font-weight: 800;
}

splash-img>h1>a {
    padding: 0;
    margin: 0;
    color: #eee;
    text-decoration: none;
}

social-icons {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 15px 40px;
    margin: 20px 0 20px 0;
}

social-icons>a {
    background-color: #000;
    margin: 0;
    width: 3em;
    height: 3em;
    text-decoration: none;
    border-radius: 50%;

    display: flex;
    flex-flow: row wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

social-icons>a:hover {
    background-color: #333;
}

social-icons>a>svg {
    fill: #fff;
    width: 1.25em !important;
    height: 1.25em !important;
}

header>nav {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-top: 1px solid #595959;
    border-bottom: 1px solid #595959;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
}

header>nav>a {
    text-align: center;
    font-weight: bold;
    padding: 20px 10px;
    text-decoration: none;
    color: #000;
}

header>nav>a>svg {
    width: 1em;
    height: auto;
    transform: translateY(2px);
    margin-left: 2px;
}

header>nav>a::after {
    content: '';
    display: block;
    height: 1px;
    background: #000;
    width: 100%;
    transform: scaleX(0);
    transition: transform 0.1s ease;
}

header>nav>a:hover::after {
    transform: scaleX(1);
}

main {
    display: flex;
    flex-flow: column nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

footer {
    flex: 1;
    justify-content: flex-end;
}

#content {
    flex: 1;
    display: flex;
    flex-flow: column nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;

    row-gap: 20px;

    width: 100%;
    max-width: 80ch;
    box-sizing: border-box;

    padding-bottom: 20px;
}

#content>* {
    width: 100%;
    box-sizing: border-box;
}

#content section.max-w-screen-sm {
    max-width: 100%;
}

.bsky-feed-wrapper {
    padding: 0 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    max-width: 100%;
}

bsky-embed {
    border: 1px solid #ddd;
    border-radius: 8px;
    display: block;
}

bsky-profile {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 160px;
}

.bsky-overlay {
    gap: 1rem;
    align-items: baseline;
    width: 100%;
    height: 160px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}

.bsky-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgb(212, 219, 226);
    box-shadow: 0 0 0 4px #fff;
    transform: translateY(150%);
    margin: 0 0 0 1rem;
}

.bsky-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 2.25rem 1rem 1rem 1rem;
    max-width: 640px;
}

.bsky-name {
    margin: 0;
    font-size: 1.2rem;
}

.bsky-handle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.bsky-bio {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.bsky-stats {
    display: flex;
    gap: 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
}

.favorites-container {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
}

.favorite-item {
    display: flex;
    flex-flow: column nowrap;
    border-radius: 8px;
    gap: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 0 0 0;
}

.favorite-item>img {
    width: 100%;
    border-radius: 8px;
}

.favorite-item>span {
    text-align: center;
    font-size: 150%;
}

.favorite-artists {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    align-items: baseline;
    justify-content: center;
}

.favorite-artist {
    width: 88px;
    text-align: center;
    text-decoration: none;

    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd;
    border-radius: 8px;
}

.favorite-artist>span {
    padding: 10px 0 10px 0;
}

.favorite-artist>img {
    width: 100%;
    height: 88px;
    border-radius: 8px;
}

.oc-nav {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    align-items: baseline;
    justify-content: center;
}

.oc-nav>a {
    font-size: 100%;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 20px;
}

.oc-list {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    align-items: baseline;
    justify-content: center;
}

.oc-cat-sel {
    background-color: aquamarine;
}

.oc-entry {
    width: 128px;
    text-align: center;
    text-decoration: none;

    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;

    border: 1px solid #ddd;
    border-radius: 8px;

    padding-bottom: 10px;
}

.oc-entry-img {
    width: 128px;
}

.oc-entry>.oc-entry-name {
    margin: 10px;
    font-size: 125%;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.oc-entry-cats {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;

    gap: 4px;

    margin-bottom: 12px;
}

.oc-entry-cats>* {
    font-size: 75%;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 2px 4px;
}

#oc-item-portrait {
    float: right;
    margin: 0 0 1rem 1rem;
    width: 256px;

    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;

    line-height: 1;

    display: flex;
    flex-flow: column nowrap;
}

@media screen and (max-width: 48em) {
    #content {
        padding: 0 6px;
    }

    #oc-item-content {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
    }

    #oc-item-portrait {
        float: none;
        display: block;
        width: 256px;
        max-width: 100%;
        margin: 0 0 1rem 0;


        border-radius: 8px;
        border: 1px solid #ddd;
        overflow: hidden;

        line-height: 1;

        display: flex;
        flex-flow: column nowrap;
    }
}

.archives {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 15px;
}

.archives>.oc-list {
     flex: 0 0 100%;
}

.archived-ocs {
  display: none;
}

#toggle-archive:checked ~ .archived-ocs {
  display: flex;
}

#oc-item-portrait>h1 {
    width: 100%;
    text-align: center;
    margin: 12px 0;
    display: inline;
}

#oc-item-portrait>img {
    width: 100%;
    text-align: center;
    margin: 0;
    display: inline;
}

#oc-item-text {
    width: 100%;
}

.gallery {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    align-items: start;
    justify-content: center;
}

.image-item {
    width: 128px;
    text-align: center;
    text-decoration: none;

    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;

    border: 1px solid #ddd;
    border-radius: 8px;

    padding-bottom: 10px;
    overflow: hidden;
}

.gallery-item-title {
    word-wrap: anywhere;
}

.image-item>img {
    width: 128px;
}

.image-item>.gallery-item-title {
    margin: 10px;
    color: #000;
    text-decoration: none;
}

.pagination {
    display: flex;
    flex-flow: row wrap;
    
    justify-content: center;
    align-items: center;
    gap: 1rem;
}