:root {
    --gridframe: rgba(126, 126, 126, 0.76);
    --gridplain: rgba(183, 192, 161, 0.472);
    --defaultdarktone: #354818;
    --defaultmidtone: rgb(122, 148, 61);
    --infogrouptitle: #252524;
    --infotext: #d8d73e;
    --grouptitle: rgba(149, 149, 149, 0.863);
    --innertopshadow: 0px 6px 6px rgba(7, 7, 7, 0.8);
    --innerbottomshadow: 0px -6px 6px rgba(7, 7, 7, 0.8);
    --innerleftshadow: 4px 0px 6px 6px rgba(7, 7, 7, 0.3);
    --innerrightshadow: -4px 0px 6px 6px rgba(7, 7, 7, 0.3);
    --innerborder: 1px solid rgba(65, 65, 65, 0.8);
    --infotitleboxsize: min(max(.8rem, 3vw), 1rem);
    --infotitletextsize: min(max(.7rem, 3vw), .9rem);
    --infotextboxsize: min(max(1.2rem, 3vw), 1.6rem);
    --infotextsize: 2rem;
    --infotabboxsize: min(max(1.8rem, 6vw), 2.6rem);
    --infotabmargins: 0 -.7rem 0 0;
    --clipheight: calc(100vh - 3.3rem);
    --clipheightjv: calc(var(--vh) - 3.3rem);
}

/*::-webkit-scrollbar {
    display: none;
}*/

/* {
-ms-overflow-style: none;

//    scrollbar-width: none;
//    Firefox
//}
*/
#dbSets {
    height: 1.5rem;
}

#setgallery,
#setpalette,
.setarea {
    display: flex;
    height: var(--clipheight);
    height: var(--clipheightjv);
    width: 100vw;
}

#setgallery,
#setpalette {
    position: fixed;
    overflow-y: clip;
}

#setgallery.active,
#setpalette.active {
    z-index: 11;
}

#setpalette {
    background-color: dimgrey;
    z-index: 10;
}

#setgallery {
    z-index: 10;
}

.setarea {
    position: absolute;
    top: 0;
    flex-direction: row;
}

#galclk {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-wrap: nowrap;
}

#galclk>div {
    cursor: grab;
    line-height: 2;
    background-color: var(--defaultdarktone);
}

#galclk>div {
    box-shadow: inset -3px 3px 5px;
    color: white;
    writing-mode: vertical-rl;
    height: -webkit-fill-available;
}

#galselect {
    height: 100%;
    max-height: var(--clipheight);
    max-height: var(--clipheightjv);
    margin: 0 1vw;
    width: 98vw;
    overflow-y: scroll;
    box-shadow: 1vw -10vh 1vw var(--defaultmidtone), 1vw 70vh 1vw var(--defaultdarktone), -1vw -10vh 1vw var(--defaultmidtone);
}

#filterarea {
    display: flex;
    position: fixed;
    flex-direction: row;
    z-index: 12;
    width: 98%;
    justify-content: center;
    gap: 0.2rem;
    background: var(--defaultmidtone);
}

#galfilter {
    /*width: -webkit-fill-available;*/
    padding: 3px;
    background-color: rgb(255, 255, 255, 0.4);
    margin: 0.2rem;
    background: white;
    font-size: medium;
}

#how-to-filter,
#how-to-covers {
    width: 1.9rem;
    height: 1.9rem;
    background: var(--defaultdarktone);
    color: var(--infotext);
    margin: auto 0;
    padding: 0;
    border: 0.1rem solid;
}

#how-to-covers>i,
#how-to-filter>i {
    font-size: large;
    text-align: center;
    align-self: center;
    gap: 0px;
    margin: 0;
    padding: 0;
    cursor: grab;
    justify-content: center;
    align-items: center;
    color: var(--infotext);
}

#filt-dir {
    font-size: medium;
    display: block;
    padding: 0 0.5rem;
    margin: auto 1rem auto 0.1rem;
    cursor: pointer;
    border: 0.1rem solid;
}

#filt-dir>i {
    font-size: inherit;
    line-height: 1.5rem;
}

#thumbs {
    width: 100%;
    background-color: rgba(126, 126, 126, 1);
    top: 1.9rem;
    position: relative;
}

.thumbgroup {
    width: -webkit-fill-available;
    flex-direction: column;
}

.thumbgroup .title {
    background-color: var(--defaultdarktone);
    color: var(--defaultmidtone);
    margin: auto;
    padding: 0 0 0 0.5rem;
    scroll-margin-top: 1.9rem;
}

