:root {
    --color-bg: #0a0a09;
    --color-text: #d8d8d8;
    --color-muted: #6a6a6a;

    --color-accent: #a97322;
    --color-accent-visited: #afa089;
    --color-link-hover: opacity(0.9);

    --nav-bg: #2d2d2c;
    --nav-border: #252423;
    --nav-text: #e6e2dc;

    --border-light: hsla(44, 6%, 58%, 0.2);
    --border-mid: hsla(44, 6%, 58%, 0.424);
    --border-artist: #a19e966c;

    --container-bg: #1d1d1c;
    --news-bg: hsl(60, 2%, 8%);

    --hover-gradient: linear-gradient(#9c9891 0%, #2d2d2c 100%);

    --shadow-strong: 0px 0px 20px 5px black;
    --shadow-medium: 0px 0px 10px 5px black;
    --shadow-light: 0px 0px 5px 3px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0px 0px 3px 5px rgba(0, 0, 0, 0.5);
}

* {
    font-family: 'Verdana', 'Helvetica', 'sans-serif';
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Trebuchet MS', 'sans-serif';
}

body {
    background-color: #0a0a09;
    color: #d8d8d8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px;
}

#header,
#main,
#footer {
    width: 75%;
    border: 1px solid #252423;
    padding: 7px;
    margin-bottom: 8px;
    box-shadow: 0px 0px 10px 5px black;
}

#header img {
    height: 50px;
    opacity: 0.95;
    object-fit: contain;
}

#header img {
    filter: invert();
}

.banner {
    opacity: 0.85 !important;
    height: 35px !important;
    margin: auto 0 5px 20px;
}

#header {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    background-color: #0a0a09;
    z-index: 1;
}

#nav {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
}

#nav a,
#nav .dropdown,
#navToggle {
    position: relative;
    flex: 1;
    background-color: #2d2d2c;
    border: 1px solid #252423;
    color: #e6e2dc;
    cursor: pointer;
    padding: 5px 0;
    margin: 0 2px;
    font-size: 0.8em;
    text-decoration: none;
    text-align: center;
    z-index: 3;
}

#navToggle {
    margin-top: 10px;
    display: none;
}

#header input {
    display: none;
}

#nav a:hover,
#nav .dropdown:hover,
.galleryPopup div button:hover {
    background: linear-gradient(#9c9891 0%, #2d2d2c 100%);
}

.dropdown {
    position: relative;
    z-index: 3;
}

.dropdown:hover #nav-dropdown {
    display: flex;
}

.dropdown img {
    position: absolute;
    right: 5px;
    top: 6px;
    filter: invert();
    width: 15px !important;
    height: 15px !important;
}

#nav-dropdown {
    display: none;
    position: absolute;
    flex-direction: column;
    width: 100%;
    top: 100%;
    box-shadow: 0px 0px 10px 5px black;
    clip-path: inset(0px -20px -20px -20px);
    z-index: 2;
}

#nav-dropdown a {
    display: inline;
    width: 100%;
    background-color: #2d2d2c;
    border: 1px solid #252423;
    color: #e6e2dc;
    cursor: pointer;
    padding: 5px 0;
    font-size: 1em;
    text-decoration: none;
    text-align: center;
    margin: 0;
    margin-left: -1px;
}

.smalltext {
    font-size: 0.8em;
    color: #6a6a6a;
}

.artistInfobox,
.release {
    border: 2px solid #a19e966c;
    background-color: #1d1d1c;
}

.artistInfobox {
    float: right;
    width: 260px;
    font-size: 0.75em;
    margin-left: 10px;
}

.release {
    width: 200px;
    text-decoration: none !important;
    color: #e6e2dc !important;
}

.release h4 {
    margin-bottom: 1px;
}

.release h5 {
    margin-bottom: 7px;
}

.artistInfobox *,
.release * {
    margin: 0;
}

.artistInfobox div,
.release div {
    padding: 10px;
    word-wrap: break-word;
}

