/* HTML5 Boilerplate    */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: "Source Sans Pro", Verdana, Arial, sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.4; }

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }

a { color: #06e; text-decoration: none; }
a:visited { color: #06e; }
a:hover { color: #1A2873; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {    }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }


/* Main */
body
{
    font-size: 1.2em;
    background-color: #fff;
}

header
{
    position: fixed;
    float: left;
    width: 200px;
    margin: 0;
    padding: 0;
}

h1
{
    background-color: #E31A36;
    margin: 0;
    padding: 10px 20px;
    font-size: 2.5em;
    font-weight: normal;
    text-align: center;
    text-shadow: 1px 1px 1px #777;
}

h1 a, h1 a:visited
{
    color: #fff;

}

header .strap
{
    padding: 5px 20px;
    color: #fff;
    text-align: center;
    font-size: 0.6em;
    text-shadow: 1px 1px 1px #95A8BB;
    background-color: #5187BB;
    background-image: url(../img/header-shadow.png);
    background-repeat: repeat-x;
}

nav
{
    margin: 40px 0 0 60px;
}

#main-nav
{
    text-transform: uppercase;
}

#main-nav li
{
    margin-bottom: 5px;
}

#main-nav a
{
    display: block;
    padding: 5px 10px;

    border: 1px solid #bbb;
    border-right: none;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;

    text-decoration: none;

    text-shadow: 1px 1px 1px #aaa;


    transition-duration: 0.1s;
    transition-property: margin-left, padding-right;
    
    -webkit-transition-duration: 0.1s;
    -webkit-transition-property: margin-left, padding-right;

    -moz-transition-duration: 0.1s;
    -moz-transition-property: margin-left, padding-right;
}

#main-nav a:hover
{
    margin-left: -10px;
    padding-right: 15px;

    transition-duration: 0.1s;
    transition-property: margin-left, padding-right;
    
    -webkit-transition-duration: 0.1s;
    -webkit-transition-property: margin-left, padding-right;

    -moz-transition-duration: 0.1s;
    -moz-transition-property: margin-left, padding-right;

}

#main
{
    margin-left: 200px;
    padding-top: 0px;
    border-left: 1px solid #bbb;

}

#page-title
{
    margin: 0 0 20px 0;
    padding: 39px 40px 15px 40px;
}

#page-title h2
{
    margin: 0;
    padding: 0; 

    font-size: 1.8em;
    font-weight: normal;
    text-transform: uppercase;

    text-shadow: 1px 1px 1px #aaa;

    border-bottom: 1px solid #ddd;

}

h3
{
    margin-top: 0;
    text-transform: uppercase;
}


#content
{
    padding: 0 40px 20px 40px;
    min-height: 300px;

    text-shadow: 0.03em 0.03em 1px #aaa;
}

#page #content
{
    padding-bottom: 40px;
}

footer
{
    padding: 20px 40px;
    border-top: 1px solid #bbb;
    text-align: center;
}

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

footer li
{
    display: inline;
    white-space: 
}

footer li:not(:last-child)
{
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #bbb;
}

footer a
{
    text-shadow: 0.03em 0.03em 1px #aaa;
}

footer a:hover
{
    color: #0C2550;

}

.discon
{
    text-decoration: line-through;
}

.panels
{
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.panels li:not(:last-child)
{
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px dashed #ddd;
}

.panels h3
{
    padding: 0;
    margin-bottom: 5px;
}

.panels p:last-child
{
    margin-bottom: 0;
    padding-bottom: 0;
}

.panels .meta
{
    font-size: 0.6em;
    color: #666;
}


.pagination
{
    margin: 40px 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}

.pagination li
{
    display: inline;
    margin: 0 10px;
}

.pagination .nolink
{
    visibility: hidden;
    color: #999;

}

/* Post page */

#post .pagination
{
    margin-top: 80px;
    font-size: 0.8em;
}

#post .pagination li
{
    float: left;
    width: 45%;
    margin: 0;
}

#post .pagination .newer
{
    text-align: left;
    padding-right: 5%;
}

#post .pagination .older
{
    text-align: right;
    padding-left: 5%;
}


/* Project page */

#project-list
{
    margin-top: 40px;
}

#project-list li
{
    padding-left: 235px;
    min-height: 130px;
    background-repeat: no-repeat;
}

#project-list #bliplr
{
    background-image: url(../img/screens/bliplr.gif);
}

#project-list #cloth
{
    background-image: url(../img/screens/cloth.gif);
}

#project-list #game
{
    background-image: url(../img/screens/game.gif);
}

#project-list #recent-tracks
{
    background-image: url(../img/screens/recent-tracks.gif);
}

#project-list #attract-to-orbit
{
    background-image: url(../img/screens/attract-to-orbit.jpeg);
}

#project-list #drawable
{
    background-image: url(../img/screens/drawable.gif);
}

#project-list #sunflow-boxes
{
    background-image: url(../img/screens/sunflow-boxes.gif);
}

#post
{
    margin: 0;
}

#post .meta
{
    margin: 20px 0 0 0;
    padding: 10px 40px;
    background-color: #808A92;
    font-size: 0.8em;
    color: #eee;

}

#post .meta-section
{
    float: left;
    text-shadow: 1px 1px 1px #666;
}

#post .meta-section:not(:last-child)
{
    margin-right: 20px;
}

#post .meta h4, #post .meta div, #post .meta ul, #post .meta li
{
    display: inline;
}

#post .meta h4:after
{
    content: ":";
}

#post .meta ul
{
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#post .meta li:not(:last-child):after
{
    content: ",";
}


@media only screen and (min-width: 35em) {
    


}


@media only screen and (max-width: 480px) {
    
    body
    {
        font-size: 1em;
    }


    #page-title, #content, #footer, #post .meta
    {
        padding-left: 10px;
        padding-right: 10px;
    }

    header
    {
        position: inherit;
        float: none;
        width: auto;
        border-bottom: 1px solid #bbb;
    }

    h1
    {
        float: left;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        height: 55px;
        width: 170px;
    }

    header .strap
    {
        margin-left: 170px;
        padding: 23px 20px 0 20px;
        height: 52px;
        background-image: none;
        font-size: 0.7em;
    }

    nav
    {
        clear: both;
        margin: 10px 10px 0 10px;
    }

    #main-nav li
    {
        margin-bottom: 0;
        margin-right: 3%;
        float: left;
        width: 30%;
        text-align: center;
    }

    #main-nav a
    {
        border: 1px solid #bbb;
        border-bottom-left-radius: 0px;
        border-top-right-radius: 6px;
        border-bottom: none;
    }

    #main-nav a:hover
    {
        margin-left: 0;
        padding-right: 10px;
    }

    #main
    {
        margin-left: 0;
        border-left: 0;
    }


    footer li:not(:last-child)
    {
        margin-right: 5px;
        padding-right: 10px;
    }

    footer li
    {
        font-size: 0.8em;
    }

    .panels li:not(:last-child)
    {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .pagination
    {
        font-size: 0.8em;
    }

    .pagination li
    {
        margin-left: 5px;
        margin-right: 0;
    }

    #project-list li
    {
        padding-left: 0;
        padding-bottom: 150px;
        height: auto;
        min-height: 0;
        background-position: center 90%;
    }

}

.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

@media print {
    * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } 
    a, a:visited { text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; }
    abbr[title]:after { content: " (" attr(title) ")"; }
    .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } 
    pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
    thead { display: table-header-group; } 
    tr, img { page-break-inside: avoid; }
    img { max-width: 100% !important; }
    @page { margin: 0.5cm; }
    p, h2, h3 { orphans: 3; widows: 3; }
    h2, h3 { page-break-after: avoid; }
}
