.layout {
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "sidebar"
        "footer";
    grid-template-rows: auto auto 1fr auto;
    gap: 3rem;
    margin: 3vw;
}
.layout > header {
    grid-area: header;
}
.layout > aside:nth-of-type(1) {
    grid-area: sidebar;
}
.layout > main {
    grid-area: main;
}
.layout > aside:nth-of-type(2) {
    grid-area: sidebar-right;
}
.layout > aside:nth-of-type(3) {
    grid-area: chat;
}
.layout > footer {
    grid-area: footer;
}

header {
    display: flex;
    /*align-items: center;*/
    /*justify-content: space-around;*/
    padding: 0.5rem;
    flex-direction: column;
}

@media (min-width: 52rem) {
    /* Breakpoint Tablet portrait up */
    /*
    .layout {
        grid-template-areas:
            "footer"
            "header"
            "main"
            "sidebar";
        grid-template-rows: auto auto 1fr auto;
        grid-template-columns: 1fr;
    }
    */
    /*
    .layout > aside:nth-of-type(1) > nav {
        flex-flow: nowrap column;
    }
    */
    /*
    header {
        flex-direction: row;
        height: fit-content;
    }
    */
}

body {
    margin: 0;
    position: relative;
    overflow: auto;
}

#c {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    z-index: -1;
    overflow: hidden;
}

h2,
h3,
p,
a {
    word-break: break-word; /* Samsung browser */
    word-wrap: break-word; /* IE 11 */
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

h2 {
    display: flex;
    justify-content: center;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

main > section {
    padding: 0 1.2rem 1.2rem;
}

aside {
    display: flex;
    flex-wrap: wrap;
    /*flex-direction: column;*/
    align-items: center;
    justify-content: space-around;
    height: fit-content;
    /*max-width: fit-content;*/
    padding: 1rem 0;
}

aside nav {
    display: flex;
    justify-content: center;
}

img.flex-img {
    object-fit: contain;
    width: 100%;
    /*height: auto;*/
}

a.button-19 {
    text-align: center;
    margin: 5px;
    /*max-width: 10rem;*/
    padding: 0.5rem;
}

.btn88x31 {
    image-rendering: pixelated;
    height: 31px;
    width: 88px;
}

.quadgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: fit-content;
}

.half-size {
    flex: 1 1 45%;
    /*min-width: min(20rem, 100%);*/
}

.quarter-size {
    flex: 1 1 20%;
    min-width: min(12rem, 100%);
}

.one-third-size {
    flex: 1 1 30%;
    min-width: min(12rem, 100%);
}

.two-third-size {
    flex: 1 1 60%;
}

.three-quarter-size {
    flex: 1 1 70%;
}

.full-size {
    flex: 1 1 100%;
}

.scrollbox-parent {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scrollbox {
    overflow-y: scroll;
    height: 12rem;
}

.no-highlight {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    user-select: none; /* Standard property */
}

.bandcamp-embed {
    border: 0;
    height: 472px;
    width: 100%;
}

.movie {
    object-fit: fill;
}

/* used to prevent page scroll overriding zoom in hamster iframe */
.noScroll {
    overflow: hidden !important;
}

.draggable {
    position: absolute;
    z-index: 10;
    display: inline;
}