.thumbgroup>div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0.2rem 0;
}

.thumbgroup>div>img {
    background: #F1F1FA;
    max-width: calc(100vw - 3rem);
    height: min(250px, calc(var(--vh) * 0.4));
    display: block;
    margin: 10px auto;
    border: 0;
    object-fit: contain;
    background-color: transparent;
    cursor: grab;
}

.thumbgroup>div>img:hover {
    box-shadow: inset 1px 1px 3px, inset -1px -1px 3px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px;
}

.galimg {
    width: '200px';
    height: '100px';
}

.setcovers {
    z-index: 10;
    display: flex;
    position: relative;
    flex-direction: column;
    align-self: center;
    gap: 0px;
    margin: 0;
    padding: 0;
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
    background-color: transparent;
    justify-content: center;
    align-items: center;
}

.setRow {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 0;
    width: fit-content;
    max-inline-size: -webkit-fill-available;
    max-height: var(--clipheight);
    max-height: var(--clipheightjv);
    padding: 0;
    background-color: transparent;
    justify-content: center;
    align-items: center;
}

.floimg {
    position: inherit;
    height: 100%;
    box-shadow: inset 1px 1px 1px;
}

.overlay {
    position: absolute;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    /* Black see-through */
    color: #f1f1f1;
    width: 100%;
    transition: .5s ease;
    opacity: 0;
    color: white;
    font-size: 1.2rem;
    padding: 2px;
    text-align: center;
    height: 0;
    overflow: hidden;
}

.overlay.botup {
    bottom: 0;
    font-size: 0.75rem;
}

.overlay.topdwn {
    top: 0;
}

.overlay>button,
.overlay>div>button,
.overlay .midtoolbar>button {
    height: auto;
    width: auto;
    padding: 0;
    margin: 0;
    color: white;
    background-color: transparent;
}

label>figure>i {
    height: 2rem;
    font-size: xx-large;
}

button>i {
    font-size: xx-large;
}

button {
    border-width: 0;
}

figure {
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin: 0;
    padding: 0;
}

.overlay>label,
.overlay>label>figure {
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
}

.inputbuffer {
    margin: 0;
    padding: 0;
}

.midtoolbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.imgcont {
    position: relative;
    aspect-ratio: 250/385;
    display: inline-flex;
}

/*
.imgcont:active .overlay,
.imgcont:hover .overlay {
    opacity: 1;
}
*/
/** Info Bar */
#setinfo {
    position: relative;
    display: flex;
    flex-flow: row-reverse;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 20%;
}

.infotab:link,
.infotab:visited {
    color: var(--infotext);
}

.info-group {
    position: relative;
    display: flex;
    height: auto;
    color: black;
    font-size: x-small;
    background: var(--defaultmidtone);
    filter: drop-shadow(-1px 0px 5px var(--defaultdarktone));
    flex-grow: 1;
}

.infotabs {
    position: relative;
    grid-area: infotabs;
    display: flex;
    flex-wrap: nowrap;
    padding-right: 3px;
    flex-grow: 1;
    margin: 0 0 3px 0;
}

.info-group .infotabs .infotab {
    border-left: 0.4rem solid transparent;
    height: 0;
    width: fit-content;
    font-size: larger;
}

.info-group>h1 {
    font-size: x-small;
    line-height: 0;
    padding: 0 0.2rem;
    margin: revert;
}

.infotabs>h2>i {
    position: relative;
}

.infotabs>h2,
.infotabs>i,
.infotabs>a,
.infotabs>h2>button>i {
    position: relative;
    vertical-align: middle;
    font-size: large;
    color: var(--infotext);
    margin: auto;
}

.infotabs>h2>button {
    background-color: transparent;
}

.infotabs>h2>i>span {
    padding: 3px;
    position: absolute;
}

.infotabs>h2>i>span>div>img {
    max-width: 100%;
}

/**** Entity icons ****/
.entity {
    position: relative;
    display: inline-block;
    filter: drop-shadow(-5px 0px 2px var(--defaultmidtone));
    margin: 0 -.7rem 0 0;
    padding-left: 0.2rem;
    padding-right: 2rem;
}

.entity-logo {
    height: var(--infotextsize);
    width: auto;
    border: none;
    cursor: pointer;
}

.credit-given-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    left: -300%;
    z-index: 1;
}

.credit-given-menu a {
    color: black;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
}

.entity:hover .credit-given-menu {
    display: block;
}

