html {
    color: #45374e;
    font-size: 1em;
    line-height: 1.4;
    background: #ece6f1;
    font-family: 'Libre Baskerville', serif;
}

body {
    position: relative;
    min-height: 100vh;
    min-width: 100vw;
    padding-bottom: 15em;
    overflow: hidden scroll;

    align-content: center;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


div {
    display: block;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cinzel', serif;
}

#fpicon,
#fpgame {
    background: url(../img/fpicon.png);

    width: 20vw;
    height: 22vw;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;

    display: inline-block;
}

#fpicon {
    background-image: url('/img/fpicon.png');
}

#fpgame {
    background-image: url('/img/fpgame.png');
}

/* HEADER */
header {
    margin: 0 1vw;
    width: 90vw;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1.25em;
    padding: 1em 4vw 0 4vw;
    font-family: Arial, sans-serif;

    border-bottom: 5pt solid #796d82;
}

header #fpgame {
    grid-row: 1 / 3;
    width: 12em;
    height: 12em;
    position: relative;
    bottom: -2px;
}

header h1 {
    margin: 0;
    font-size: 3em;
    align-self: end;
}

header h3 {
    margin: 0;
    font-size: 2em;
    font-weight: normal;
    color: #777;
    align-self: start;
}

@media only screen and (max-width: 34em) {
    header {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 0.625em;
    }

    header #fpgame,
    header h1,
    header h3 {
        grid-row: auto;
        grid-column: auto;
        align-self: auto;
    }

    header h1,
    header h3 {
        text-align: center;
    }
}

/* END HEADER */
footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    margin: 10pt auto 0 auto;
    padding: 2em 5em;
    background: #cec4d4;
    font-size: 10pt;

    box-shadow: #796d82 0 -2pt 3pt;
}

footer>span {
    flex-grow: 1;
}

footer .address {
    flex: 1 1 30%;
    text-align: left;
}

footer .compnum {
    flex: 1 1 60%;
    text-align: right;
}

@media only screen and (max-width: 34em) {
    footer {
        padding: 1em;
        display: block;
    }

    footer > span {
        display: block;
        text-align: center !important;
        margin-bottom: 5pt;
    }
}

/* PEOPLE */
#people {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5em 1em;
    max-width: 60em;
    margin: 0 auto;
}

#people h2 {
    font-size: 2.2em;
    margin-bottom: 2em;
    padding-bottom: 0.25em;
    border-bottom: 1pt solid #000;
}

#people .team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 3em 2em;
    width: 100%;
}

#people .member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    flex: 1;
    min-width: 180px;
}

#people .member .portrait {
    order: 2;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: .2em solid #796d82;
}

#people .member .name {
    order: 1;
    font-size: 1.2em;
    font-weight: 600;
    white-space: nowrap;
}

#people .member .job {
    order: 3;
    font-size: 1em;
    color: #555;
}

@media only screen and (max-width: 34em) {
    #people .team {
        flex-direction: column;
        align-items: center;
        gap: 2.5em;
    }

    #people .member {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "photo  name"
            "photo  job";
        column-gap: 1.25em;
        row-gap: 0.5em;
        align-items: center;
        width: 100%;
        max-width: 320px;
        min-width: 0;
    }

    #people .member .portrait,
    #people .member .name,
    #people .member .job {
        order: 0;
    }

    #people .member .portrait {
        grid-area: photo;
        width: 70px;
        height: 70px;
    }

    #people .member .name {
        grid-area: name;
        text-align: left;
        margin-bottom: 0.5em;
    }

    #people .member .job {
        grid-area: job;
        text-align: left;
    }
}
/********/

/* GAME LIST */
#gamelist {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5em 1em;
}

#gamelist h2 {
    font-size: 2.2em;
    margin-bottom: 2em;
    padding-bottom: 0.25em;
    border-bottom: 1pt solid #000;
}

#gamelist .game {
    position: relative;
    width: 80vw;
    height: 46vw;
    max-width: 616px;
    max-height: 353px;
    border-radius: 1vw;
    
    text-decoration: none;
    overflow: visible;
    background: #FFF;

    overflow: hidden;
}

#gamelist .game > img {
    width: 100%;
    height: 100%;
}

#gamelist .game h3 {
    display: block;
    position: absolute;
    top:50%;
    width:100%;
    height: 2em;
    text-align: center;
    vertical-align: middle;
    bottom: 0;
    background: #796d82;
    color: #030303;
    font-size: 2em;
    line-height: 2em;
    opacity: 0;
}

#gamelist .game:hover h3 {
    opacity: 1.0;
}

/**/
.storerow {
    display: block;
    width: 80vw;
    max-width: 616px;
    position: relative;
    text-align: center;
    padding: 1em;
}

.storelogo {
    display: inline-block;
    width: 15em;
    height: 5em;
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 0.5em;
}

.storelogo.steamvr {
    background-image: url('/img/steamvr_logo.svg');
}

.storelogo.metavr {
    background-image: url('/img/Meta_Quest_logo.svg');
    
}

/**/

.hidden {
    display: none !important;
    opacity: 0 !important;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (hover: hover) {
    .series .hover {
        display: none;
    }
}

@media only screen and (max-width: 34em) {

    .left,
    .right {
        float: none;
        display: inline-block;
    }

    .inout {
        width: auto;
        display: block;
        max-width: fit-content;
        margin: 2em auto;
    }

    .vmid h2 {
        font-size: 4.9vw;
    }

    .vmid .wordline {
        font-size: 4vw;
    }

    .hidemobile {
        display: none;
    }

    .team {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

}


@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {

    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}