/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ------------------- */

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-family: "Raleway", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    overflow: hidden;
    overflow-y: auto;
    color: #222;
    background: url(/images/bg.jpg) repeat top left;
    height: 100%;
}

h1 {
    font-weight: 300;
}

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

a:link, a:visited {
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

a:active, a:hover, a:visited:hover {
    color: #999;
}

#banner, #banner-bg {
    margin: auto;
    padding: 80px 0;
    width: 100%;
}

#logo {
    background: url(/images/logo.png) no-repeat top left;
    width: 400px;
    height: 110px;
}

#projects {
    margin: 0px auto;
    width: 400px;
}

#title {
    background-color: #d12e35;
    opacity: 0.9;
    padding: 40px;
}

#ribbon {
    margin: 0 auto;
    width: 420px;
}

#desc {
    width: 400px;
    padding-top: 30px;
    line-height: 1.3em;
    color: #ddd;
}

.name {
    font-size: 25px;
}

@media (max-width: 320px) {
    #logo {
        margin-top: 40px;
    }
    
    #desc {
        padding-top: 0;
    }
    
    #banner, #banner-bg {
        margin: 50px auto;
        padding: 0 !important;
        height: 500px !important;
    }
}

@media (max-width: 440px) {
    #banner, #banner-bg {
        padding: 40px 0;
    }

    #logo {
        width: 100%;
        background-size: 100% auto !important;
    }

    #title, #projects, #desc {
        width: 90%;
    }
}

@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {
    #logo {
        background: url(/images/logo@2x.png) no-repeat;        
        background-size: 400px 110px;
    }
}

main {
    background-color: #f8f8f8;
    padding: 50px 0;
}

.projects {
    margin: 0 auto;
    width: 800px;
}

.projects .project {
    margin-bottom: 140px;
}

.description {
    height: 80px;
}

.description strong {
    font-weight: 900;
    color: #000;
}

.icon {
    width: 80px;
    height: 80px;
    background-size: 100% 100%;
    border-radius: 17.544%;
    float: left;
}

.text-container {
    height: 80px;
    position: relative;
}

.text-container p {
    position: relative;
    top: 50%;
    left: 1em;
    transform: perspective(1px) translateY(-50%);
    font-size: 1.4em;
    line-height: 1.25em;
}

.screenshots {
    clear: left;
    margin-top: 2em;
}

.screenshots li {
    display: inline-block;
    margin-right: 1em;
}

.screenshots li:last-of-type {
    margin-right: 0;
}

.screenshots li img, .screenshots li video {
    max-height: 300px;
}