:root {
    --orange: #ff925a;
    --purple: #d566c0;
    --lime: #bce03b;
    --blue: #4ac6d9;
    --pink: #fe81d2;

    --gray: #7f7f7f;
}

* {
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    box-sizing: border-box;
    font-family: Tahoma, sans-serif;
}

html {
    background-color: black;
}

body {
    min-height: 100vh;
    height: auto;
    background-color: black;
}



@font-face {
    font-family: 'LEMON';
    src: url('../fonts/LEMONMILK-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Films';
    src: url('../fonts/Tall\ Films\ Expanded\ Oblique.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PX150VF';
    src: url('../fonts/PX150VF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FakeReceipt';
    src: url('../fonts/Fake\ Receipt.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

h1 {
    font-family: 'FakeReceipt', sans-serif;
}

header {
    display: flex;
    color: white;
    font-size: 32px;

    padding: 1rem;
    height: auto;
    width: 100%;
    background-color: black;
}

header p {
    margin-top: auto;
    font-family: 'FakeReceipt', sans-serif;
}

header a {
    color: white;
    font-family: 'FakeReceipt', sans-serif;
    text-decoration: none;;
    font-variation-settings: 'DISP' 0;
    transition: 0.2s ease-in-out;
}

header a:hover {
    color: var(--gray);
    transition: 0.2s ease-in-out;
}

a {
    color: black;
}

hr {
    margin-bottom: 0.5rem;
    border-color: black;
    background-color: black;
    color: black;
}

summary {
    list-style: none;
}

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

footer {
    border-top: 2rem solid black;
    padding: 3rem;
    display: flex;
    background-color: white;
}

footer div {
    flex: 1;
}

footer div:nth-child(odd) {
    text-align: left;
}

footer div:nth-child(even) {
    text-align: right;
}

footer div:nth-child(even):not(:last-child) {
    margin-right: 2rem;
}

ul {
    margin-left: 1rem;
}

li {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.margin_m {
    margin-bottom: 1rem;
}

.logo {
    height: 64px;
    width: 64px;
    background-image: url('../assets/logo.png');
    background-size: cover;
    image-rendering: pixelated;
    display: block;
    margin-left: auto;
}

/* .logo:hover {
    background-image: url("assets/logo2.png")
} */

.trash {
    height: 64px;
    width: 64px;
    background-image: url('../assets/trash.png');
    background-size: cover;
    image-rendering: pixelated;
    display: block;
    margin: auto auto 0 auto;
}

/* .trash:hover {
    background-image: url("assets/trash2.png")
} */


.portrait {
    width: 151px;
    aspect-ratio: 1/1;
    background-image: url('../assets/portrait.png');
    background-size: cover;
    margin: 0 auto 1rem auto;
    border-radius: 100%;
}

.three-columns {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
}

#left {
    color: white;
    height: auto;
    display: flex;
    flex: 1;
    padding: 1rem;
    max-width: 250px;
    background-color: black;
    flex-direction: column;
}

#left h1 {
    width: 0;
}

#center {
    image-rendering: pixelated;
    border: 20px solid transparent;
    border-image: url("../assets/notepad.png") 10 round;
    /* margin: 0 1rem; */
    display: flex;
    flex-direction: column;
    flex: 2;
    z-index: 1;
    padding-bottom: 4rem;
    min-height: 75vh;
    background-color: white;
}

#center > img {
    margin: 0 0 2rem 0;
}

#center.torn {
    border-image: url("assets/notepadtorn.png") 10 round;
}

#center .section {
    padding: 1rem;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#center .section h1 {
    padding: 8px 0px;
}

/* .thumbnail {
    background-color: black;
    display: grid;
    place-items: center;
    position: relative;
    margin: 0.5rem 0;
    overflow: hidden;
    border: 2px solid black;
    aspect-ratio: 5 / 1;
    max-height: 100px;
    min-width: 100%;
} */

#flags_alt {
    display: none;
}

.thumbnail {
    background-color: black;
    display: grid;
    place-items: center;
    position: relative;
    margin: 0.5rem 0;
    overflow: show;
    height: 64px;
    width: 100%;
    outline: 2px solid black;
}

.thumbnail p {
    padding-right: 10px;
    color: white;
    background-color: black;
    pointer-events: none;
    display: block;
    text-align: right;
    position: absolute;
    background-color: transparent;
    font-size: 1.4em;
    width: 100%;
}

.thumbnail:hover p {
    color: black;
    background-color: white;
    outline: 2px solid black;
    height: 100%;
    line-height: 64px;
}

.thumbnail .banner img {
    position: absolute;
    top: -60%;
    width: 100%;
}

.thumbnail .icon {
    box-sizing: border-box;
    height: 64px;
    width: auto;
    float: left;
    margin-right: auto;
    image-rendering: pixelated;
    outline: 2px solid black;
}

.tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    mix-blend-mode: multiply;
    transition: 0.2s;
}

