/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

/* http://colorschemedesigner.com/#2n52iK-hWpBpB */
/* http://colorschemedesigner.com/#2S425--9Bg0g0 */
html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    background-color: #111;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html {
    height: 100%;
    width: 100%;
}

body  {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: #111;
}

body > section.page {
    height: 100%;
    min-height: 650px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #111;
    box-sizing:border-box;
    -moz-box-sizing:border-box; /* Firefox */
}

body > section.page > article.content {
    padding: 1.5em;
    height: 100%;
    overflow: hidden;
    box-sizing:border-box;
    position: relative;
    z-index: 1;
}

body > nav {
    z-index: 100;
    position: fixed;
    /*width: 500px;*/
    margin-right: -250px;
    top: 30%;
    left: 0;
    opacity: .8;
}

body > nav ul {
    padding: 0;
    margin: 0;
}

body > nav ul li {
    text-align: left;
    display: block;
    padding: 0;
    padding-left: 0;
    margin: 2px 0;
    cursor: pointer;
    background-color: #333;
    color: #FFF;
    text-transform: lowercase;
    font-family: 'Oxygen', sans-serif;
    font-size: 1.5em;
    overflow: hidden;
    text-overflow: none;
    width: auto;
    max-width: 1.5em;
    height: 1.5em;
    -webkit-transition: max-width .2s ease-in-out;
    -moz-transition: max-width .2s ease-in-out;
    -o-transition: max-width .2s ease-in-out;
    transition: max-width .2s ease-in-out;
}
body > nav ul li:hover {
    max-width: 10em;
}
body > nav ul li label {
    padding: 0 .25em;
}
body > nav ul li span.fa {
    display: inline-block;
    font-size: 1em;
    padding: .25em;
}
a {
    cursor: pointer;
}

h2 {
    margin-top: 0;
}

#page-intro {
    background-color: #111;
    color: #FAFAFA;
}
#page-intro a {
    color: #FAFAFA;
}

#page-intro article {
    width: 80%;
    margin: auto;
    text-align: left;
    position: relative;
}

#page-intro article .about {
    font-weight: 100;
    font-size: 2.5em;
    font-size: 3vw;
    font-family: 'Roboto', 'Oxygen', sans-serif;
    margin-top: 2em;
/*    position: absolute;
    bottom: 2em;*/
}

#page-intro h1 {
    font-family: 'Oxygen', sans-serif;
    font-size: 5em;
    font-size: 6vw;
    text-transform: lowercase;
    color: #79170F;
    /*text-shadow: 2px 2px rgba(255,255,255,0.2);*/
    margin: 30px 0 0 0;
    text-shadow:1px 1px rgba(250,250,250,.1);
}

#page-intro a {
    text-decoration: none;
    font-weight: normal;
}
#page-intro a:hover {
    text-decoration: underline;
}
#page-intro h2 {
    font-family: 'Oxygen', sans-serif;
    text-transform: lowercase;
    color: #999;
    font-size: 1.5em;
    font-size: 1.75vw;
}
#page-intro article .fa-angle-down {
    position: absolute;
    font-size: 5vw;
    bottom: 1vw;
    left: 50%;
    margin-left: -2.5vw;
    cursor: pointer;
}

#page-about {
    background-color: #333;
    color: #FAFAFA;
    height: 80%;
    width: 80%;
    margin: auto;
}

#page-recent-work {
    background-color: #4D0600;
    color: #DDD;
}
#page-recent-work article {
    padding-left: 0;
    padding-right: 0;
}
#page-recent-work .content {
    text-align: center;
    width: 80%;
    margin: auto auto;
    position: relative;
}
#page-recent-work ul {
    position: absolute;
    top: 6em;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
}
#page-recent-work ul li {
    list-style-type: none;
    width: 30%;
    font-size: 1em;
    float: left;
    height: 35%;
    position: relative;
    margin: 1em auto;
    margin-right: 5%;
    padding: 0;
}
#page-recent-work ul li.col_2 {
    margin-right: 0;
}

#page-recent-work ul li {
    perspective: 1000;
}
/* flip the pane when hovered */
/*#page-recent-work ul li:hover .flipper, #page-recent-work ul li.hover .flipper {
    transform: rotateY(180deg);
}*/

.front .screenshot {
    height: 100%;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position:center;
}
/*#page-recent-work ul li, .front, .back {
    width: 320px;
    height: 480px;
}*/