.entity:hover .entity-logo {
    background-color: rgb(255, 255, 255, 0.4);
}

.fa-ellipsis-v {
    display: inline-block;
    color: beige;
    cursor: pointer;
}

.publishmenu {
    font-size: 0.8rem;
    line-height: 1.2;
    color: inherit;
    width: max-content;
    flex-direction: column;
}

.publishmenu>a {
    padding: 0 4px;
}

.publishmenu>a:link,
.publishmenu>a:visited {
    color: white;
}

.artistmenu {
    top: calc(var(--vh) * 0.026);
    right: 2vw;
}

.infotabs>h2 span {
    z-index: 20;
    /*display: none;
    position: absolute;*/
    background: #333;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/*
.infotabs>h2:hover span {
    display: initial;
}*/

@media only screen and (max-width: 426px) {
    .thumbgroup>div>img {
        height: fit-content;
        max-height: 15vh;
    }
}

@media only screen and (max-height: 426px) {
    .thumbgroup>div>img {
        height: fit-content;
        max-height: 75vh;
    }
}

@media (orientation: portrait) and (max-width: 800px) {
    #setpalette {
        flex-direction: column;
    }

    #setinfo {
        max-width: 98vw;
        justify-content: flex-start;
        flex-flow: row;
        flex-wrap: wrap;
    }

    #galclk {
        flex-direction: row;
        height: 2rem;
        max-width: 100%;
        margin: 0.2rem 0.2rem 0 0.2rem;
        filter: drop-shadow(-1px 0px 5px var(--defaultdarktone));
        box-shadow: inset -1px 0px 7px;
    }

    #galclk>div {
        flex: auto;
        writing-mode: horizontal-tb;
        max-width: 100%;
        height: 2rem;
    }

    #setinfo {
        max-width: 100%;
        margin: 0.2rem 0.3rem;
        justify-content: flex-start;
        flex-flow: row;
        flex-wrap: wrap;
    }

    .infotabs>h2 {
        display: flex;

    }

    .infotabs>h2>span {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 2px;
    }

    .infotabs>h2>span>div {
        padding: 0.2rem;
        margin: 0px;
        height: min-content;
        line-height: 0;
        cursor: grab;
    }

    .infotabs>h2>span>div>img {
        max-height: 10vh;
        max-width: 80vw;
        border: 1px solid white;
    }

    .infotabs>h2>span.publishmenu {
        flex-direction: column;
    }
}

@media (orientation: landscape) and (min-height: 800px) {
    #setpalette {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    #galclk {
        height: 2rem;
        max-width: 100%;
        margin: 0.4rem 0.4rem 0 0.4rem;
        flex-direction: row;
    }

    #galclk>div {
        filter: drop-shadow(-1px 0px 5px var(--defaultdarktone));
        writing-mode: horizontal-tb;
        box-shadow: inset -1px 0px 7px;
        width: -webkit-fill-available;
    }

    #setinfo {
        max-width: 100%;
        margin: 0.4rem 0.7rem;
        justify-content: flex-start;
        flex-flow: row;
        flex-wrap: wrap;
    }

    .infotabs>h2 {
        display: flex;
    }

    .infotabs>h2>span {
        flex-direction: row;
        gap: 2px;
    }

    .infotabs>h2>span>div {
        padding: 0.2rem;
        margin: 0px;
        height: min-content;
        line-height: 0;
        cursor: grab;
    }

    .infotabs>h2>span>div>img {
        max-height: 10vh;
        border: 1px solid white;
    }

    .infotabs>h2>span.publishmenu {
        flex-direction: column;
    }
}

@media (orientation: landscape) and (max-height: 799px) {
    #setpalette {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    #setinfo {
        justify-content: flex-start;
        flex-flow: column;
        width: fit-content;
        overflow-y: scroll;
        min-width: 20vw;
    }

    #galclk>div {
        height: calc(100% - 2rem);
    }

    .setcovers {
        height: -webkit-fill-available;
    }

    .info-group {
        height: fit-content;
        align-items: flex-start;
        flex-direction: column;
    }

    .infotabs>h2>span>div>img {
        max-width: calc(20vw - 2rem);
    }

    .infotabs {
        margin-left: 1rem;
    }

    .infotabs>h2 {
        display: flex;
        flex-direction: row;
        font-size: 1rem;
        line-height: 1.1;
    }

    .infotabs>h2>span {
        display: flex;
        flex-direction: column;
        position: relative;
    }
}