@font-face {
  font-family: 'Apoc';
  font-style: normal;
  src:  url('Apoc-Light.woff2') format('woff2'),
        url('Apoc-Light.woff') format('woff');
}

@font-face {
  font-family: 'Apoc';
  font-style: italic;
  src:  url('Apoc-LightItalic.woff2') format('woff2'),
        url('Apoc-LightItalic.woff') format('woff');
}

body {
  background: #402C2C;
  margin: 0;
  padding: 0;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}

canvas {
  display: block;
  background: transparent;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  position: fixed;
  top: 0;
  left: 0;
}

main {
    position: fixed;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font: normal normal 90px/1 "Apoc";
    text-align: center;
    font-weight: 100;
    height: 100vh;
    padding: 10%;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

main h1 {
    font-weight: 100;
    max-width: 15ch;
    pointer-events: none;
}

main h2 {
    font-weight: 100;
    font-size: .5em;
    font-style: italic;
    margin-top: 0;
}

main h1::selection,
main h2::selection,
main em::selection {
    background:black;
}

aside {
    margin-top: 100vh;
    display: flex;
    flex-direction: column;
}

aside.games {
    align-items: center;
}

section {
    width: 50%;
    padding: 1%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: space-between;
    box-sizing: border-box;
    align-self: flex-start;
    font-size: 40px;
    /* margin-bottom: 100vh; */
}

section:nth-child(odd) {
    align-self: flex-end;
}

section.about {
    background: #A6D8C9;
    color: black;
}

section.about a {
    display: inline;
}

section h2 {
    font: italic 400 2.25em/1 "Apoc", serif;
    margin: 0;
}

section p,
section a {
    font: normal 200 1em/1.3 "base-mono-narrow", monospace;
    max-width: 50ch;
    margin: 1em 0 0 0;
    display: block;
}

#youtube-videos {
    display: none;
}

hr {
    border: none;
    border-top: 1px solid black;
    outline: none;
    margin: 45px;
    margin-left: 0;
    max-width: 20%;
}

section a {
    font-size: inherit;
    color: black;
}

section a:visited {
    color: inherit;
}

section.links {
    background: #4D79EA;
    color: black;
}

section.socials {
    background: black;
    color: white;
}

section.socials a,
section.socials a:visited {
    color: white;
}

section.colophon {
    background: #EBDDC7;
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
    padding: 1em 2em;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 0;
}

section.colophon p {
    margin: 0;
    font-size: .9em;
    max-width: 100vw;
}

section.colophon a {
    display: inline;
    font-size: inherit;
}

section.colophon a,
section.colophon a:visited {
    color: black;
}

p.vid-links {
    font-size: 0.8em;
    margin-top: 0;
}

button {
    border: none;
    outline: none;
}

section a.featured-link,
button {
    color: white;
    background: black;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 40px;
    position: relative;
    display: inline-block;
    margin: 0;
    font-size: 0.8em;
}

/*-- Games Page --*/

.games-list {
    width: 70%;
    max-width: 1080px;
    padding: 0;
    margin: 0;
}

.games-list li {
    display: flex;
    flex-direction: row;
    color: white;
    text-align: center;
    font-family: "base-mono-narrow";
    padding-bottom: 300px;
    justify-content: center;
    align-items: center;
}

.games-list figure {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.games-list figcaption {
    font-size: 2em;
    background: #402C2C;
    padding: 1em;
    display: inline-block;
    box-shadow: 0 0 20px 10px #402C2C;
}

.games-list img {
    max-width: 100%;
}

.info-list {
    position: fixed;
    left: 100vw;
    top: 0;
    width: 50vw;
    padding: 0;
    display: block;
}

.info-list .close-button {
    background-color: #A6D8C9;
    margin: 1em 0;
    color: black;
    transition: all .3s;
    left: 0;
    cursor: pointer;
}

.info-list .close-button.shown {
    left: -50vw;
}

.info-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    box-sizing: border-box;
    transition: all .3s;
    position: absolute;
    padding: 0;
    margin: 0;
    width: 50vw;
    height: 100vh;
    left: 0;
}

.info-list li.active {
    left: -50vw;
}

.info-list .info {
    background-color: #A6D8C9;
    color: black;
    text-align: left;
    font-family: "base-mono-narrow", monospace;
    padding: 15px;
}

.info-list button {
    font-family: "base-mono-narrow", monospace;
    display: inline-block;
    margin-top: 1em;
}

.info-list button a {
    text-decoration: none;
    color: white;
}

.info-list h3 {
    margin-top: 0;
}

.info-list a {
    margin: 0;
    display: inline;
}

@media (hover: hover) {
    section a.featured-link:hover {
        transform: rotate(-15deg);
    }
}

@media (max-width: 1920px) {
    main h1 {
        font-size: 130px;
    }

    section {
        font-size: 30px;
    }
}

@media (max-width: 1440px) {
    main h1 {
        font-size: 100px;
    }

    section h2 {
        font-size: 2em;
    }

    section.colophon {
        padding: 5%;
    }

    section.colophon p {
        font-size: 0.6em;
        max-width: none;
    }

    .info-list p {
        font-size: .8em;
    }
}

@media (max-width: 768px) {
    section {
        width: 80%;
        padding: 5%;
        font-size: 25px;
    }

    main h2 {
        font-size: 0.3em;
    }

    .games-list {
        width: 100%;
    }

    .games-list figure {
        margin-left: 0;
        margin-right: 0;
    }

    .info-list li {
        width: 80vw;
    }

    .info-list li.active {
        left: -80vw;
    }

    .info-list .close-button.shown {
        left: -80vw;
    }

    .info-list p {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    section {
        font-size: 15px;
    }

    main h1 {
        font-size: 60px;
    }

    section.socials a {
        color: white;
    }

    section.colophon p {
        font-size: 12px;
    }

    section a.featured-link {
        display: block;
        margin: 10px -10px;
        padding: 10px;
        text-align: center;
    }
}