/*! 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: 1.1em;
    line-height: 1.2;
}

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

html {
	font-family: 'Abel', sans-serif;
}

body {
	background-color: #1C3754;
}

/*a#sidebar-button{
    display: block;
    height: 36px;
    top: 0;
    background: none repeat scroll 0 0 #fff;
    height: 20px;
    left: 5px;
    width: 40px;
    color:#1F3D5F;
    font-weight:bold;
    text-decoration:none;
    padding:6px;
    z-index:20;
}*/
a#sidebar-button{
    background: none repeat scroll 0 0 #fff;
    color: #1f3d5f;
    display: block;
    font-weight: bold;
    height: 20px;
    padding: 6px;
    text-decoration: none;
    z-index: 20;
    position: fixed;
}    
#main-container {
	max-width: 950px;
	margin: 0 auto;
}

#campaign-logo-img {
	max-width: 398px;
	width: 82%;
	position: relative;
	bottom: 5px;
}

#campaign-logo {
	vertical-align: bottom;
}

#mobile-logo {
	display: none;
}

#endorsements, #corporate-supporters, #video-bar, #content-bar {
	background-color: #FFFFFF;
	padding: 1px;
}

#endorsements, #corporate-supporters, #video-bar {
	text-transform: uppercase;
}		

#endorsements .slide-div, #corporate-supporters .slide-div {
    min-height: 80px;
    margin-bottom: 14px;
}

#endorsements div.source, #corporate-supporters div.source {
    font-family: serif;
    font-size: 80%;
    font-weight: bold;
    padding-top: 5px;
    text-transform: capitalize;
    width: 70%;
    font-style: italic;
}

.block-2 h1 {
	color: #28166F;
}

#endorsements h1, #corporate-supporters h1 {
	margin: 0.67em 0 0;
}

#nav-content, #top-menu, footer {
    background-color: #086308;
}

#owl-container .item, #owl-container-2 .item {
	padding: 10px;
	margin: 2px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	text-align: left;
}

.owl-wrapper-outer {
	border-top: #869791 1px solid;
	border-bottom: #869791 1px solid;
	margin: 5px 0;
}

.customNavigation{
	text-align: center;
}

.center {
  margin: 0 auto;
}

#social-icons {
  width: 193px;
}

.center img {
  padding: 6px;
}

//use styles below to disable ugly selection
.customNavigation a{
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.block-3 .pad {
  padding: 23px 38px;
}

.block-3 .col-1-4 {
	height: 100%;
}

.green a:link, .green a:hover {
  color: #FFFFFF;
}

.green a:visited {
  color: #DDDDDD;
}

.block-4 {
	text-align: center;
}

#video-bar {
  background-color: #28166F;
  color: #FFFFFF;
}

#feature-video, #latest-videos {
	margin: 0 auto;
}

#feature-video img, #latest-videos img {
	width: 90%;
	height: auto;
}

.col-1-4 h1 {
    text-align: center;
    font-family: 'Balthazar', serif;
    font-variant: small-caps;
}

.col-1-4.green {
 /* fallback */ background-color: #086308;  /* Safari 4-5, Chrome 1-9 */ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0A7C0A), to(#086308)); /* Safari 5.1, Chrome 10+ */ background: -webkit-linear-gradient(top, #0A7C0A, #086308); /* Firefox 3.6+ */ background: -moz-linear-gradient(top, #0A7C0A, #086308); /* IE 10 */ background: -ms-linear-gradient(top, #0A7C0A, #086308); /* Opera 11.10+ */ background: -o-linear-gradient(top, #0A7C0A, #086308);
 color:#ffffff;
}

.col-1-4.green h1 {
    text-shadow: 0 -1px 0 rgba(0,0,0,0.8);
}

.col-1-4.grey h1 {
    text-shadow: 0 -1px 0 rgba(255,255,255,0.8);
}

.col-1-4.grey {
 /* fallback */ background-color: #B2B1B2; /* Safari 4-5, Chrome 1-9 */ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#B2B1B2)); /* Safari 5.1, Chrome 10+ */ background: -webkit-linear-gradient(top, #FEFEFE, #B2B1B2); /* Firefox 3.6+ */ background: -moz-linear-gradient(top, #FEFEFE, #B2B1B2); /* IE 10 */ background: -ms-linear-gradient(top, #FEFEFE, #B2B1B2); /* Opera 11.10+ */ background: -o-linear-gradient(top, #FEFEFE, #B2B1B2);
 color:#000000;
}