/* flip speed goes here */
.flipper {
    -webkit-transition: 0.6s;
    -webkit-transform-style: preserve-3d;
    -ms-transition: 0.6s;
    -moz-transition: 0.6s;
    -moz-transform: perspective(1000px);
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

/* hide back of pane during swap */
.flipper {
    height: 100%;
    width: 100%;
}
.front, .back {
    box-sizing:border-box;
    -moz-box-sizing:border-box; /* Firefox */
/*    height: 100%;
    width: 100%;*/
    padding: 10px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -ms-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
    background-color: rgba(255,255,255,0.1);

    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: 0.6s;
    -webkit-transform-style: preserve-3d;
    -moz-transition: 0.6s;
    -moz-transform-style: preserve-3d;
    -o-transition: 0.6s;
    -o-transform-style: preserve-3d;
    -ms-transition: 0.6s;
    -ms-transform-style: preserve-3d;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* front pane, placed above back */
.front {
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    z-index: 2;
}
.front .fa {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #FFF;
    font-size: 2em;
    text-shadow: 2px 2px #000;
    opacity: .7;
}
/* back, initially hidden pane */
.back {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    transform: rotateY(-180deg)
}
#page-recent-work ul li:hover .front, #page-recent-work ul li.hover .front {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
#page-recent-work ul li:hover .back, #page-recent-work ul li.hover .back {
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
}
#page-recent-work ul li .description {
    line-height: 1.5em;
    font-size: 1vw;
}
#page-recent-work ul li a {
    color: #FAFAFA;
    font-weight: bold;
    text-decoration: none;
}
#page-recent-work ul li a:hover {
    text-decoration: underline;
}
#page-recent-work ul li .url {
    line-height: 2.5em;
    font-size: 1.5vw;
}

.no-csstransforms3d.opacity #page-recent-work ul li:hover .front {
    opacity: .2;
    z-index: 0;
}

.no-csstransforms3d.no-opacity #page-recent-work ul li:hover .front {
    display: none;
}

#page-under-the-hood {
    background-color: #4D0600;
    color: #DDD;
    border-top: 1px solid #79221B;
}
#page-under-the-hood article {
    padding-left: 0;
    padding-right: 0;
}
#page-under-the-hood .content {
    text-align: center;
    width: 80%;
    margin: auto auto;
    position: relative;
}
#page-under-the-hood ul {
    width: 100%;
    position: absolute;
    top: 6em;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
}
#page-under-the-hood ul li {
    list-style-type: none;
    width: 30%;
    font-size: 1em;
    float: left;
    height: 35%;
    position: relative;
    box-sizing:border-box;
    -moz-box-sizing:border-box; /* Firefox */
    margin: 1em auto;
    margin-right: 5%;
    padding: 10px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -ms-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
    background-color: rgba(255,255,255,0.1);

}
#page-under-the-hood ul li.col_2 {
    margin-right: 0;
}
#page-under-the-hood .jsonContent {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
#page-under-the-hood ul li h2 {
    font-size: 1em;
}
#page-under-the-hood ul li .summary {
    position: relative;
    overflow: hidden;
}
#page-under-the-hood ul li canvas.overlay {
    position: absolute;
    z-index: -1;
    top: 10px; left: 10px;
}
#page-under-the-hood ul li .read_more {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
#page-under-the-hood ul li .read_more a {
    display: block;
    background-color: #111;
    padding: 2px 10px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    opacity: .8;
    text-decoration: none;
    text-transform: lowercase;
    color: #FAFAFA;
    font-size: .9em;
}
#page-under-the-hood ul li .read_more a:hover {
    color: #FFFFFF;
    opacity: 1;
}

.no-canvas #page-under-the-hood li .jsonContent {
    display: block !important;
    overflow: hidden;
    text-align: left;
}

body > section img.bg {
    width: 100%;
    position: absolute;
    top: 200px;
    z-index: 0;
}

#page-contact {
    background-color: #111;
    color: #DDD;
}
#page-contact article.content {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}
#page-contact form {
    text-align: center;
    width: 344px;
    min-height: 100px;
    margin: 0 auto;
}
#page-contact .compose {
/*    margin-right: 10px;
    width: 600px;
    position: relative;
    float: left;*/
}
#page-contact .compose .input {
    float: left;
    clear: both;
    margin-bottom: 10px;
    width: 100%;
}
#page-contact .input label {
    float: left;
    width: 50%;
}
#page-contact .input input,
#page-contact .input textarea {
    float: left;
    width: 324px;
    padding: 5px 10px;
    color: #DDD;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -ms-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #222;
    background-color: rgba(255,255,255,0.1);
    border: 0;
}
#page-contact .input textarea {
    clear: both;
    height: 100px;
}
#page-contact form .submit {
    float: left;
    position: relative;
}

