/*! 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.
 
 * Boilerplate used for streamlining clean codebase, custom authored code tested,
 * troubleshooted, and refined by Steve Chittenden, cbscreative.com.
 */

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

/**************** global styles *****************/

h1, h2, h3, h4, h5, h6 { color: #aaa; }

a { color: #999; text-decoration: none;}

a:hover { color: #d12329; text-decoration: underline; }

.unbold { font-weight: normal; }

blockquote { font-style: italic; font-size: 107%;}

blockquote span { font-style: normal; }

.right { float: right; margin: 0 0 8px 15px; }

.left { float: left; margin: 0 15px 8px 0; }

.clear { clear:both; display:block; font-size:0; height:0; line-height:0; width:100%; }

.onethird {
	float: left;
	width: 30%;
	padding: 1.5%;
	}

.xbottmargin { margin-bottom: 40px; }

.xtopmargin { margin-top: 40px; }


/**************** header styles *****************/

#header {
	background-color: #333;
	margin: 0;
	width: 100%;
	}

#header #top {
	background-color: #ddd;
	max-width: 1170px;
	min-height: 125px;
	margin: 0 auto;
	padding: 0;
	position: relative; /* Necessary to keep #contact and #share inside container */
	}

#logo {
	display: inline-block;	
	float: left;
	margin: 12px;
	}

#contact {
	right: 18px;	
	position:absolute; top:0;		
	display: inline;
	color: #d12329;
	font-size: 1.4em;
	}

#contact li {
	list-style-type: none;
	float: left;
	margin-left: 20px;
	}

#share {
	right: 18px;	
	position:absolute; top:4em; height:32px;		
	display: inline-block;
	}

#share li {
	list-style-type: none;
	float: left;
	margin-left: 10px;
	}

/* These settings still nested inside #top which already uses transparency */
#share img { opacity: 0.7; filter: alpha(opacity=70); }

#share img:hover { opacity: 1.0; filter: alpha(opacity=100); }

/**************** header nav *****************/

#nav {
	width: 100%;
	min-height: 2em;
	background: #000;
	text-align: center;
	}

#nav #navcontainer {
	background: #000;
	max-width: 1170px;
	margin: .3em auto;
	display: inline-block;
	}

#nav li{
	margin: 0 0 0 1.5em;	
	display: inline-block;		
	padding: 0;
	text-align: left;
	}

#nav ul a{
	color: #8f8f8f;
	font-size: 1em;
	line-height: 1.5em;
	text-decoration: none;
	}

#nav ul ul a{
	font-weight: normal;
	border-top: none;
	}

#nav ul li.sfHover a,
#nav ul li a:hover,
#nav ul li:hover {
	text-decoration: none;
	color: #fff;	
	}

#nav .plaintext { color: #fff; margin-top: 5px; } /* Adjusts plain text when anchor isn't used */

/* Dropdowns */

#nav ul ul {
	padding: 20px 0 0 !important;
	margin-top: -10px;
	background: #fdfdfd;
	border: 1px solid #dedede;
	-moz-box-shadow: 0 0px 6px rgba(0,0,0,0.1);
	-webkit-box-shadow: 0 0px 6px rgba(0,0,0,0.1);
	box-shadow: 0 0px 6px rgba(0,0,0,0.1);
	}
	

#nav ul ul ul {	
	padding-top: 20px !important;
	margin-left: -1.25em;
	margin-top: -5px;	
	}

#nav ul ul li {	
	float: none;
	background: none;	
	margin: 0 5px 10px 15px !important;		
	}

#nav ul ul li a {
	padding: 0px 0 10px 0;
	font-weight: normal;
	border: none !important;
	}

/* See also sf-menu.css */

#nav ul li.sfHover ul a { color: #7b7b7b !important; }

#nav ul li.sfHover ul a:hover { color: #000 !important; }

/** arrow **/

#nav .sf-menu a.sf-with-ul {
	position: relative;
	min-width:		1px;
	}

.sf-sub-indicator {
	position: absolute;
	bottom: 0px;	
	display: block;
	width: 100%;
	text-indent: -999em;
	overflow: hidden;
	z-index: 200;
	height: 40px;
	}

.sfHover .sf-sub-indicator {
	bottom: -10px;	
	}

#nav .sf-menu li ul .sf-sub-indicator {
	display: none;
	}

#nav .sf-menu li ul .sfHover .sf-sub-indicator {	
	position: absolute;
	top: 0;
	right: -1px;
	left: none;
	display: block;	
	}

.sfHover a.sf-with-ul .sf-sub-indicator {
	height: 2em;
	}

.children .sf-sub-indicator {
	display: none;
	}

#header .vidcontainer { /* This container wraps nested .vid to avoid issues */
	width: 1170px;
	margin: 0 auto;
	}

#header .vid { /* Responsive video container */
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
	}

#header .vid iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	}


/**************** pageheading and pagebody styles *****************/

/* pageheading used on top of internal pages instead of Home slider */
#pageheading {
	padding: 12px 0;
	margin: 0 2.5% 30px;
	border-top: 1px solid #dfdfde;
	border-bottom: 1px solid #dfdfde;
	}

