/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 #df7c57;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    margin: 0 0 10px;
}
h1 {
    color: #DF7C57;
    font-weight: normal;
    margin: 0;
    font-size: 1.5em;
    font-family: 'Merriweather Sans', sans-serif;
}
h2.subhead {
    text-transform: uppercase;
    margin:0;
    color: #4E2725;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 500;
    font-size: 36px;
}
#page-wrap {
    width: 1124px;
    margin: 0 auto;
}
#main-content {
    padding: 0 50px;
}
section {
    padding: 20px 50px; 
}

/* ------------------------------------------------------------
header and main nav 
---------------------------------------------------------------*/
#top-header {
    position:relative;
    height: 150px;
    margin: 0 0 20px 0;
}
#logo {
    display:block;
    float: left;
    width: 274px;
    height:130px;
    position: absolute;
    top: 10px;
    left: -18px;
}
#main-nav {
    float: right;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1.375em;
}
#main-nav ul {
    margin: 10px 0 0 0;
}
#main-nav ul li {
    display:inline-block;
    margin: 0 26px 0 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #DF7C57;
    -moz-transition: border-bottom .2s .3s ease;
    -webkit-transition: border-bottom .2s .3s ease;
    transition: border-bottom .2s .3s ease;
}
#main-nav ul li:hover {
    border-bottom: 6px solid #DF7C57;
}
#main-nav ul li a {
    text-decoration: none;
    color: #DF7C57;
}

/* -------------------------------------------------------------
section content 
----------------------------------------------------------------*/

#intro-about {
    color: #4e2725;
    border-top: 1px solid #65BAA9;
    background: #EDEDDC;
}
#intro-about header {
    text-align: center;
}
#how-it-works {
    background: #65BAA9;
    border-top: 1px solid #4E2725;
    border-bottom: 1px solid #4E2725;
    color: #4e2725;
}
#how-it-works h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: .875em;
    text-transform: uppercase;
    line-height: 1;
}
#how-it-works header {
    padding-top: 24px;
}
#how-it-works header h1 {
    color: #fff;
}
#how-it-works ul {
    padding: 0 0 0 20px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}
#how-it-works img {
    padding: 7px;
    background-color: #EDEDDC;
    border: 1px solid #DF7C57;
    float:left;
    margin-top:15px;
}
#bubble {
    width: 470px;
    float:right;
    padding:0 0 0 20px;
}
#conditions {
    clear:both;
    padding-top:30px;
}
#conditions h1 {
    color:white;
    border-bottom: 1px dashed #4E2725;
    padding-bottom:10px;
}
#conditions ul {
    float:left;
}
ul.conditions-right {
    margin-left: 10px;
}
#typical {
    border-top: 1px solid #DF7C57;
    margin: 2px 0 0 0;
    padding-top: 40px;
    padding-bottom: 0;
    color: #5b2825;
}
#techniques {
    color: #4e2725;
}
#techniques img {
    padding: 7px;
    background-color: #EDEDDC;
    border: 1px solid #DF7C57;
    margin-bottom: 10px;
    width: 198px;
    height:132px;
    float:left;
    clear:both;
}
#techniques p {
    float:right;
    width:660px;
    padding:20px 20px 20px 0;
}
#techniques p:first-letter {
    color: #df7c57;
    font-size: 1.125em;
    font-weight:bold;
}
#contact {
    background: #D2E1CD;
    border-top: 1px solid #4E2725;
    border-bottom: 1px solid #4E2725;
    color: #330000;
}
#contact a {
    text-decoration: none;
    color: #DF7C57;
}
#bio, #location {
    padding: 0;
    float: left;
}
#bio {
    width: 55%;
}
#location {
    width: 30%;
    padding: 2em 0 0 0;
    margin: 0 0 0 12%;
}
#location h2 {
    border-bottom: 2px solid #4E2725;
    padding: 0 0 6px 0;
}
#location ul {
    color: #DF7C57;
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: normal;
    font-size: 1.3125em;
    margin: 5px 0 0 30px;
}
#location ul li {
    margin-bottom: 20px;
}


/* ---------------------------------------------------------------------------
top button
------------------------------------------------------------------------------*/
#nav-to-top {
    position: relative;
    height: 60px;
    text-transform: uppercase;
}
#top-button {
    text-decoration:none;
    display:block;
    background: url(../img/top-button.png) no-repeat right top;
    width: 85px;
    height: 37px;
    padding: 8px 0 0 30px;
    color: #4E2725;
    position: absolute;
    right: 0;
    top: 30%;
}

