@font-face {
    font-family: 'iA';
    src: url('../../_fonts/iAWriterMonoV.woff2') format('woff2-variations');
}

:root {
    --bg-fallback: #97e4bd;
    --bg-image: url("841-NEWYARE3.JPG");
    --border-color: #c3d4a7;
    --slab-bg: #00000090;
    --slab-text: #fff;
    --link-color: #00f;
    --link-hover: #65c;
    --header-text: #9b9;
    --illegal-color: #f33;
}

html {
    margin: 0;
    padding: 0;
}
body {
    margin:0; padding: 2.5em;
    background-color: var(--bg-fallback);
    background-image: var(--bg-image);
    background-position: center center;
    background-attachment: fixed;
    color: #000;
    font-family: iA, monospace;
}
.fake-body-to-manhandle {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0 auto;
    width: fit-content;
    gap: 1em;
    position: relative;
    z-index: 1000;
    max-width: 1152px;
}
@media (max-width: 2000px) {
    .fake-body-to-manhandle {
        max-width: 1001px;
    }
}
@media (max-width: 1400px) {
    .fake-body-to-manhandle {
        max-width: 845px;
    }
}
@media (max-width: 900px) {
    body {
        padding: 1em;
    }
    .fake-body-to-manhandle {
        max-width: 100%;
    }
}

/*
    top navigation
*/
.toplel {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    position: relative;
}
.rrerr {
    width: 250px;
    height: 120px;
    position: relative;
}
.rrerr img {
    position: relative;
    height: 200%;
    margin-top: -25%;
    margin-bottom: -25%;

    width: 100%;
    margin-left: -5%; 
    margin-right: -5%;
    z-index: -1000;
}
h1 {
    margin: 0;
}
.eh {
    color: var(--slab-text);
}
.eh em {
    font-weight: 500;
    text-decoration: underline 1px;
}

/*
    index links to tape pages
*/
.tapeselect {
    display: flex;
    flex-direction: column;
    place-content: start;
    border: var(--border-color) 4px outset;
    box-shadow: 0 0 1px 0 #000;
    margin-left: -2px; /* just looks nicer. and nobody will notice ;3c */
}
.dragontape {
    display: grid;
    grid-template-columns: 200px auto;
    text-decoration: none;
    gap: 0;
    padding: 0;
    border: var(--border-color) 4px inset;

}
.dragontape .header {
    padding: 0.5em;
    background-color: #000;
    color: var(--header-text);
}
.dragontape:hover .header {
    color: #d1d691 !important;
}
.dragontape h2 {
    margin-top: 0;
    padding-top: 0;
    text-decoration: underline 2px;
}
.dragonselection {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25em;
    padding: 0.5em;
    background-color: #000000C0;
}
.dragontape:hover {
    background-color: #000000;
}
.dragonselection img {
    width: 150px;
    height: 96px;
    font-size: 0.8em;
    border-radius: 5px;
    display: block;
}
@media (max-width: 666px) {
    .dragonselection img {
        width: 75px;
        height: 48px;
    }
    .dragontape {
        grid-template-columns: 100px auto;
    }
}

a:link, a:visited, a:active {
    color: var(--link-color);
    text-decoration: underline;
}
a:hover {
    text-decoration: underline 2px;
    font-weight: 700;
    color: var(--link-hover);
}

/*
    individual tape page styles
*/
.allright {
    border: var(--border-color) 4px outset;
    box-shadow: 0 0 1px 0 #000;
    background-color: var(--slab-bg);
    color: var(--slab-text);
    display: grid;
    align-items: stretch !important;
    grid-template-columns: [titlex] minmax(100px, 200px) [playex] auto [descrex] auto [flagx] 2.5em;
}
.allright > * {
    border: var(--border-color) 4px inset;
}
.allright > div {
    padding: 0.25em;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
}
@media (max-width: 900px) {
    .allright {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .allright .tune-wrap {
        border-bottom: none;
    }
    .allright .audio-wrap {
        border-top: none;
        border-bottom: none;
        padding-bottom: 1em;
    }
    .allright .comment {
        display: block;
        border-top: none;
        padding-bottom: 1em;
        text-align: center;
    }
    .allright .flag {
        display: none;
    }
}
.tune-wrap {
    grid-column-start: titlex;
    text-align: right;
}
.audio-wrap {
    grid-column-start: playex;
}
.audio-wrap > audio {
    height: 40px;
    max-width: 300px;
}
.comment {
    grid-column-start: descrex;
    opacity: 0.8;
    font-size: 0.9em;
}
.flag {
    grid-column-start: flagx;
}
a.illegal:link, a.illegal:visited, a.illegal:active {
    color: var(--illegal-color) !important;
    text-decoration: none;
}
a.illegal:hover {
    color: #fff !important;
}

.eyessstext {
    margin: 25px auto;
    display: block;
    padding: 10px;
    text-align: center;
}
a.eyessstext:hover {
    background-color: #000;
}

