:root {
    color-scheme: light dark;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: text-top;
    background: transparent;
}

body {
    font-family: 'Avenir Next', Avenir, sans-serif;
    text-align: center;
    color: light-dark(#000, #ddd);
    background-size: 100%;
    background: light-dark(#ddd, #222);
}

a, a:visited {
    /*color: #b3dcff;*/
}

#content {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

#selectable-tags {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1em;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

#selectable-tags > div {
    max-width: 40em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
}

fieldset {
    border-color: light-dark(#888, #858585) !important;
    border: 1px solid #ccc;
    border-radius: .25em;
    margin: 1em;
}

#selectable-tags  fieldset {
    max-width: 20%;
}

.options {
    display: flex;
    gap: 0 1.5em;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.25em;
}

.option {
    display: inline-block;
    width: 16em;
    text-align: left;
}

legend {
    padding: 0 0.5em;
}

#selected-tags button {
    border: none;
}

.tag-tooltip {
    cursor: pointer;
}

ul#art-display div  {
    margin: 20px;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    /* align-content: stretch; */
    /* justify-content: space-evenly; */
    /* align-items: center; */
    gap: 3em;
    flex-direction: column;
    text-align: center;
}

#art-display > li {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    justify-content: center;
    align-items: center;
    margin: 2.5em 0 0 0;
}

#art-display p {
    /* display: flex; */
    /* gap: 2em; */
    /* margin-top: 1em; */
    font-size: .75em;
}

#art-display p.image-title {
    font-size: medium;
}

#art-display img {
    border-radius: .5em;
    width: 100%;
    margin: 0 0 0.5em 0;
}

.image-tag {
    color: light-dark(#555, #ddd);
    display: block;
    background-color: light-dark(#fff, #3b3b3b);
    border-color: light-dark(#888, transparent) !important;
    border: 1px solid #888;
    border-radius: .4em;
    font-size: small;
    padding: 0.1em 0.3em;
    cursor: pointer;
}

#modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /*backdrop-filter: blur(4px);*/
}

#modal-background.shown {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
}

#modal-background.hidden {
    display: none;
}

p#modal {
    background: #fff;
    position: fixed;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: .25em;
}

button {
    cursor: pointer;
    font-size: x-large;
    border-radius: .3em;
    background: light-dark(#fff, #3b3b3b);
    color: light-dark(#000, #dddddd);
    box-shadow: 1px 1px 0px 0.5px #000;
}

button:hover {
    background: #ccc;
}

#instructions {
    width: 80%;
    max-width: 40em;
}

#art-display button {
    margin: 1em 0 5em 0;
}

h2, #updated {
    font-size: small;
    font-weight: 400;
}

#art-display {
    width: 100%;
}

.image-tag-list {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 40em;
    flex-wrap: wrap;
    gap: 0.55em 0.75em;
    margin: 0.5em 0 0 0;
    justify-content: center;
    align-content: center;
    align-items: center;
}

#art-display .alert {font-size: medium;margin: 2em;}

@media (prefers-color-scheme: light) {
    img {
        box-shadow: #676767 0px 4px 7px 0px;
    }

    .image-title {
        margin-top: 0.15em;
    }
}