header div.zerogrid {
	 /* fallback */ background-color: #086308; /* Safari 4-5, Chrome 1-9 */ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0A7C0A), to(#086308)); /* Safari 5.1, Chrome 10+ */ background: -webkit-linear-gradient(top, #0A7C0A, #086308); /* Firefox 3.6+ */ background: -moz-linear-gradient(top, #0A7C0A, #086308); /* IE 10 */ background: -ms-linear-gradient(top, #0A7C0A, #086308); /* Opera 11.10+ */ background: -o-linear-gradient(top, #0A7C0A, #086308);
}

ul.menu li {
    padding: 10px 5px;
    font-family: 'Balthazar', serif;
    font-size: 1.2em;
    font-variant: small-caps;
    text-align: center;
    color: #FFFFFF;
    width: 140px;
    float:left;
}

ul.menu li a:link, ul.menu li a:visited, ul.menu li a:hover {
	color: #FFFFFF;
	text-decoration: none;
}

.faq-container {
	width: 75%;
	margin: 5px auto 25px;
	padding: 10px 30px;
	border: #222222 dashed 2px;
}

.faq-container h3 {
    color: #096B09;
}

.faq-container h2 {
    color: #28166F;
}

.faqman-question {
	margin-bottom: 20px;
	font-weight: bold;
}

#feature-video h1, #feature-video h3, #feature-video h3, #feature-video h4 {
	padding-left: 5px;
	width: 85%;
	text-align: left;
}

.video-small {
	padding: 4px;
	text-align: center;
}

.social-top {
  text-align: center;
  width: 100%;
}

.status-info img {
  padding-right: 14px;
}

#social-connections {
	background-color: #FFFFFF;
}

#social-connections .col-1-4 {
	text-align: left;
	padding: 9px;
}

footer {
	/* fallback */ background-color: #086308; /* Safari 4-5, Chrome 1-9 */ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0A7C0A), to(#086308)); /* Safari 5.1, Chrome 10+ */ background: -webkit-linear-gradient(top, #0A7C0A, #086308); /* Firefox 3.6+ */ background: -moz-linear-gradient(top, #0A7C0A, #086308); /* IE 10 */ background: -ms-linear-gradient(top, #0A7C0A, #086308); /* Opera 11.10+ */ background: -o-linear-gradient(top, #0A7C0A, #086308);
	color: #FFFFFF;
}

.zerogrid .col-3-4 {
	font-size: .9em;
}

footer .zerogrid {
	width: 100%;
}

footer a:link, footer a:active, footer a:visited, footer a:hover {
	color: #FFFFFF;
}

footer #designed-by {
	text-align: right;
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

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

.clearfix {
    *zoom: 1;
}

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

@media only screen and (min-width: 950px) {
    a#sidebar-button{display:none;}
    ul#topnav {
        padding: 0 10px;
    }
    /* Style adjustments for viewports that meet the condition */
   .pad h1 {
	    height: 45px;
	    margin-top: 0;
	    vertical-align: middle;
	}
	#slide {
		background-size: 100% auto;
	}
	#craigs-head-img {
		max-width: 290px;
		width: 60%;
		top: 1px;
		position: relative;
	}
	#craigs-head {
 	   text-align: right;
	}
	#campaign-logo {
  		padding-top: 150px;
  	}
	.block-1 div#mobile-logo {
		display: none;
	}
	.block-2, .block-4, .block-5 {
	    margin: 0 auto;
	    text-align: center;
	    width: 95%;
	}
	#social-connections .col-1-4 {
		width: 23%;
	}
	footer {
		padding: 14px;
	}
	.col-1-4 article {
	  min-height: 224px;
	}
}

@media only screen and (min-width: 768px) and (max-width: 949px) {
    a#sidebar-button{display:none;}
    ul#topnav {
        padding: 0 10px;
    }
	#endorsements, #corporate-supporters, #video-bar, #social-connections, #nav-content, #content-bar {
		width:768px;
		margin: 0 auto;
	}
   .pad h1 {
	    height: auto;
	    margin-top: 0;
	    vertical-align: middle;
	}
	#slide {
		background-size: 100% auto;
	}
	#craigs-head-img {
		max-width: 290px;
		width: 60%;
		top: 1px;
		position: relative;
	}
	#craigs-head {
 	   text-align: right;
	}
	#campaign-logo {
  		padding-top: 130px;
  	}
	.block-1 div#mobile-logo {
		display: none;
	}
	.block-2, .block-4, .block-5 {
	    margin: 0 auto;
	    text-align: center;
	    width: 95%;
	}
	#social-connections .col-1-4 {
		width: 22%;
	}
	footer {
		padding: 14px;
		width: 742px;	
		margin: 0 auto;	
	}
	.col-1-4 article {
	  min-height: 330px;
	}
}