.thumbnail:hover {
    background-color: white;
    outline: 2px solid black;
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

.gallery img {
    image-rendering: pixelated;
    border: 16px solid;
    border-image: url("assets/frame1.png") 8 round;
    width: auto;
    height: auto;
    margin: 0 auto 0.25rem auto;
    object-fit: contain;
}

.gallery details img{
    image-rendering: pixelated;
    border: none;
}

.artwork img {
    image-rendering: pixelated;
    margin: auto;
}

.artwork > img {
    width: 100%;
}

.artwork {
    image-rendering: pixelated;
    margin: 0 auto 2rem auto;
    max-width: 500px;
}

.artwork details[open] {
    width: 200px;
}

#right {
    max-width: 250px;
    background-color: black;
    padding: 1rem;
    padding-left: 0;
    display: flex;
    flex: 1;
    overflow: hidden;
}

#flags {
    padding-top: 2rem;
    width: 50%;
}

#flags ul {
    width: 100%;
    margin-left: 0;
    list-style: none;
    color: black;
}

#flags li {
    font-family: 'FakeReceipt', sans-serif;
    font-size: 0.75rem;
    line-height: auto;
    text-align: center;
    padding: auto;
    width: 6rem;
    height: 4rem;
    margin-bottom: 2rem;
    border-left: 1rem solid var(--gray);
    overflow: visible;
    margin-left: -1rem;
    z-index: 0;
    opacity: 85%;

    transition: ease 0.2s;
}

#flags li.active {
    opacity: 100%;
    margin-left:0rem;
    color: black
}

#flags a {
    text-decoration: none;
    font-family: 'LEMON', sans-serif;
}

#flags li:nth-child(5n+1) {
    background-color: var(--orange);
}

#flags li:nth-child(5n+2) {
    background-color: var(--purple);
}

#flags li:nth-child(5n+3) {
    background-color: var(--lime);
}

#flags li:nth-child(5n+4) {
    background-color: var(--blue);
}

#flags li:nth-child(5n) {
    background-color: var(--pink);
}

#flags li:hover {
    margin-left: 0rem;
    transition: ease 0.1s;
    opacity: 100%;
}

@media (width <= 576px) {
    .three-columns {
        height: 100%;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        flex-wrap: nowrap;
        flex-direction: column;
    }
    #left {
        color: white;
        height: 200px;;
        display: block;
        padding: 1rem;
        flex: 0 0 100%;
        min-width: 100%;
        background-color: black;
    }
    .portrait {
        float: left;
        margin-right: 2rem;
        margin-left: 1rem;
    }
    #center {
        display: flex;
        flex-direction: column;
        flex: 1;
        z-index: 1;
        padding-bottom: 4rem;
        min-height: 75vh;
        margin: 0 1rem
    }
    #right {
        max-width: 250px;
        background-color: black;
        padding: 1rem;
        padding-left: 0;
        display: flex;
        flex: 1;
        min-width: 100%;
    }
    #flags {
        display: none;
    }
    #flags_alt {
        margin-top: 1rem;
        width: 100%;
        background-color: black;
        height: 32px;
        display: block;
    }
    #flags_alt ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        margin-left: 0;
        list-style: none;
        color: black; 
    }
    #flags_alt li, #flags_alt a {
        font-family: 'FakeReceipt', sans-serif;
        font-size: 0.75rem;
        line-height: auto;
        text-align: center;
        flex: 1;
        height: 32px;
        margin-bottom: 2rem;
        overflow: visible;
        z-index: 0;
        opacity: 85%;
        transition: ease 0.2s;
        text-decoration: none;
    }
    
    #flags_alt li:nth-child(5n+1) {
        background-color: var(--orange);
    }
    
    #flags_alt li:nth-child(5n+2) {
        background-color: var(--purple);
    }
    
    #flags_alt li:nth-child(5n+3) {
        background-color: var(--lime);
    }
    
    #flags_alt li:nth-child(5n+4) {
        background-color: var(--blue);
    }
    
    #flags_alt li:nth-child(5n) {
        background-color: var(--pink);
    }
    
    #flags_alt li:hover, #flags_alt a:hover {
        font-size: 1.5rem;
        flex: 2;
        height: 64px;
        transition: ease 0.1s;
        opacity: 100%;
        z-index: 3;
    }

    .categories {
        justify-content: center;
        flex-direction: row;
        display: flex;
        flex-wrap: wrap;
        row-gap: 0px;
    }
    .categories h1, hr, p {
        flex: 0 0 100%;
    }
    .thumbnail {
        margin: 0.5rem;
        min-width: 128px;
        max-width: 128px;
        flex: 1;
        width: fit-content;
        height: fit-content
    }
    .thumbnail p {
        padding: 0;
        margin: auto;
        text-align: center;
        display: none;
    }
    .thumbnail:hover p {
        display: block;
    }
    .thumbnail .icon {
        margin-left: auto;
        margin-right: auto;
    }
}