/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    margin:auto;
    /*padding: 2em;*/
    font-weight: 200;
    font-size:100%;
    color: #444;
    line-height: 1.5;
    text-align: left;  
}

b {
    font-weight: 600;
}

h1 {
    color: #18377d;
    font-size: 1.4em;
    line-height: 1.5em;
    font-family: "Rock Salt", cursive;
}

h2, h3 {
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    font-size: 1.25em;
    color: #555;
}

h3 {
    font-size: 1em;
    font-weight: normal;
}

.logo{
    background: url("../img/brantnesbitt_260x40_rgb_paths.svg");
    background-position: -9999px;
    background-size: 250px 40px;
    float: left;
    width: 250px;
    background-color: white;
    height: 40px;
    text-indent: -9999px;
}

.logomainnav{
    margin: auto;
    display: none;
    width: 260px;
    height: 40px;
}

.logo:active{
    /*background-color: #d29128;*/
    background-color: #ccc;
}

.hamburger{
    background: url("../img/hamburger_icon.svg");
    background-size: 40px 40px;
    background-repeat: no-repeat;
    float: right;
    width: 40px;
    height: 40px;
    text-indent: -9999px;
}

.hamburger:active{
    /*background-color: #d29128;*/
    background-color: #ccc;
}

#menutop{
    width: 100%;
    height: 40px;
    background-color: #fff;
    opacity: .95;
    position: fixed;
    z-index: 10000;
    border-bottom: solid 1px #ddd;
}


#wrapper{
    width: 100%;
    margin:auto;
}

.banner{
    width: 100%;
    height: auto;
    background-image: url("../img/cover_photo.jpg");
    background-color: #18377d;
    background-blend-mode:multiply;
    background-size: 120%;
    background-repeat: no-repeat;
    background-position: top;
    float: left;
}

h1.tophead{
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    font-weight: 500;
    padding-top: 1.5em;
    font-size: 2.5em !important;
    line-height: 1em;
    letter-spacing: .1em;
    /*mix-blend-mode: multiply;*/
    margin: auto;
    text-align: center;
    color: #fff;
    opacity: .8;
    text-shadow: 2px 2px #000;
}

.highlight{
    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
}

.highlightwrapper{
    padding: .5em 2em;
    margin: 1em auto;
}

.markerillo{
    width: 100px;
    height: 20px;
    text-indent: -9999px;
    background: transparent url("../img/marker_blue.svg") no-repeat;
    background-width:100px;
    background-height: 20px;
    margin: 0 auto;
}

.project{
    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
}

.projectwrapper{
    padding: 1em 2em;
    margin: 1em auto;
}

.about{
    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
}

.aboutwrapper{
    padding: 1em 2em;
    margin: 1em auto;
}

.abouthighlight {
    margin: 2em auto;
    width: 70%;
    padding: 1em 2em;
    border-radius: 1em;
    background-color: #efefef;
    text-align: center;
}

.abouthighimg {
    width: 40%;
    margin: auto;
}

#mainnav{
    clear:both;
}

footer {
    font-size: .9em;
    line-height: 1.5;
    text-align: center;
}

nav {
    padding: 0;
    margin: 2em 0;
    width: 100%;
    background-color: #efefef;
}

nav ul {
    padding: 0;
    list-style: none;
}

nav li{
    border-top: solid 1px #666;
    text-align: center;

}

nav li a{
    display: block;
    padding: .5em 2em;
}

nav li a:link {
    color:#28364B;
}

nav li:last-child { 
    border-bottom: solid 1px #666; 
}

img.portfolio {
    width: 100%;
    max-width: 600px;
    margin-bottom: .5em;
}

a {
    text-decoration: none;
}

p {
    color: #444;
    line-height: 1.5em;
}

p a:link {
    color: #039;
    border-bottom: dotted;
    border-width: 1px;
}

p a:visited{
    color: #039;
}

p a:hover{
    color: #360;
    border-bottom: none;
    text-decoration: none;
    background-color: #b3d335;
}

p a:active{
    color: #28364b;
    background-color: #f1d4ba;
}

p.spaceafter{
    margin-bottom: 1.5em;
}

#bannercta {
    /*insert property for button in values here*/
    float: right;
    margin: 1em;
    font-size: 1em;
    text-decoration: none;
    letter-spacing: .05em;
    padding: .5em 1em;
    border: 2px solid #fff;
    background-color: transparent;
    border-radius: .5em;
    color: #fff;
}

.highlightimage {
    width: 50%;
    margin: auto;
}

a#bannercta:link {
    color:#fff !important;
    text-decoration: none;
}

a#bannercta:visited {
    color: #fff;
}

a#bannercta:hover {
    background: #fff;
    border: 2px solid #fff;
    box-shadow: none;
    color: #28364b;
    opacity: .5;
}