/*---------------------------------------------------------------------------
footer
-----------------------------------------------------------------------------*/
#footer-banner {
    height: 39px; 
    background: #D2DDD8;
    border-top: 1px solid #003C4B;
    padding: 10px 50px 0;
}
#footer-banner ul {
    margin: 4px 0 0 0;
    padding: 0;
    color:#DF7C57;
}
#footer-banner ul li {
    float: left;
    list-style: none;
}
#footer-banner ul li:before {
    content: "\2022";
    padding: 0 6px;
}
#footer-banner ul li:first-child {
    list-style: none;
}
#footer-banner ul li:first-child:before {
    content: " ";
}
footer {
    background: #EDEDDC;
    height: 59px;
    padding: 20px 45px;
    margin: 0 0 20px 0;
    border-top: 1px solid #656554;
}
#copyright {
    font-family: "HelveticaNeue-Light", "Helvetica" ,sans-serif;
}

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


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

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}


/* Media Queries ---------------------------- */

@media all and (max-width: 1060px) {

    #page-wrap {
        width: 100%;
        margin: 0 auto;
    }
    #main-content {
        padding:0;
    }
    section {
        padding:20px;
    }
    #bubble {
        width:50%;

    }
    ul.conditions-right {
        margin-left: 0;
    }
    #techniques p {
        width: 68%;
    }
    #bio {
        width: 45%;
    }
    #footer-banner {
        font-size: .8em;
    }
}

@media all and (max-width: 800px) {

    #top-header {
        padding: 0;
        margin: 0;
    }
    #main-nav {
        font-size: 1em;
        text-align:center;
    }
    #main-nav ul li {
        float: none;
        display:inline-block;
        margin: 0 20px 0 0;
        -moz-transition: none;
        -webkit-transition: none;
        transition: none;
    }
    #main-nav ul li:hover {
        border-bottom: none;
    }
    #intro-about {
        margin-top: 40px;
    }
    #how-it-works img {
        float:none;
        max-width:100%;
        
    }
    #bubble {
        width:100%;
        float:none;
        padding:0;
        margin:0;
    }
    ul.conditions-left {
        margin: 0;
    }
    #conditions ul {
        margin-top:10px;
    }
    ul.conditions-right {
        margin:0;
    }
    #techniques p {
        width: 60%;
        height:auto;
    }
    #bio, #location {
        padding: 0;
        float: none;
        display:block;
        width:100%;
    }
    #location {
        margin: 0px;
    }
    #footer-banner {
        font-size: .75em;
    }

}

@media all and (max-width: 697px) {

    img#logo {
        float: none;
        position:static;
        display:block;
        margin:10px auto 0;
        max-width:100%;
    }
    #main-nav {
        float:none;

    }
    ul.conditions-left {
        margin: 20px 10px 0 0;
    }
    #condition ul {
        margin-top: 0;
    }
    #conditions ul:last-child {
        margin-left:40px;
        margin-top:0;
    }
    #conditions ul:nth-child(4) {
        margin-top: 0;
    }
    #techniques p {
        float:none;
        width:100%;
        height:auto;
    }
    #techniques img {
        float:none;
        display:block;
        margin:0 auto;
        width:400px;
        height:300px;
        max-width:100%;
    }
    #footer-banner {
        font-size: .8em;
        padding:0;
    }

}

@media all and (max-width: 500px) {

    #main-nav {
        font-size: .8em;
        text-align:center;
        padding-left:0;
        padding-top:10px;
    }
    #main-nav ul li {
        margin: 0 15px 0 0;
    }
    #how-it-works img {
        float:none;
        display:block;
        margin:0 auto;
        max-width:91%;
    }
    #conditions ul {
        margin-right:5%;
        margin-top:0;
    }
    ul.conditions-left {
        margin: 20px 0 0 0 !important;
    }
    #conditions ul:last-child {
        margin-left:0;
    }
    #techniques img {
        /*width:300px;
        height:200px;*/
        max-width:92%;
        height:auto;
    }
    #footer-banner {
        font-size: .625em;
        padding:0;
    }

}



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

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

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