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

@import url(https://fonts.googleapis.com/css?family=Titillium+Web:400,700);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic);

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
     box-sizing: border-box;
}

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
   ==========================================================================


   Blue: rgb(34,59,141)
   Green: rgb(10,128,55)



   */

   body {
       background: rgba(210, 217, 239, 1);
   }
   #header {

   }

#top_padding {
    background: rgb(34,59,141);
    width: 100%;
    height: 20px;
}

#top_blue {
    background: rgb(34,59,141);
    width: 100%;
    height: 87px; /*was 80 with old logo*/
}

#top_green {
    background: rgb(10,128,55);
    width: 100%;
    height: 47px;
}

#top_blue img, #top_green img {
    width: 258px;
}

.imgholder {
    margin-left: 10%; /*was 20%*/
    float: left;
    overflow: hidden;
    clear: left;
}

#social {
    float: right;
    clear: right;
    margin-right: 12.5%;
    padding-top: 15px;
}

#social img {
    height: 35px;
    width: 35px;
    margin-left: 15px;
}


/* Nav */

#nav {
    margin-left: 5%;
    float: left;
    padding-top: 12px;
}

#menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#menu li {
    display: inline-block;
    float: left;
    margin-right: 50px;
    font-family: "Titillium Web", Helvetica, sans-serif;
}

#menu li a {
    text-decoration: none;
    color: #fff;
}

#menu li a:hover, #menu li.active {
    border-bottom: 2px solid #fff;
}


#show-menu {
    width: 100%;
    height: 50px;
    background-color: rgba(33, 58, 140, 1);
    text-align: center;
    color: #fff;
    font-family: "Titillium Web", Helvetica, sans-serif;
    font-size: 20px;
    padding-top: 10px;
    display: none;
    cursor: pointer;
    clear: both;
    /*     display: none; */
}

#content {
    min-height: 500px;
    width: 90%; /*was 80%*/
    max-width:1200px; /*no max before*/
    margin: 0 auto; /*was 0 10%*/
}
.push {
    margin-top: 199px !important;
}

#news {
    margin-top: 25px;
}

#slider li {
    text-align: center;
}

#slider img {
    max-width: 100%;
    max-height: 300px;
}

#main {
    padding-top: 15px;
    width: 66.6666%;
    float: left;
}

#sidebar {
    margin-bottom:20px; /*was none*/
    padding-top: 15px;
    padding-left: 20px; /*was 30*/
    width: 33.3333%;
    float: left;
}

#disclaimer {
    background: rgb(10,128,55);
    font-family: "Titillium Web", Helvetica, sans-serif;
    color: #fff;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    clear: both;
}

.sidebar-module {
    background: rgb(10,128,55);
    width: 100%;
    padding: 10%;
    border-radius: 3px;
    margin-bottom: 20px;
}

#signup {

}

#signup input {
    width: 100%;
    margin-bottom: 5px;
    font-family: "Titillium Web", Helvetica, sans-serif;
    border: 0;
    background: #fff;
    color: rgb(34,59,141);
    padding: 3px;
}

#signup input[type=submit] {
    color: #fff;
    background: rgb(34,59,141);
    border-radius: 8px;
    font-family: "Titillium Web", Helvetica, sans-serif;
    text-align: center;
    width: 100%;
    border: 0;
    height: 50px;
    box-shadow: 0px 1px 1px 1px #333;
    padding: 0;
    margin-bottom: 0;
}

#signup input[type=submit]:hover {
    background: rgba(17, 31, 78, 1);
}

.news-item {
    padding: 25px;
    margin: 0 0 20px 0; /*was 0 25 30 25*/
    background: #fff;
    border-radius: 5px;
    margin-bottom: 30px;
    font-family: 'Lato', Helvetica, sans-serif;
}

.news-item h3 {
    font-family: "Titillium Web", Helvetica, sans-serif;
    color: rgb(10,128,55);
    font-size: 2em;
    margin: 0;
}

.news-item h4 {
    font-family: 'Lato', Helvetica, sans-serif;
    font-style: italic;
    size: .8em;
    color: #5c5c5c;
    font-weight: 300;
    margin: 0;
}


#about-headshot {
    float: right;
    width: 200px;
    margin: 0 20px 10px 20px;
}

#mobile-social {
    display: none;
    text-align: center;
}

#mobile-social a {
    text-decoration: none;
}

#mobile-social img {
    width: 20px;
    height: 20px;
}

#contribute-button {
    border-radius: 8px;
    font-family: "Titillium Web", Helvetica, sans-serif;
    text-align: center;
    color: #fff;
    background-color: #bc2424;
    width: 100%;
    border: 0;
    height: 50px;
    box-shadow: 0px 1px 1px 1px #333;
}

#paypal-button {
    height: 40px;
}

#contribute-button:hover {
    background-color: #781919;
}

@media only screen and (max-width: 1100px) {
    #menu li {
    margin-right: 30px;
    font-size: 1em;
    }
    #nav {
        padding-top: 13px;
        margin-left: 30px;
    }
  #content {
    min-height: 500px;
    width: 95%; /*was 80%*/
    max-width:1200px; /*no max before*/
    margin: 0 auto; /*was 0 10%*/
	}
}

@media only screen and (max-width: 1000px) {
    #menu li {
    margin-right:20px;
    font-size: .9em;
}
#nav {
    padding-top: 15px;
    margin-left: 15px;
}

/* added to increase width of sidebar, dec main, for this range*/
#content {
    min-height: 500px;
    width: 98%; /*was 80%*/
    max-width:1200px; /*no max before*/
    margin: 0 auto; /*was 0 10%*/
}

#main {
    padding-top: 15px;
    width: 60%;
    float: left;
}

#sidebar {
    margin-bottom:20px;
    padding-top: 15px;
    padding-left: 20px; /*was 30*/
    width: 40%;
    float: left;
	}
}

@media only screen and (max-width: 800px) {
    #about-headshot {
    float: none;
    display: block;
    clear: both;
    margin: 0 auto 20px auto;
}

    #social {
        display: none;
    }

    #mobile-social {
        display: block;
    }

.news-item {
    padding: 10px;
    margin: 15px 0px;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 30px;
    width: 100%;
}

    #sidebar, #main {
        width: 100%;
        float: none;
        padding: 10px;
    }
    #slider img {
    max-height: 200px;
}

    .imgholder {
    width: 100%;
    text-align: center;
    float: none;
    display: block;
    margin: 0;
}

   #nav {
       display: block;
    float: none !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    clear: both;
    width: 100%;
   }

   #menu {
       display: none;
   }

    #show-menu {
        display: block !important;
    }

    #menu li {
    display: block;
    float: none;
    margin-right: 0;
    text-align: center;
    width: 100%;
    height: 30px;
    border-bottom: 1px solid #fff;
    background: rgba(10, 128, 55, 1);
    padding: 5px 0;
}

#menu li.active {
    border-bottom: 1px solid #fff;
}

#menu li a:hover {
    border: none;
}

#menu li a {
    text-decoration: none;
    color: #fff;
}

   #content {
       margin:50px auto 0 auto;
        width: 95%; /*was 100%*/
    }
}



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

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

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.center {
    text-align: center;
}

/*
 * 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 (max-width: 760px) {
    /* Style adjustments for viewports that meet the condition */

}

/* ==========================================================================
   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;
    }
}
