html {
    background-color: #000;
    color: #e3e7df;
    font-family: dotrice, monospace;
    padding: 0px;
    text-shadow: 0 0 9px #6f2;
}

body {
    margin: 0em 2em;
    padding: 0;
}

h1, h2 {
    font-size: 2em;
    color: #6f2;
    font-family: 'share tech mono', monospace;
    font-weight: bold;
    margin: .5em 0;
    padding-top: 0;
    text-shadow: 0 0 14px #6f2;
}

h1:first-child {
    margin-top: 0;
}

nav {
    background-color: #e3e7df;
    background-color: #e8e8e8;
    color: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2em;
    z-index: 2;
    font-family: 'share tech mono', monospace;
    text-shadow: none;
    counter-reset: nav-link;
}

nav a {
    counter-increment: nav-link;
    color: #000;
    font-size: 1.5em;
    text-decoration: none;
    font-weight: normal;
    padding: 0 4em 0 0;
    margin: 0;
}

nav a::before {
    content: counter(nav-link);
    color: #e3e7df;
    background-color: #000;
    font-weight: bold;
    padding: 0 7px;
    margin-right: 5px;
}

nav a:hover, nav a:focus {
    color: #e3e7df;
    background-color: #000;
    text-decoration: none;
}

nav a:hover::before, nav a:focus::before {
    font-weight: bold;
    color: #fff;
    text-decoration: underline;
}

footer {
    position: fixed;
    bottom: 5px;
    left: inherit;
    color: #555;
    text-shadow: 0 0 9px #222;
}

footer a:link, footer a:visited {
    color: inherit;
}

p {
    font-weight: bold;
    margin: 1em 0;
    padding-left: 1.5em;
    background-image: url('../images/prompt.png');
    background-position: top left;
    background-repeat: no-repeat;
}

a {
    color: #6f2;
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

ul, ol, li {
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: bold;
}

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

ul li {
    margin-left: 1.5em;
    padding-left: 1.655em;
    background-image: url('../images/asterisk-bullet.png');
    background-position: top left;
    background-repeat: no-repeat;
}

.strong {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1em;
}

#content {
    margin-top: 2.5em;
}

#content:focus {
    outline: none;
}

#custom-code {
    color: #608060;
}

#custom-code:focus {
    outline: none;
}

div.page {
    padding-top: 2em;
}

.page:focus {
    outline: none;
}

@font-face {
    font-family: dotrice;
    src: url('../fonts/monospace/Dotrice-Regular.otf');
}

@font-face {
    font-family: dotrice_condensed;
    src: url('../fonts/monospace/Dotrice-Condensed.otf');
}

.type-in {
    opacity: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none;
}

#ascii {
    position: absolute;
    right: 2em;
    bottom: 1.5em;
    font-family: 'ubuntu mono', monospace;
    font-size: 1em;
    line-height: 1;
    color: #6f2;
    text-align: left;
}

#ascii pre {
    font-family: inherit;
    line-height: 1;
    padding: 0;
    margin: 0;
}

@keyframes ascii-fade-in{
    to {
        opacity: 0.8;
    }
}

#ascii.fade-in {
    animation: ascii-fade-in 5s ease-in forwards;
}

@keyframes scan-line {
    from {
        left: 0px;
        top: 99%;
    } to {
        left: 0px;
        top: 0px;
    }
}

@-webkit-keyframes scan-line {
    from {
        left: 0px;
        top: 99%;
    } to {
        left: 0px;
        top: 0px;
    }
}

#scan-line {
    position: absolute;
    left: 0;
    top: 99%;
    width: 100%;
    height: 4px;
    opacity: .6;
    background-color: #fff;
    display: none;
}

#content.scan-line {
    animation: scan-skew 2s ease-in 2;
    -webkit-animation: scan-skew 2s ease-in 2;
}

@keyframes scan-skew {
    from {
        transform: skewX(0);
    } to {
        transform: skewX(5deg);
    }
}

@-webkit-keyframes scan-skew {
    from {
        -webkit-transform: skewX(0);
    } to {
        -webkit-transform: skewX(5deg);
    }
}

.scan-skew {
    animation: scan-skew 2s ease-in 2;
    -webkit-animation: scan-skew 2s ease-in 2;
}

#scan-line.scan-line {
    display: block;
    animation: scan-line 2s linear 2;
    -webkit-animation: scan-line 2s linear 2;
}

.matrix-background {
    background-image: url('../images/matrix_code.gif');
    background-repeat: repeat-x;
    opacity: .25;
}

@keyframes blip-shout {
    from {
        left: -2px;
        top: 0;
        font-size: 3em;
    } to {
        left: 2px;
        top: -1px;
        font-size: auto;
    }
}

@-webkit-keyframes blip-shout {
    from {
        left: -2px;
        top: 0;
        font-size: 3em;
    } to {
        left: 2px;
        top: -1px;
        font-size: auto;
    }
}

.blip-shout {
    position: relative;
    animation: blip-shout .1s 2;
    -webkit-animation: blip-shout .1s 2;
}

/* small screen devices
------------------------------------------------*/
@media only screen and (max-device-width: 640px) {
    body {
        margin: 0 0.5em;
    }

    nav {
        padding: 0 0.5em;
    }

    nav a:link, nav a:visited {
        font-size: 1.25em;
        padding-right: 1em;
    }

    h1, h2 {
        font-size: 1.5em;
    }

    p, ul, ol, li {
        margin-top: .5em;
        margin-bottom: .5em;
        font-size: 1em;
    }

    ul li {
        margin-left: .75em;
    }

    footer .contact {
        display: none;
    }

    #content {
        font-size: 1em;
        margin-top: 2.5em;
    }
}
