/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */

@import url(https://fonts.googleapis.com/css?family=Vollkorn:400,400italic,700italic,700);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic);
body{
    background: #CCCC99;
    line-height: 1.5;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}
p{
    margin: 0 0 1.5em
}
img{
    max-width: 100%;
}

.sidebar-highlight, .page-title, #main-nav, #home-nav{

    font-family: 'Vollkorn', serif;
}

.main-wrapper{
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}
.margin-top{
    margin-top: 20px
}
.shadow{
    box-shadow: #333 0 0 10px;

}
.wrapper{

    padding: 0 20px;
}

#header{
    background: #fff url(../images/header-bg.jpg) no-repeat center;
    background-size: cover;
    border-bottom: 10px solid #00564e;
    padding-top: 30px
}
#header h1{
    color: #00564e;
    text-align: center;
    font-size: 2em;
    letter-spacing: 2px;
    margin: 0;
    padding-bottom: 15px;
    font-weight: normal;
}
#logo{
    display: inline-block;
    width: 200px;
    margin-bottom: -80px;
    overflow: hidden;
}
#logo img{
    width: 100%
}

#home-nav{
    background: #cdcd9b;
    width: 160px;
    margin-bottom: 30px
}
#content #home-nav ul{
    list-style: none;
    padding: 0;
    margin: 0
}
#home-nav ul li{
    padding: 0;
    margin:0;
    border-bottom: solid 1px #fff
}
#home-nav li:last-child{
    border-bottom: 0
}
#home-nav a{
    color: #00564e;
    text-align: center;
    padding: 16px 15px;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

#home-nav a:hover{
    background: #00564e;
    color: #fff
}
#main-nav{
    background: #CCCC99;
    border-top: solid 1px #fff;
    padding: 0 20px;
}
#main-nav ul{
    list-style: none;
    margin: 0;
    padding: 0;

}
#main-nav ul.left-nav{
    float: left;
}
#main-nav ul.left-nav li{
    margin-right: 10px;
}
#main-nav ul.right-nav{
    float: right;
}
#main-nav ul.right-nav li{
    margin-left: 10px
}
#main-nav li{
    float: left;
    display: inline-block;
}
#main-nav li.logo-spacer{
    width: 200px;
    overflow: hidden;
}
#main-nav a{
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color:  #006633;
    font-size: 18px;
}
#main-nav a:hover,
#main-nav a.active{
    color: #9b0000
}


.slicknav_menu{
    background-color: #00564e;
    display: none;
    border-bottom: solid 6px #CCCC99;
    padding: 0;
}
.slicknav_btn{
    background-color: #CCCC99;
    margin: 0;
    padding: 10px 15px;
    border-radius: 0;
}
.slicknav_menu .slicknav_menutxt{
    color: #00564e;
    text-shadow: none

}
.slicknav_menu .slicknav_icon-bar{
    background: #00564e;;
    box-shadow: none;
}
.slicknav_nav ul{
    margin: 0 
}

.slicknav_nav a:hover{
    border-radius: 3px;
    background: #CCCC99;
    color: #00564e;
}
.slicknav_nav{
    padding-top: 5px;
}
#content{
    overflow: hidden;
    border-top: solid 1px #fff;
    background-color: #fff;
    padding: 20px 10px;
}
#content ul, #content ol{
    padding-left: 20px;
    margin-bottom: 25px
}
#content.home{
    background: #fff url(../images/main-bg.jpg) bottom left;
    background-size: cover;
    width: 100%;
    padding: 0
}
img.float-right{
    float: right;
    margin: 5px 0 15px 20px;
}
.page-title{
    margin: 0 auto 20px;
    font-size: 22px;
    color: #00564e
}
#main-content{
    float: left;
    width: 70%;
    border-right: solid 1px #ccc;
    padding-right: 20px;
    margin-top: 10px;
}
#main-content a{
    color: #333
}
#sidebar{
    float: right;
    width: 25%;
}

.sidebar-highlight{
    margin: 130px auto 0;
    text-align: center;
    color: #00564e;
    font-size: 1em;
    max-width: 300px;
    line-height: 1.6;
    font-style: italic;
}
#footer{
    background: #00564e;
    text-align: center;
    color: #fff;
    padding: 20px 0;
}
#footer a{
    color: #fff;
    text-decoration: none;
}
#footer a:hover{
    color: #cccc99
}
.seo{
    margin: 20px auto;
    text-align: center;
    color: #999;
    font-size: .9em;
    width: 90%;
}

.show-phone{
    display: none;
}
.small-margin-top{
    margin-top: 20px;
}













/* ==========================================================================
   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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}
@media only screen and (max-width: 1170px) {
    #main-nav ul.right-nav a{
        padding-right: 10px; 
    }
    #main-nav ul.left-nav a{
        padding-left: 10px
    }
    #header h1{
        // left: -15px;
        position: relative;
    }

}
@media only screen and (max-width: 1135px) {
    #main-nav ul.right-nav a{
        padding-right: 5px; 
    }
    #header h1{
        right: -18px;
    }

}
@media only screen and (max-width: 1100px) {
    #main-nav ul.right-nav a{
        padding-left: 8px; 
    }
    #main-nav ul.left-nav a{
        padding-right: 10px;
    }

}
@media only screen and (max-width: 1070px) {
    #main-nav ul.left-nav a{
        padding-right: 10px;
        padding-left: 10px;
    }
    #main-title{
        left: -15px;
    }
}
@media only screen and (max-width: 1050px) {
    #main-nav ul.right-nav a{
        padding-right: 5px;
        padding-left: 5px;
    }
    #main-nav ul.left-nav a{
        padding-right: 5px;
        padding-left: 10px;
    }
}
@media only screen and (max-width: 1050px) {
    #logo{
        margin-bottom: -60px;
    }
    #header{
        padding-top: 10px
    }
    #main-nav ul.right-nav a{
        padding-right: 9px;
        padding-left: 5px;
    }
    #main-nav ul.left-nav a{
        padding-right: 10px;
        padding-left: 10px;
    }
    #main-title{
        left: -10px;
    }
}
@media only screen and (max-width: 968px) {
    #main-nav ul{
        display: none;
    }
    #main-nav{
        // height: 5px;
    }
    .slicknav_menu{
        display: block;
    }
    .main-wrapper{
        width: 100%;
    }
    .shadow{
        box-shadow: none;
    }
}
@media only screen and (max-width: 768px) {
    #main-content{
        width: 100%;
        float: none;
        padding-right: 0;
        border: 0
    }
    #sidebar{
        width: 100%;
        float: none;
    }
    .sidebar-highlight{
        margin: 30px;
    }
}
@media only screen and (max-width: 748px) {
    #header h1{
        font-size: 24px;
    }
}

@media only screen and (max-width: 640px) {
    #header h1{
        font-size: 24px;
    }
    .show-phone{
        display: block;
    }
    .hide-phone{
        display: none;
    }
    #logo{
        float: left;
        margin-right: 20px;
    }
}
@media only screen and (max-width: 480px) {
    #logo{
        float: none;
        display: block;
        clear: both;
        margin: 0 auto
    }
    .main-img{
        height: auto;
        width: 100%;
        margin: 0 auto 20px;
        float: none;
        clear: both;
    }
    #home-nav{
        width: 90%;
        margin: 30px auto;
    }
}


@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,
    *:first-letter,
    *:first-line {
        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;
    }
}
