* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "CamingoCode";
    src: url(./fonts/CamingoCode-Regular.ttf);
}

html {
    font-size: 100%;
}

/* Layout */

body {
    font-family: "Avenir Next", "Avenir", sans-serif;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background: #fff;
    overflow: hidden;
}

#app {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.content {
    width: 100%;
}

.sidebar {
    /* min-width: 400px; */
    min-width: 375px;
    max-width: 480px;
    padding: 3rem 2rem;
    background: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-height: 100vh;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}

p+h2,
ul+h2,
ul+h3 {
    margin-top: 4rem;
}

p+h3 {
    margin-top: 3rem;
}

p+p {
    margin-top: 1rem;
}

dt {
    margin-top: 1rem;
}

main {
    padding: 2%;
    /* max-width: 1280px; */
    background: black;
    margin: 0 auto;
    position: relative;
}

.intro {
    /* font-family: "PT Serif"; */
    line-height: 1.3;
    /* font-style: italic; */
    margin-top: 2rem;
}

.overlay {
    width: 100%;
    height: 100%;
    z-index: 2;
    bottom: 0;
    left: 0;
    background-repeat: no-repeat;
    position: absolute;
    cursor: default;
    pointer-events: none;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 1)));
    background: -webkit-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 1));
    background: -o-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 1));
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 1))
}

.char:not(.transparent):hover {
    cursor: default;
    color: #ffcc00;
    /* transition: color 2s; */
}

.transparent:hover {
    opacity: 1;
}
main {
    padding: 1rem;
}

main h1+h2 {
    margin-top: 2rem;
}

main h2+h3 {
    margin-top: 2rem;
}

main h3+ul {
    margin-top: 2rem;
}

ul {
    margin-top: 1rem;
    margin-left: 1.25rem;
}

li {
    margin-top: 0.5em;
}

/* Typography */
p {
    line-height: 1.3;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
}

h2.subtitle {
    font-weight: 400;
}

main h1 {
    font-size: 3rem;
    line-height: 1.2;
}

main h2 {
    font-size: 1.5rem;
    font-family: "PT Serif";
    font-weight: normal;
    opacity: 0.7;
}


/* Elements */

dl {
    margin-top: 2rem;
}

main {
    width: 100%;
}

dt {
    font-weight: 600;
    font-size: 1rem;
}

dd {
    opacity: 0.6;
}

hr {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

hr.naked {
    border: none;
}

/* Styles */
.lower {
    -webkit-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
}

a {
    color: black;
}

.chars {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    letter-spacing: 1em;
    text-transform: uppercase;
     margin: 0 auto;
     justify-content: center;
     align-self: center;
     text-align: center;

}

.char {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    font-family: CamingoCode;
    width: 64px;
    height: 64px;
    -webkit-transition: color 0.25s;
    -o-transition: color 0.25s;
    transition: color 0.25s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.yellow {
    color: #ffcc00;
}

.transparent {
    opacity: 0.2;
    -webkit-transition: opacity 0.25s;
    -o-transition: opacity 0.25s;
    transition: opacity 0.25s;
    cursor: default;
}

@media (max-width: 640px) {
    body {
        overflow: auto;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        padding-bottom: 2rem;
        max-height: initial;
    }

    #app {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        max-height: initial;
    }

    .sidebar {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        min-width: initial;
        width: 100%;
        padding-bottom: 2rem;
        max-width: initial;
        margin-bottom: 2rem;
        display: block;
        max-height: initial;
        -webkit-box-flex: 0;
        -ms-flex: 0;
        flex: 0;
        overflow: initial;
    }

    .char {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        font-family: CamingoCode;
        width: 32px;
        height: 32px;
    }


    main h1 {
        font-size: 2rem;
    }

    main h2 {
        font-size: 1.25rem;
    }

    main h3 {
        font-size: 1.125rem;
    }
}