a#bannercta:active {
    /*background: #f1d4ba;*/
    color: #fff;
    opacity: 1;  
}

.calloutcta {
    /*insert property for button in values here*/
    /*margin-top: 2em;*/
    font-size: 1em;
    letter-spacing: .05em;
    padding: .5em 1em;
    border: 1px solid #18377d;
    background: #18377d linear-gradient(#0b47b2, #18377d);
    border-radius: .25em;
    box-shadow: 0 2px #666;
    color: #fff !important;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.calloutcta:link{
    color:#fff;
    border: 1px solid #18377d;
    text-decoration: none;
}

.calloutcta:hover, .calloutcta:focus {
    background: #b3d335;
    border: none;
    border-radius: .25em;
    box-shadow: none;
    color: #360 !important;  
}

.calloutcta:active {
    background: #00b3f0;
}

footer {
    font-size: .9em;
    line-height: 1.5;
    text-align: center;
}

.current{
    color: #fff !important;
    border-top: solid 1px #000;
    background: url("../img/blue_checker_bg.gif") repeat;
    /*background-color: #d29128;*/
}

nav {
    padding: 0;
    margin: 2em 0;
    width: 100%;
    background-color: #efefef;
}

nav ul {
    padding: 0;
    list-style: none;
}

nav li{
    border-top: solid 1px #666;

}

nav li a{
    display: block;
    padding: .5em 2em;
}

nav li a:link {
    color:#28364B;
    text-decoration: none;
}

nav li a:hover{
    color: #360;
    background-color: #b3d335;
    display: block;
}

nav li a:active{
    color: #fff;
    background-color: #28364b;
    display: block;
}

/* this is to declare the bottom stroke for the last button */
nav li:last-child { 
    border-bottom: solid 1px #666; 
}

blockquote {
    color: #666;
    border-left: dotted #ccc;
    padding-left: 1em;
}

.footerwrapper {
    margin: 1em auto;
    padding: 1em 2em;
}

a:visited {
    text-decoration: none;
    color: inherit;
}











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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 640px) {
    /* Style adjustments for viewports that meet the condition */

    #wrapper{
        width: 58.75em;
        margin:auto;
    }

    #menutop{
        visibility: hidden;
    }

    #mainnav{
        position: fixed;
        width: 58.75em;
        opacity: .95;
        height: 4em;
        top: -32px;
    }

    #mainnav ul li {
        display: inline-block;
        text-align: left;
    }

    #mainnav ul{
        float: right;
        padding-right: 2em;
    }

    #mainnav ul li a{
        /*float: left;*/
        height: 1em;
        margin: 0 .5em 0;
        text-align: center;
        border-radius: .25em;
        border-top: none;
        padding: .25em 1.5em .75em 1.5em;
    }


    .logo{
        background: url("../img/brantnesbitt_260x40_rgb_paths.svg");
        background-size: 244px 40px;
        float: left;
        width: 244px;
        height: 40px;
        text-indent: -9999px;
    }

    nav li {
        /*display: inline;*/
        /*padding-left: 2em;*/
        border-top: 0;
    }

    nav li:last-child { 
        border-bottom: 0; 
    }

    h1.tophead{
        padding-top: 1.5em;
    }

    .highlight {
        position: relative;
        margin-top: 2em;
        background-color: #efefef;
        width: 31%;
        height: 20em;
        float: left;
        margin-left: 2%;
        border-radius: 1em;
    }

    .highlightwrapper {
        margin:0;
    }

    .highlightimage{
        position: absolute;
        width: 25%;
        top: 2.25em;
        right: 1.25em;
    }

    .logomainnav{
        margin: auto;
        display: block;
        float: left;
        margin-left: 3em;
        margin-top: .75em;
        width: 244px;
        height: 40px;
    }

    .banner {
        height: 20em;
    }

    .about {
        position: relative;
        margin-top: .5em;
    }

    .aboutwrapper {
        width: 55%;
        float: left;
    }

    .abouthighlight {
        position: relative;
        margin-top: 2em;
        margin-right: 1.5em;
        width: 30%;
        float: right;
        padding: 1em 1.5em 1em 1.5em;
        border-radius: 1em;
        background-color: #efefef;
    }

    img.portfolio {
        width: 100%;
        max-width: 600px;
        float: right;
        padding-left: 2em;
        margin: 0 auto;
    }

    h1.tophead{
        padding-top: 4em;
        font-size: 2em;
        line-height: 1.5;
        letter-spacing: .1em;
        /*mix-blend-mode: multiply;*/
        margin: auto;
        text-align: center;
        color: #fff;
        opacity: .8;
        text-shadow: 2px 2px #000;
    }

    #bannercta {
        position: relative;
        bottom: .5em;
        right: 1em;
    }

    footer{
        width: 100%;
        clear: both;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
