/* General styles */
html, body {
    height: 100%;
    margin: 0 auto;
    background: #111;
    color: #0c0;
}

body {
    font-family: "Ubuntu", sans-serif;
}

a {
    color: #b9f73e;
    text-decoration: none;
}

a:hover {
    color: #b9f73e;
    text-decoration: underline;
}

a:visited {
    color: #b9f73e;
}

/* Header */
#header {
    margin: 0;
    padding: 16px;
    text-align: left;
    font-size: 2em;
    background: #000;
    color: #0f0;
    font-family: "Ubuntu Mono", monospace;
}

#header img#logo {
    margin: 0;
    padding: 0;
    float: left;
    width: 196px;
    height: auto;
    border: none;
}

#header h1 {
    margin: 0;
    font-size: 2.5em;
}

#header h2#tagline {
    margin: 0;
    font-size: .75em;
    font-weight: normal;
}

#header #name {
    display: inline-block;
    font-family: "Ubuntu", sans-serif;
}

#header #name a {
    color: #fff;
}

/* Navigation */
#nav {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    clear: both;
    background: #000;
}

#nav.top {
    position: relative;
    top: auto;
    left: auto;
    padding: 0;
    font-size: .85em;
}

#nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    padding: 4px;
    font-size: .7em;
    z-index: 1;
}

#nav ul {
    clear: both;
    display: inline-block;
    margin: 0;
    padding: 0;
}

#nav li {
    display: inline-block;
    list-style: none;
}

#nav.top li {
    padding: 0 1em 0;
}

#nav.scrolled li {
    padding: 0 .65em 0;
}

#nav li.selected a {
    color: #099;
}

#nav li.selected a:hover {
    text-decoration: none;
}

#nav.top #top-link {
    display: none;
}

#nav.scrolled #top-link {
    display: inline;
}

#small-logo {
    margin: 0;
    padding: 0;
    vertical-align: middle;
    display: none;
    width: 24px;
}

#nav.top #small-logo {
    display: none;
}

#nav.scrolled #small-logo {
    display: inline-block;
}

/* Main body */
#main {
    margin: 0;
    padding: 48px;
    position: relative;
    background: #000 url('/static/img/dark_stripes.png');

    text-align: left;
}

#main:after { /* Clear floats */
    visibility: hidden;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    display: block;
    clear: both;
    font-size: 0;
    content: "";
}

#main p {
    margin: 0 0 1em 0;
    padding: 0;
    font-size: 1em;
    text-shadow: 2px 2px 4px #000;
}

#main h2 {
    margin: 0;
    clear: both;

    color: #fff;
    font-family: "Ubuntu Mono", monospace;
    font-size: 3em;
    text-align: left;
    text-shadow: 2px 2px 16px #000;
}

#main h3 {
    margin: 0;
    clear: both;

    color: #39e639;
    font-family: "Ubuntu Mono", monospace;
    font-size: 1.75em;
}

#main h4 {
    margin: 0;

    color: #0f0;
    font-family: "Ubuntu Mono", monospace;
    font-size: 1.5em;
}

/* Footer */
#footer {
    margin: 0;
    padding: .5em;
    clear: both;
    background: #000;
    font-size: 1em;
}

.errorlist {
    margin: 0;
    padding: .5em;
    color: #f00;
}

.errorlist li {
    list-style: none;
}

body {
    max-width: 960px;
}

/* Handle screen sizes */
@media (max-width: 980px) {
    #header {
	font-size: 1.75em;
    }

    #nav.scrolled {
        max-width: 980px;
        font-size: .9em;
    }

    #nav.scrolled #small-logo {
        display: none;
    }
}

@media (max-width: 900px) {
    #header {
	font-size: 1.75em;
    }
}

@media (max-width: 800px) {
    #header {
	font-size: 1.5em;
    }

    #header img#logo {
        display: block;
        width: 128px;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    #header {
        font-size: 1.25em;
    }
}

@media (max-width: 650px) {
    body {
        min-width: 480px;
    }

    #header img#logo {
        display: block;
        width: 64px;
        margin: 0 auto;
    }

    #greeting {
        display: none;
    }
}