#pageheading h1 {
	font-size: 2em;
	line-height: normal;
	padding: 0;
	margin-bottom: 0;
	display: block;
	}

#pageheading p {
	margin: 0!important;
	padding: 10px 0 0 0!important;
	line-height: 1em;
	}

#pagebody {
	max-width: 1170px;
	margin: 12px auto;
	}

#pagebody ul li { margin-bottom: 10px; }

#pagebody a name {
	color: inherit; /* Prevents named anchors from looking like href in some browsers */
	}

#pagebody .featured {
	width: 99%;
	margin: 20px auto;
	}


#pagebody .featured h3 {
	font-size: 1.9em;
	text-align: center;
	margin-bottom: 0;
	}

#pagebody .content {
	max-width: 950px;
	margin: 0 auto;
	padding: 0 1em;
	}

#pagebody .form {
	border: thin solid;
	padding: 0 15px;
	}



/**************** footer styles *****************/

#footer {
	width: 100%;
	background: #000;
	padding: 12px 0;
	margin: 28px 0 0;
	color: #eee;
	}

#footer .inside { background: #333; }

#footer h5, h6 {
	font-weight: normal;
	}

#footer a:hover { /* footer using same a color but subject to change with customizing */
	color: #eee;
	text-decoration: underline;
	}

#footer #ftrcontainer, #related {
	max-width: 1170px;
	margin: 0 auto;
	}

#footer #primarynav, #subnav {
	text-align: center;
	}

#primarynav li {
	margin: 0 0 0 1.5em;	
	display: inline-block;		
	padding: 0;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: .8em;
	}

#primarynav li a { color: #aaa; }

#subnav li a { color: #aaa; }

#footer #subnav { padding-bottom: 25px; }

#subnav li {
	margin: 0 0 0 1.5em;	
	display: inline-block;		
	padding: 0;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: .6em;
	}

#footer #altnav { /* Simplified footer content w/o primary or sub navs */
	text-align: center;
	padding: 20px 0 30px;
	}

#footer #altnav p {
	color: #ccc;
	}

#footer #altnav a {
	color: #ddd;
	}

#footer #altnav a:hover {
	color: #fff;
	}

#footer .credits {
	color: #ccc;
	border-top: 1px solid;
	}

#footer .credits h6 {
	color: #999;
	margin: 20px 0;
	}

#footer .credits h6 a { color: #ccc; font-weight: bold; }


/* ==========================================================================
   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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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 */
}

/***************** Custom media queries *********************/

@media only screen and (max-width: 1200px) {
	#footer .credits {
		margin: 0 12px;
		}
	
	#header .vidcontainer {	/*overrides video wrapping container size on larger screens*/
		width: 100%;
		}
}

@media only screen and (max-width: 800px) {	
		/* Prevents #contact from overlapping logo, width setting and settings below may require adjustment */
		#contact {
		position: relative;
		/* margin: -1em 0 0;   ul top margin of 1em set as default in normalize.css. Activate to cancel */
		right: 2%;
		height: auto;
		float: right;	/* This float works with wider logos but creates off-centering on template logo */
		}
}

/*layouts smaller than 600px, iPhone and mobiles*/
@media only screen and (max-width: 480px), screen and (max-device-width: 480px), screen and (max-width: 600px) {

	html { -webkit-text-size-adjust: none; }
	
	h1 { font-size: 1.2em; }
	h2 { font-size: 1.1em; }
	h3 { font-size: 1.0em; }
	h4 { font-size: .9em; }
	h5 { font-size: .8em; }
	
	.onethird { clear: both; float: none; margin: 10px auto; width: 80%;}
	
	#header { text-align: center; }
	
	#header #logo { margin: 5px; }
	
	#header #logo img {
		max-width: 100%;
		height: auto;
		}
	
	#contact ul li {
		position: relative;
		top:0;
		right: 2%;
		width: 98%;
		margin: 0 10px;
		text-align: center;
		height: auto;
		}
	
	#share {
		position: relative;
		padding-top: 6px;
		top:0;
		right: 2%;
		width: 98%;
		margin: 0 10px;
		text-align: center;
		height: auto;
		}
	
	#nav {
		position: relative;
		padding-top: 3px;
		top: 0;
		right: 0;
		width: 95%;
		margin: 0 0 0 2.5%;
		height: auto;
		}	
	
	#nav li {
		margin: 0 0 0 0!important;	
		display: inline-block;		
		padding: 7px 5px;
		float: none;
		}
	
	/*#nav .sub-menu li {		
		margin-left: 0 !important;
		padding-left: 0 !important;
		}*/
	
	#logo {
		float: none;
		margin-bottom: 10px;
		}
	
	#pageheading { margin: 0 0px 25px; }
	
	#pageheading h1 { font-size: 1.2em; }
	
	.left { clear: left; float: none; }
	
	.right { float: none; max-width: 95%; }
}

@media only screen and (max-width: 320px) {
	.onethird { width: 92%;}
}


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