@charset "UTF-8";

@font-face {
  font-family: 'fontawesome-stripped';
  src: url('/fonts/fontawesome-stripped.woff');
  font-weight: normal;
  font-style: normal;
}

[class^="font-awesome-"],
[class*=" font-awesome-"] {
  font-family: fontawesome-stripped;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
}
[class^="font-awesome-"]:before,
[class*=" font-awesome-"]:before {
  text-decoration: inherit;
  display: inline-block;
  speak: none;
}

.font-awesome-book:before { content: '\e800'; } /* '' */
.font-awesome-twitter:before { content: '\f099'; } /* '' */
.font-awesome-linkedin:before { content: '\f0e1'; } /* '' */
.font-awesome-github:before { content: '\f113'; } /* '' */
.font-awesome-stackoverflow:before { content: '\f16c'; } /* '' */

@font-face {
  font-family: 'Droid Sans Mono';
  font-style: normal;
  font-weight: 400;
  src: local('Droid Sans Mono'), local('DroidSansMono'), url(/fonts/droid-sans-mono.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url(/fonts/open-sans.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/open-sans-bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: local('Open Sans Italic'), local('OpenSans-Italic'), url(/fonts/open-sans-italic.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(/fonts/open-sans-bold-italic.ttf) format('truetype');
}

html, body {
    max-width: 720px;
    margin: 1em auto;
    padding: 0 0.7em;
    font-family: "Open Sans", sans-serif;
    background-color: white;
}

a {
    color: #CC333F;
    text-decoration: none;
    transition: all 40ms ease-in;
    display: inline;
}

a:hover {
    color: #FFF;
    background-color: #CC333F;
}

/* We have a single navigation element, in a different colour, that links back
   to the home page. The rest have the normal link styling. */
header {
    margin-bottom: 1.5em;
    font-size: 1.2em;
}

/* This is a hack to clear the header floats. */
header:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

header nav ul {
    margin: 0;
    padding: 0;
}

header nav ul li {
    float: left;
    list-style-type: none;
}

header nav ul.home {
    float: left;
}

header nav ul.extra {
    float: right;
}

header nav ul.home li a {
    color: #FFF;
    background-color: #CC333F;
    font-style: italic;
    border-radius: 2px;
    transition: all 75ms ease-in;
}

header nav ul.home li a:hover {
    color: #CC333F;
    background-color: rgba(204, 51, 63, 0.1);
}

header nav ul.extra li:last-child a {
    margin-right: 0;
}

header nav ul.extra li a {
    margin: 0 0.6em;
    color: #aaa;
    text-transform: lowercase;
}

header nav ul.extra li a:hover {
    color: #222;
    background-color: transparent;
}

header nav ul.home li a {
    margin-left: 0; /* Since this navigation element is always the leftmost, we
                       override it to not have any left margin (whereas the
                       other links in the nav area do. ) */
    padding: 0 0.4em;
}

h1 {
    font-size: 1.6em;
    margin: 1em 0;
}

h2 {
    font-size: 1.6em;
    padding-bottom: 0.1em;
    border-bottom: 1px solid #ccc;
}

h3 {
    font-size: 1.2em;
    padding-bottom: 0.1em;
    border-bottom: 1px solid #ccc;
    font-style: italic;
    font-weight: bold;
}

footer {
    border-top: 2px solid #eee;
    margin-top: 2em;
    margin-bottom: 2em;
    overflow: hidden;
    font-size: 0.8em;
    line-height: 1.4;
    opacity: 0.6;
    transition: opacity 100ms ease-in;
}

footer:hover {
    opacity: 1;
}

footer div.info {
    float: left;
}

footer div.contact {
    float: right;
}

footer div.contact a {
    font-style: normal;
}

footer div.contact p {
    text-align: right;
}

footer div p {
    margin: 1em 0 0;
}

article p {
    text-align: justify;
}

pre, code {
    font-family: "Droid Sans Mono", monospace;
    font-size: 1em;
}

:not(pre) > code {
    white-space: pre-wrap;
}

pre > code {
    white-space: pre;
}

pre, :not(pre) > code {
    background-color: #f7f7f7;
    border: 1px solid #eee;
}

a > code {
    background-color: transparent;
    border: none;
}

pre {
    padding: 0.6em;
    overflow: auto;
}

blockquote {
    text-align: left;
    margin-left: 1.5em;
    padding-left: 0.7em;
    border-left: 3px solid #ddd;
    font-style: italic;
}

iframe {
    /* lol browsers */
    border: none;
    border-width: 0;
}

.screen-reader-text {
    position: absolute;
    /* The next two lines are among the worst shite I've ever written. */
    top: -9999px;
    left: -9999px;
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.youtube-container iframe,
.youtube-container object,
.youtube-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 600px) {
    article p {
        text-align: left;
    }

    footer div.info, footer div.contact {
        float: none;
    }

    footer div.contact p {
        text-align: left;
    }
}

img:not(.nonstandard), video:not(.nonstandard) {
  display: block;
  max-width:100%;
  margin: 2em auto;
  height: auto;
  -webkit-box-shadow: 0 0 2em 0 rgba(0,0,0,0.35);
  -moz-box-shadow: 0 0 2em 0 rgba(0,0,0,0.35);
  box-shadow: 0 0 2em 0 rgba(0,0,0,0.35);
}

/* Damn son, Chrome's default margins for figure are crazy */
figure {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  display: block;
}

/* Builds page */

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    font-weight: inherit;
}

th, td {
    padding: 0.3em;
}

thead th {
    background-color: #f8f8f8;
}

tbody th {
    text-align: left;
}

tr:nth-child(even) {
    background-color:#f8f8f8;
}

td.status-image {
    text-align: center;
}

td.status-image a img {
    vertical-align: middle;
    margin-top: -5px;
}

td.status-image a:hover {
    background-color: transparent;
}

/* Syntax highlighting */

.highlight  { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

/* Make line numbers unselectable: excludes line numbers from copy-paste user ops */
.highlight .lineno {-webkit-user-select: none;-moz-user-select: none; -o-user-select: none; -ms-user-select: none}
.lineno::-moz-selection {background-color: transparent;} /* Mozilla specific */
.lineno::selection {background-color: transparent;} /* Other major browsers */