@media only screen and (max-width: 767px) {
    #green-menu {
        display: none;
    }
	.zerogrid{width:100%;}
   .pad h1 {
	    height: auto;
	    margin-top: 0;
	    vertical-align: middle;
	}
	#slide {
		background-size: 100% auto;
	}
	#craigs-head-img {
		max-width: 290px;
		width: 60%;
		top: 1px;
		position: relative;
	}
	#craigs-head {
 	   text-align: right;
	}
	#campaign-logo {
  		padding-top: 110px;
  	}
	.block-1 div#mobile-logo {
		display: none;
	}
	.block-2, .block-4, .block-5 {
	    margin: 0 auto;
	    text-align: center;
	    width: 95%;
	}
	#social-connections .col-1-4 {
		width: 22%;
	}
	footer {
		padding: 14px;
	}
}

@media only screen and (min-width: 720px) and (max-width: 767px) {	
	.col-1-4 article {
	 	min-height: 310px;
	 	font-size: 0.9em;
	}
	.col-1-4.grey h1, .col-1-4.green h1 {
		margin-bottom: 10px;
	}
}


@media only screen and (min-width: 720px) {	
	.social-top > img {
		height: auto;
  		width: 100%;
	}
}

@media only screen and (min-width: 600px) {
	body {
		background: url(../images/optimized-background.png) no-repeat fixed #000;
	}
	#slide {
		background: url(../images/optimized-header-tile.png) no-repeat;
	}	
	#content-bar h1 {
		margin-top: .2em;
	}
	#content-bar .block-2 {
		text-align: left;
		padding: 40px;
		width: auto;		
	}
	#endorsements-link > a {
	  font-size: 1.2em;
	}
	#video-bar .zerogrid {
		padding-bottom: 20px;
	}
	#slide {
	    min-height: 398px;
	}    
}
	
@media only screen and (max-width: 719px) {
	.zerogrid, .zerogrid .col-1-2, .zerogrid .col-1-3, .zerogrid .col-2-3, .zerogrid .col-1-4, .zerogrid .col-2-4, .zerogrid .col-3-4, .zerogrid .col-1-5, .zerogrid .col-2-5, .zerogrid .col-3-5, .zerogrid .col-4-5, .zerogrid .col-1-6, .zerogrid .col-2-6, .zerogrid .col-3-6, .zerogrid .col-4-6, .zerogrid .col-5-6{width:100%;}
	#slide {
		background-size: auto 100%;
	}
	nav ul {
		padding: 0;
	}
	#craigs-head-img {
		max-width: 290px;
		height: 166px;
		width: auto;
		top: 1px;
		position: relative;
	}
	#campaign-logo-img {
    bottom: 5px;
    max-width: 398px;
    position: relative;
    width: auto;
    height: 100px;
	}
	#craigs-head {
 	   text-align: left;
 	   display: none;
	}
	#campaign-logo {
  		padding-top: 0px;
 		display: none;
  	}
	.block-1 div#mobile-logo {
	    display: block;
		margin: 0 auto;
    	padding: 3%;
	}
	.block-1 div#mobile-logo img {
	    text-align: center;
    	width: 100%;
	}
	.block-2, .block-5 {
	    margin: 0 auto;
	    text-align: center;
	    width: 85%;
	}
	#social-connections .col-1-4 {
		width: 95%;
	}
	footer {
		padding: 24px;	
	}
}

@media only screen and (min-width: 400px) and (max-width: 719px) {
	#slide {
		background: url(../images/optimized-header-tile-600.png) no-repeat;
		background-size: auto 100%;
		min-height: 210px;
	}	
}

@media only screen and (max-width: 399px) {
	#slide {
		background: url(../images/optimized-header-tile-400.png) no-repeat;
		background-size: auto 100%;
		min-height: 145px;
	}	
}

@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;
    }
    
    .no-print, .no-print *
    {
        display: none !important;
    }
    
    #campaign-logo {
    	padding-top: 80px !important;
    	width: 50%;
    }
    
    #craigs-head {
    	right: 0;
    	width: 50%;
    }
}