.input-recaptcha{
    width:172px;   
}

form input,
form textarea,
#recaptcha_widget {
 /*   box-sizing:border-box;
    -moz-box-sizing:border-box;
    height: 29px;*/
    font-size: 13px;
/*    padding: 3px;*/
}

#recaptcha_widget {
    float: left;
    position: relative;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    padding: 10px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -ms-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
    background-color: #222;
    background-color: rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

#recaptcha_response_field {
    float: left;
    margin-right: 10px;
    width: 156px;
    padding: 7px;
    border: 0;
}

form button,
#recaptcha_widget .btn {
    background-color: #F3F3F3;
    background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#f1f1f1));
    background-image: -o-linear-gradient(top, #F5F5F5, #F1F1F1);
    background-image: -moz-linear-gradient(top, #F5F5F5, #F1F1F1);
    background-image: -webkit-linear-gradient(top, #F5F5F5, #F1F1F1);
    background-image: -ms-linear-gradient(top, #F5F5F5, #F1F1F1);
    background-image: linear-gradient(top, #F5F5F5, #F1F1F1);

    border: 1px solid rgba(0,0,0,0.1);
    color: #444;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    cursor: default;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    height: 27px;
    line-height: 27px;
    min-width: 30px;
    outline: 0;
    padding: 0 8px;
    display: block;
    float: left;
}

.submit button {
    float: left;
    clear: both;
    /*position: absolute;
    bottom: 0;
    right: 0;*/
}

form button:hover,
#recaptcha_widget .btn:hover {
    background-color: #F5F5F5;
    background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#f1f1f1));
    background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
    border: 1px solid #c6c6c6;
    color: #333;
}

form button,
#recaptcha_widget .btn.first {
    border-bottom-left-radius: 2px;
    border-top-left-radius: 2px;
}
form button,
#recaptcha_widget .btn.last {
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
}

form {
    -webkit-transition: -webkit-transform .4s ease-in;
    -moz-transition: -moz-transform .4s ease-in;
    transition: transform .4s ease-in;
}

form.sent {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (orientation:portrait) {
    body {
        margin-bottom: 10em;
    }

    body > section.page {
        min-height: 100%;
    }
    #page-intro h1 {
        font-size: 12vw;
        margin-top: 0;
    }
    #page-intro h2 {
        font-size: 5vw;
    }
    #page-intro article.content {
        width: 90%;
        padding: 1.5em 0;
        position: relative;
    }
    #page-intro article .about {
        font-size: 4vw;
        position: absolute;
        bottom: 5vh;
        left: 0;
    }
    #page-recent-work {
        height: 150%;
    }
    #page-recent-work ul li {
        width: 100%;
        margin: 0 auto 1em auto;
        height: 30%;
    }
    #page-recent-work ul li .url {
        font-size: 5vw;
    }
    #page-recent-work ul li .description {
        font-size: 3vw;
    }
    #page-under-the-hood ul li h2 {
        font-size: 3vw;
    }
    #page-under-the-hood ul li .summary {
        display: none;
    }
    #page-under-the-hood ul li .read_more {
        width: 100%;
        bottom: 0;
        right: 0;
    }
    #page-contact article.content {
        width: 100%;
    }
}



@media only screen and (orientation:landscape) and (max-width: 980px) {
    body {
        margin-bottom: 10em;
    }

    #page-intro article.content {
        width: 90%;
    }
    #page-intro .fa-angle-down {
        display: none;
    }
    #page-intro article.content h1 {
        margin-top: 0;
    }
    body > section.page {
        min-height: 500px;
    }
    #page-recent-work ul li .url {
        font-size: 2vw;
    }
    #page-recent-work ul li .description {
        font-size: 2vw;
    }
    #page-under-the-hood ul li h2 {
        font-size: 3vw;
    }
    #page-under-the-hood ul li .summary {
        display: none;
    }
    #page-under-the-hood ul li .read_more {
        width: 100%;
        bottom: 0;
        right: 0;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.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;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

    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;
    }
}
