/*! 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
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Raleway:400,600');
@import url('nm_grid.css');

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: #e89e5b;
    text-shadow: none;
}

::selection {
    background: #e89e5b;
    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
   ========================================================================== */
.green{color:#4a801b}
.lt-green{color:rgba(127, 180, 80, 0.94)}
.rust{color:#680423}
.peach{color:#e89e5b}
.grey{color:#979b9a}
.bg-rust{
    background-color:#680423;
    color:#FFFFFF;
}
.bg-rust *{
    color:#FFFFFF;
}

body{
    font-family:'Raleway',sans-serif;background: #686868; /* Old browsers */
    background: -moz-linear-gradient(top, #686868 1%, #000000 76%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #686868 1%,#000000 76%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #686868 1%,#000000 76%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#686868', endColorstr='#000000',GradientType=0 );
}
/*
body:before {
    content: "";
    display: block;
    background: url(/img/banner.jpg) no-repeat center bottom;
    background-size: cover;
    width: 100%;
    height: calc(100vw * 0.61803398874985468379271708299583);
    position: fixed;
    top: calc(100vw * -0.61803398874985468379271708299583 * .3);
    z-index: -1;
    max-height: 800px;
}

body.home:before{
    top:247px;
}
*/

h3{
    font-size:24px;
    font-weight:600;
    padding-top:20px;
    padding-bottom:10px;
    color:#680423;
    border-bottom:1px solid #680423;
    margin-bottom:20px;
}
p,li,h4{
    font-size:22px;
}
h4{font-weight:600;padding-bottom:.5em;color:#FFFFFF;}
p{padding-bottom:1em;line-height:1.5}
p:last-child{
    padding-bottom:0;
}


#masthead{
    background-color: #4a801b;
    -webkit-box-shadow: 0px 4px 17px 3px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 4px 17px 3px rgba(0,0,0,0.75);
    box-shadow: 0px 4px 17px 3px rgba(0,0,0,0.75);
    z-index:100;
    position:fixed;
    top:0;
    background-image:url(../img/masthead-bg.jpg);
    background-repeat: no-repeat;
    background-size:auto 100%;
    background-position: center;
}
#masthead .container{
    height:197px;
}
#logo{
    height:100%;
    width:auto;
    display:block;
    margin:0 auto;
}

#mainnav{
    position:fixed;
    top:197px;
    background-color:#680423;
    min-height:50px;
    z-index:99;
}
#mainnav:after{
    content: "";
    display:block;
    height:0;
    clear:both;
}
#mainnav li a{
    color:#FFFFFF;
    font-size:18px;
    font-weight:400;
    padding:.6em 2.2em;
}
#mainnav li a:hover,
#mainnav li.active a{
    color:#e89e5b;
}
#hamburger{
    position:absolute;
    bottom: 25px;
    right:25px;
    width:60px;
    height:60px;
    z-index:20;
    display:none;
}
.mobile #hamburger{
    display:block;
}
#banner{
    margin-top:247px;
    max-height:800px;
    height:130px;
    z-index:10;
    background:url('../img/banner.jpg') no-repeat center bottom;
    background-size:cover;
}
.home #banner{
    height: calc(100vw * 0.61803398874985468379271708299583);
    background:url('../img/banner.jpg') no-repeat center bottom;
    background-size:cover;
}
#banner .message{
    position:absolute;
    top:55%;
    width:100%;
    text-align:center;
    font-size:2vw;
    font-weight:600;
    color:#FFFFFF;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    line-height:1.2;
}
#content{
    padding:30px 0;
    background-color:rgba(127, 180, 80, 0.94);
}
#content p>a{
    color:#FFFFFF;
    text-decoration: none;
}
#content p>a:hover{
    text-decoration:underline;
}
#content p,
#content li{color:#FFFFFF; line-height:1.7;}
.home #content p{padding:0 60px;}
#content ul li ul{
}
#content ul {margin-bottom:1.2em;
    padding-left:1.25em;}
.slideshow{
    position:relative;
    border:1px solid #000;
    width:98%;
    max-width:900px;
    margin:30px auto;
}
.slideshow .cache{display:none;}
.slideshow .fg img,
.slideshow .bg img{width:100%; height:auto}
.slideshow .fg{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:10;
}
.slideshow .controls{
    position:absolute;
    top:calc(50% - 30px);
    left:0;
    width:100%;
    z-index:12;
}
.slideshow .controls .prev,
.slideshow .controls .next{
    position:absolute;
    display:block;
    top:0;
    left:10px;
    width:60px;
    height:60px;
    color:rgba(255,255,255,.4);
    font-size:60px;
    text-decoration:none;
    border-radius:60px;
    background-color:rgba(0,0,0,.4);
    line-height:0;
    padding-top:25px;
    font-weight:bold;
    text-align: center;
    transition:color .3s;
}
.slideshow .controls .next{
    left:96%;
    left:calc(100% - 70px);
}

.slideshow .controls a:hover{
    color:rgba(255,255,255,1);
}
#footer{
    background-color:#680423;
    color:#979b9a;
    font-size:18px;
    padding:5px 0;
}
#footer .container {
    text-align:center;
}
#footer a{
    text-decoration:underline;
    color:#979b9a;
}
#map{
    width:100%;
    height:600px;
    margin:20px 0;
}
.accordion dt a{
    display: block;
    font-size:22px;
    font-weight:bold;
    padding:8px 0;
    margin:0;
    cursor:pointer;
    transition: all .2s;
    text-decoration:none;
    color:#000;
}
.accordion dt a:hover,
.accordion dt.open a{
    color: #680423;
}
.accordion dd{
    overflow:hidden;
    height:0;
    margin:0;
    padding:0;
}
.accordion dd p{
    font-size:18px;
    padding:0 !important;
}
.accordion dl{
    padding-bottom:20px;
}


p.holder{
    text-align:center;
}
p.holder img{
    width:100%;
    max-width:1000px;
    height:auto;
    padding-bottom:25px;
}

.quote{
    padding:20px 30px;
    background-color:rgba(74,128,27,.3);
    border-radius:20px;
}
#content .quote p{
    font-weight:100;
    font-size:16px;
    font-style: italic;
}
#content .quote p:last-of-type{
    font-style:normal;
    padding:24px 0 0 50% !important;
}



/* ==========================================================================
   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.
   ========================================================================== */

.mobile_only{display:none}
@media only screen and (max-width:1024px){
    #mainnav li a {
        color: #FFFFFF;
        font-size: 18px;
        font-weight: 400;
        padding: .6em 2vw;
    }
}
@media only screen and (max-width: 768px) {
    /* Style adjustments for viewports that meet the condition */
    body:before{
        top:-55px;
    }
    p{font-size:16px;}
    .home #content p {
        padding: 0 0 .5em 0;
    }
    .mobile_only{display:block}
    .container{width:96vw}
    #masthead {
        position: relative;
        top: 0;
    }
    #masthead .container{height:auto;}

    #logo{
        width:70%;
        height:auto;
        max-width:590px;
        margin:0;
    }
    #banner{margin:0;}
    #mainnav {
        position: relative;
        top:0;
        height: auto;
        z-index: 5;
        min-height:0;
    }
    #mainnav ul.nav li{
        float:none;
    }
    #mainnav ul.nav li a{
        font-size:28px;
    }
    #mainnav .container{
        overflow:hidden;
        transition: height .3s;
    }
    #mainnav.open .container{
        height:calc(100%);
    }
    #mainnav.closed .container{
        height:0;
    }

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

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