.artistInfobox img,
.release img {
    width: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.artistInfobox img {
    box-shadow: 0px 0px 20px 5px black;
}

.release img {
    box-shadow: 0px 0px 3px 5px rgba(0, 0, 0, 0.5);
}

.release:hover {
    cursor: pointer;
    outline: 2px solid #e6e2dc;
    opacity: 1 !important;
}

.release:hover div {
    opacity: 0.8;
}

#main img {
    max-width: 100%;
}

#headerBanner {
    display: flex;
    justify-content: space-between;
    max-height: 51px;
}

#header p {
    margin-left: 5px;
    text-align: right;
}

#main a {
    color: #a97322;
    text-decoration: none;
}

#main a:visited {
    color: #afa089;
}

#main a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

#motw {
    margin: 10px 0;
}

#motw p {
    font-style: italic;
    margin: 0;
}

.newsArticle {
    border: 1px solid hsla(44, 6%, 58%, 0.424);
    background-color: hsl(60, 2%, 8%);
    margin: 10px 0;
    padding: 0 10px;
}

.galleryWrapper {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 3px;
}

.galleryWrapper * {
    flex-grow: calc(var(--width) * (100000 / var(--height)));
    flex-basis: calc(170px * (var(--width) / var(--height)));
    aspect-ratio: var(--width) / var(--height);
    position: relative;
    overflow: hidden;
}

.galleryWrapper a img {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-mask-box-image: url('/assets/img_mask.webp') 250 fill / 100px / 0px round;
    mask-border: url('/assets/img_mask.webp') 250 fill / 100px / 0px round;
}

.galleryWrapper::after {
    content: " ";
    flex-grow: 1000000000;
}

.galleryWrapper a:hover {
    cursor: pointer;
    opacity: 0.2;
}

.releaseSection {
    display: flex;
    justify-content: space-between;
}

#releaseImgContainer {
    max-width: 300px;
    width: 35%;
    max-height: 300px;
    height: 35%;
    padding: 5px;
    border: 1px solid hsla(44, 6%, 58%, 0.2);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
}

#releaseImgContainer img {
    aspect-ratio: 1 / 1;
    box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.4);
}

.galleryPopup {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galleryPopup div {
    position: absolute;
    background-color: #252423;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #2d2d2c;
    box-shadow: 0px 0px 10px 5px black;
}

.galleryPopup div img {
    max-height: 70vh;
    object-fit: contain;
    max-width: 90vw;
}

.galleryPopup div button {
    background-color: #2d2d2c;
    border: 1px outset #252423;
    color: #e6e2dc;
    cursor: pointer;
    padding: 5px;
}

.galleryPopup div button:not(:last-child) {
    margin-bottom: 5px;
}

#headerControls {
    flex-grow: 1;
    margin-left: 22px;
    height: 50%;
}

#headerControls img {
    margin-top: 6px;
    height: 40px;
    margin-right: 5px;
    filter: none !important;
}

#headerControls *:hover img {
    filter: sepia() !important;
}

@media only screen and (max-width:620px) {

    body {
        margin-top: 0;
        overflow-x: hidden;
    }

    #header p {
        text-align: center;
    }

    #header,
    #main,
    #footer {
        width: 100%;
    }

    #header,
    #header div {
        flex-direction: column;
    }

    #headerBanner {
        flex-direction: row !important;
        justify-content: center;
    }

    #navToggle {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #header input {
        display: block;
        position: absolute;
        width: 100%;
        opacity: 0;
        top: 135px;
        height: 20px;
        z-index: 20;
    }

    #nav {
        margin-top: 0;
    }

    #nav {
        display: none;
    }

    #header p {
        margin: 0;
        margin-top: 5px;
    }

    #header input:checked~#nav {
        display: flex;
    }

    #header input:checked~#navToggle {
        background: linear-gradient(#9c9891 0%, #2d2d2c 100%);
    }

    .artistInfobox {
        width: 40%;
    }

    .collapsibleSection {
        flex-direction: column-reverse;
    }

    .collapsibleSection div {
        border: none !important;
        width: 97.5% !important;
    }

    .collapsibleSection div:not(:first-child) {
        border-bottom: 2px solid #9E9B8E !important;
        padding-bottom: 7px;
    }

    #headerControls {
        display: none;
    }

}