/**
 * Theme:	Flat Bootstrap
 * File:	theme-base.css
 * 
 * The stylesheet for basic WordPress styles
 *
 * Contains padding, margins, list styles, etc.
 *
 * @package flat-bootstrap
 */
 
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Typography
# Accessibility
# Alignments
# Clearings
# Content
	## Header
	## Sidebars
	## Footer
	## Posts and pages
	## Post Formats (not used)
	## Comments
# Media
	## Captions and Galleries
	## Profile Pictures ("avatars")
# Widgets & Plugins
	## Widgets
	## Plugins

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

/* Set some basic body styles */
body {
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

/* 
 * Set "vertical rhythm" to 24px top and 12px bottom margin for consistency across
 * elements. BS3 uses 22px (h1-h3) or 11px (h4-h6) top margin and 11px bottom margin for
 * most elements, but some are different such as .lead, etc. BS4 uses NO top margin at all
 * and looks terrible. Note that theme-flat.css adjusts some margins when padding classes
 * are added.
 */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
.jumbotron p {
	margin-top: 24px;
	margin-bottom: 12px;
}

p,
code,
pre,
blockquote,
.lead,
.pagination {
	margin-top: 0;
	margin-bottom: 12px;
}

ul, 
ol {
	/*padding: 0;*/
	margin-bottom: 12px;
}

ul ul,
ol ol {
	margin-left: 24px;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

/* 
 * Text meant only for screen readers. Required only for WordPress as Bootstrap uses
 * .sr-only and we apply that in this theme.
 */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}
p.screen-reader-text {
	margin-bottom: 0;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	left: 5px;
	top: 5px;
	text-decoration: none;
	text-transform: none;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/

/* 
 * Note that bootstrap.css has alignment as well (such as text-center, pull-left, pull-
 * right), but these are required by WordPress for all themes. Note we have included
 * versions both with a dash as well to make them easier for users to remember. 
 */
.alignleft, 
.align-left {
	display: inline;
	float: left;
	margin-right: 10px; /*1.5em*/
}
.alignright, 
.align-right {
	display: inline;
	float: right;
	margin-left: 10px; /*1.5em*/
}
.aligncenter, 
.align-center {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/*
 * Note that these were moved here from theme-flat.css in Flat Bootstrap v1.9.
 * 
 * TO-DO: Consider deprecating this as Bootstrap already has text-center class
 */
.centered {
    text-align: center;
}

.nocenter {
	text-align: left;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/

/*
 * Note that bootstrap.css clears its floats. These are extra ones for WordPress.
 */

/* Clearing floats */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.entry-meta:before,
.entry-meta:after,
.pager:before,
.pager:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: '';
	display: table;
}

.clear:after,
.entry-content:after,
.entry-meta:before,
.entry-meta:after,
.pager:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Header
--------------------------------------------------------------*/

/* Limit the entire page for really wide screens, such as an iMac. */
#page {
	max-width: 1600px;
	/*max-width: 1200px;*/
	/*border: 1px solid #efefef;*/
	margin: 0 auto;
	overflow: hidden;
}

/* Custom site logo */
.custom-logo {
	max-height: 100px;
	width: auto;
	margin-left: 15px;
	vertical-align: middle;
}

/*  
 * Wrapper for custom logo (if active), site title, and site description. Height ends up
 * being 180px total.
 */
.site-branding {
	padding: 36px 0;
	vertical-align: middle;
}
.site-branding > * {
  vertical-align: middle;
}

/* Wrap site title and description so they can be vertically aligned center */
.site-branding-text {
	margin-left: 15px;
	display: inline-block;
}

.site-title {
	margin-top: 12px; /* site-branding has padding */
}

.site-description {
	font-size: 24px;
	margin-top: 13px;
	margin-bottom: 12px; /* site-branding has padding */
}

.site-title a, .site-title a:hover, .site-title a:active {
	text-decoration: none;
}

header.site-header.page-header {
	border-bottom: 0;
}

.custom-header-text-color a:hover,
.custom-header-text-color a:focus {
	opacity: 0.75;
}

.custom-header-image {
	margin: 0 auto;
	background-repeat: none;
	background-position: center center;	
	max-width: 100%;
}
 .custom-header-image h1 {
	font-weight: 700;
}
.custom-header-image h2 {
	font-size: 24px;
}

/* 
 * This is our scroll down arrow for a custom header on the home page, but also match it
 * to a carousel that might be at the top of a page instead.
 */
a.scroll-down, 
a.scroll-down:hover span, 
a.scroll-down:focus span, 
.carousel-control:hover, 
.carousel-control:focus {
	color: #fff;
	font-size: 20px;
}

/* 
 * This is our content header that is below the header and before the content area. 
 * Top padding and bottom padding is set based on h1-h3 tags have 24px top margin and 
 * 12px bottom margin. Total top and bottom "whitespace" is 48px.
 */
.content-header {
    padding-top: 24px;
    padding-bottom: 36px;
}
header.content-header {
	min-height: 195px; /* title, subtitle, and above padding */
}
.content-header i {
    font-size: 36px;
    text-align: center;
}

/* Set initial image background so light text is readable before image loads */
.content-header-image {
	background-color: #e7e7e7;
}

/*
 * These are our cover (home page) and section (other page) large content-header images.
 */
.section-image, 
.cover-image {
  	display: table;
	background-repeat: no-repeat;
	text-align:center;
	background-attachment: scroll;
	background-position: center;
	background-color: #e7e7e7; /*gray*/
	width: 100%;
  	position: relative;
  	vertical-align: top;
	
	-webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size: 100%;
    background-size: 100%;

    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.section-image-overlay, 
.cover-image-overlay {
  	display: table-cell;
  	vertical-align: middle;
	overflow: hidden;
	padding: 50px;
	padding: 5%;
	z-index: 2;	
}
.cover-image, 
.cover-image-overlay {
  height: 100%; /* For at least Firefox */
  min-height: 480px;
}
.section-image, 
.section-image-overlay {
	min-height: 340px;
	/*min-height: 320px;*/
}
.section-image h1, 
.cover-image h1 {
	font-size: 42px;
	color: #fff;
	line-height: 1.1;
}
.section-image h2, 
.cover-image h2 {
	font-size: 30px;
	color: #fff;
	line-height: 1.1;
}
.section-image h3, 
.section-image h4, 
.section-image p, 
.cover-image h2, 
.cover-image h3, 
.cover-image h4, 
.cover-image p {
	color: #fff;
}

.cover-image .spacer {
    margin-top: 100px
}

.section-featured h1 {
	font-size: 42px;
	line-height: 1.1;
}
.section-featured h2 {
	font-size: 30px;
	line-height: 1.1;
}
.section-featured {
	padding-top: 60px;
	border-bottom: #bdc3c7 solid 5px;
}

/* For larger screens, increase font size and spacing */
@media (min-width: 768px) {

	.cover-image h1,
	.section-image h1,
	.wp-caption-text-fullwidth h1 {
		font-size: 70px;
		letter-spacing: 3px;
	}
	.cover-image h2,
	.section-image h2,
	.wp-caption-text-fullwidth h2 {
		font-size: 42px;
		letter-spacing: 2px;
	}
	.cover-image .spacer {
		margin-top: 200px;
	}
	.cover-image, .cover-image-overlay {
		min-height: 700px;
		/*min-height: 620px;*/
	}
	.section-image, .section-image-overlay {
		min-height: 400px;
		/*min-height: 320px;*/
	}
}

/*--------------------------------------------------------------
## Sidebars
--------------------------------------------------------------*/

/* For main sidebar, add some whitespace. 36px + 12px = 48px to match top. */
#secondary {
	padding-top: 36px;
	padding-bottom: 36px;
}
#secondary aside.widget {
	margin-bottom: 12px;
}

/* Remove top-margin on hx tags for the FIRST widget in the main sidebar */
#secondary > .widget:first-child > h1:first-child,
#secondary > .widget:first-child > h2:first-child,
#secondary > .widget:first-child > h3:first-child,
#secondary > .widget:first-child > h4:first-child,
#secondary > .widget:first-child > h5:first-child,
#secondary > .widget:first-child > h6:first-child {
	margin-top: 0;
}

/* Get rid of bullets on sidebars, footer, page top, page bottom, and home page */
#secondary ul, 
#sidebar-pagetop ul,
#sidebar-pagebottom ul,
#sidebar-home ul,
footer#colophon.site-footer ul {
	list-style: none;
	padding: 0; /* Since removed from generic ul style above */
}

/* Space out the lists in sidebars and footers */
#secondary ul li, 
/*footer#colophon.site-footer ul li {*/
.sidebar-footer ul li {
	margin-top: 12px;
}

/* Don't add margin to our footer nav menu, though */
/*footer#colophon.site-footer .after-footer ul li {
	margin-top: 0;
}*/

/*--------------------------------------------------------------
## Footer
--------------------------------------------------------------*/

/* 
 * Since our footer collapses into 2 columns on iPad-sized screens, add some of the
 * whitespace to the individual columns instead of putting it all into the whole footer
 * area.
 */
.sidebar-footer {
	padding: 24px 0;
}
.sidebar-footer .widget {
	padding-top: 24px;
	padding-bottom: 12px; /* lists, paragraphs, etc. already 12px bottom margin */
}
.sidebar-footer .widget-title {
	margin-top: 0;
}

/* Format the "after footer", which has the footer nav menu and site credits */
.after-footer {
	padding: 32px 0 24px; /* ul and p tags already have 12px bottom margin */
}

/* Let's put dividers between footer menu items */
#footer-navigation ul.dividers > li:nth-child(n+2):before {
  content: "";
  display: inline-block;
  height: 10px;
  margin-right: 10px;
  border-left: 1px solid #dddddd;
}

/* Remove top margin from our footer nav menu since its horizontal */
/*footer#colophon.site-footer .after-footer ul li {
	margin-top: 0;
}*/

/* 
 * Format the sample footer menu "top of page" icon. Since this stylesheet is WordPress
 * rather than relying on font-awesome, make the caret icon look the same. For some
 * reason the WordPress glyphicons are twice as large as the font-awesome ones.
*/
#footer-navigation .glyphicon-menu-up {
	font-size: 50%;
}

/* Need to pad site credits to line up with the footer nav menu */
.site-credits {
	margin-bottom: 12px;
}

/* Center the text after the footer for smartphones */
@media (max-width: 640px) {
	.footer-nav-menu, .site-credits {
		text-align: center;
		float: none !important;
	}
	.site-credits {
		padding-bottom: 12px;
	}
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/

/* Content areas */
.content-area {
	padding-top: 36px;
	padding-bottom: 24px; /* p tags, etc. already have 12px bottom margin */
}

.content-area-wide .comments-area {
	padding-bottom: 36px;
}

/*.page .entry-content {
	padding-top: 0;
}*/

.entry-summary {
	margin-bottom: 24px;
}

article.post {
	margin-bottom: 24px;
}

/* Remove top-margin on hx tags for archives and the FIRST one on a page */
/*.entry-title,
#xsbf-entry-content > h1:first-child,
#xsbf-entry-content > h2:first-child,
#xsbf-entry-content > h3:first-child,
#xsbf-entry-content > h4:first-child,
#xsbf-entry-content > h5:first-child,
#xsbf-entry-content > h6:first-child {
	margin-top: 0;
}*/

/* When full-width pages are changed back to have a sidebar, fix the layout */
.content-area .entry-content .container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.content-area .entry-content .container .row {
	margin-left: 0;
	margin-right: 0;
}

/* For larger screens, add some padding to sidebar to offset it from the content area */
@media (min-width: 992px) { /*768?*/

	/*.content-area.col-md-8 {
		padding-right: 30px;
	}*/

	/*.content-area.col-md-8.col-md-push-4 {
		padding-left: 30px;
	}*/

	/* Add left padding to sidebar when its on the right */
	#secondary.widget-area.sidebar-right {
		padding-left: 15px;
	}

	/* Add right padding to the sidebar when its on the left */
	#secondary.widget-area.sidebar-left {
		padding-right: 15px;
	}

}

/* Entry meta */
footer.entry-meta, 
div.entry-meta, 
.edit-link {
	font-size: 16px;
}
.edit-link a {
	color: #7f8c8d;
}
.edit-link a:hover, 
.edit-link a:focus {
	color: #3bc492;
}

.cat-links, .tags-links {
	margin-right: 10px;
}

.posted-on {
	margin-right: 5px;
}
.by-line, .comments-link {
	margin-left: 5px;
	margin-right: 5px;
}

/* Style tables like TwentyEleven theme with lines between entries */
.entry-content table,
.comment-content table {
	border-bottom: 1px solid #ddd;
	margin: 0 0 1.625em;
	width: 100%;
}
.entry-content th,
.comment-content th {
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 2.6em;
	text-transform: uppercase;
}
.entry-content td,
.comment-content td {
	border-top: 1px solid #ddd;
	padding: 6px 10px 6px 0;
}

/* Mark "sticky" (featured) posts as "Featured" */
.sticky .entry-title:after {
	content: "Featured";
	display: inine-block;
	font-size: 20px;
	margin-left: 15px;
	padding: 10px;
	vertical-align: middle;
}

/*--------------------------------------------------------------
## Post Formats
--------------------------------------------------------------*/

/* 
 * This theme doesn't provide templates or styles for any post formats, but it's easy
 * to add them to a child theme
 */

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/

/* Add some whitespace to the whole comments area */
#comments {
	background-color: #e7e7e7;
	margin: 12px 0 24px;
	padding: 24px 24px 12px 24px; /* h3 already has 24px top margin */
}
#comments h2 {
	margin-top: 0;
}

.comment-reply-title {
	margin-top: 0; /* padding added above already */
}

/* Get rid of bullets on comment <ul> and set some padding and indenting */
.comment-list,
.comment-list .children {
	list-style-type: none;
	/*padding: 0;*/
}

/* Set child comment indent to a percentage for better responsive handling */
.comment-list .children {
	margin-left: 5%;
}

/* Highlight comments by the post author */
.bypostauthor > article > footer > .comment-author:after {
	content: "Author";
	display: inine-block;
	/*font-size: 20px;*/
	font-size: 16px;
	margin-left: 9px;
	padding: 3px;
	/*vertical-align: middle;*/
}

/*input {
	border-color: #ccc;
}*/

/* Style the standard WordPress comment form. Note Jetpack comments styled later. */
.comment-form [for="author"],
.comment-form [for="email"],
.comment-form [for="url"],
.comment-form [for="comment"] {
	float: left;
	width: 80px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	max-width: 310px;
	width: 70%;
	border-color: #ccc;
}

.comment-form, 
.comment-textarea, 
textarea {
	max-width: 100%;
	border-color: #ccc;
}

/* Styles for default WordPress comments */
textarea#comment {
	max-width: 743px; /*largest width of content area w/sidebar*/
	width: 100%;
	max-height: 140px;
	/*background-color: #f2f2f2;*/
}

/* Hide the label "Comment" above the comment box as its pretty obvious already */
.comment-form-comment label {
	display: none;
}
p.comment-subscription-form {
	margin-bottom: 12px;
}

.reply {
	/*display: inline;*/
	margin-bottom: 12px;
}

/* Get rid of the word "says" from comments */
.says {
	display: none;
}

/* Space out pingbacks ("trackbacks") */
li.pingback {
	margin-bottom: 15px;
}

/* Set the comment box height via CSS for consistency across browsers */
form.contact-form textarea {
	height: 108px;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/

/* Make sure these elements don't break the layout */
img, embed, iframe, media, swf, pre, code, container, select, .videopress-placeholder {
	max-width: 100%;
	overflow: hidden;
	white-space: pre;           /* CSS 2.0 */
	white-space: pre-wrap;      /* CSS 2.1 */
	white-space: pre-line;      /* CSS 3.0 */
	white-space: -pre-wrap;     /* Opera 4-6 */
	white-space: -o-pre-wrap;   /* Opera 7 */
	white-space: -moz-pre-wrap; /* Mozilla */
	white-space: -hp-pre-wrap;  /* HP Printers */
	word-wrap: break-word;      /* IE 5+ */
}

/* Set images and videopress videos to auto-height to preserve proper aspect ratio */
img, 
.videopress-placeholder {
	height: auto;
}

/*--------------------------------------------------------------
## Captions and Galleries
--------------------------------------------------------------*/

/* Normal WordPress captions and galleries */
.wp-caption {
	max-width: 100%;
}
.wp-caption-text,
.gallery-caption {
	text-shadow: none;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	/*margin-top: -22px;*/ /* Offset Bootstrap .thumbnail class */
	/*margin-bottom: 22px;*/
	margin-bottom: 24px;
}

/* Center the thumbnails since WordPress centers the caption text */
.gallery-icon img {
	margin: auto;
}

/* For standard WordPress slideshow, get rid of black background. We want to leave 
 * whatever color background we have 
 */
.slideshow-window {
	background-color: transparent !important; 
	border: none !important;
}

/* Style Bootstrap carousel's ("sliders") */

.carousel-inner img {
	margin-left: auto;
	margin-right: auto;
}
.carousel-caption {
	max-width: 100%;
	text-shadow: none;
	padding-left: 10px;
	padding-right: 10px;	
}

/* Push the carousel indicators down below the image or content */
.carousel-indicators {
	bottom: -35px;
}

/* 
 * Get rid of gradient on Bootstrap carousel left and right buttons
 */
.carousel-control.left, .carousel-control.right {
	background-image: none;
	background-repeat: none;
}

/*--------------------------------------------------------------
## Profile Pictures ("avatars")
--------------------------------------------------------------*/

/* Come on now, of course we need a margin before their name and comment */
.avatar {
	float: left;
	margin-right: 10px;
	margin-bottom: 10px;
}

/* Make user profile pics (avatars) circles */
.avatar,
.testimonial-thumbnail {
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
}
img.avatar.thumbnail {
	border: none;
	padding: 0;
}

/*--------------------------------------------------------------
# Widgets and Plugins
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Widgets
--------------------------------------------------------------*/

/* 
 * Style the WordPress calendar widget because Bootstrap doesn't even add a 'table'
 * class to tables. Ugh.
 */
#calendar_wrap {
	font-size: 14px;
	max-width: 300px;
}
aside.aligncenter > #calendar_wrap {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.widget_calendar #wp-calendar {
	/*color: #555;*/ /* Remove this in case someone adds a colored background */
	width: 95%;
	text-align: center;
}
.widget_calendar #wp-calendar caption,
.widget_calendar #wp-calendar td,
.widget_calendar #wp-calendar th {
	color: inherit; 
	text-align: center;
}
.widget_calendar #wp-calendar caption {
	font-weight: 500;
	padding: 5px 0 5px 0;
	text-transform: uppercase;
}
.widget_calendar #wp-calendar th {
	/*background: #f4f4f4;*/ /* Remove this in case someone adds a colored background */
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	font-weight: bold;
}
.widget_calendar #wp-calendar tfoot td {
	/*background: #f4f4f4;*/ /* Remove this in case someone adds a colored background */
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

/*--------------------------------------------------------------
## Plugins
--------------------------------------------------------------*/

/* Hide JetPack's sharing module from pages with posts */
.page-posts .sharedaddy {
	display: none;
}

/* Get rid of the smiley face when using Jetpack stats */
img.wp-smiley {
     display: inline-block;
}

/* 
 * Format Jetpack infinite scroll feature. These are globally hidden elements when
 * infinite scroll is supported and in use. Older / Newer Posts Navigation is always
 * hidden. Theme Footer and Page Bottom widget area are hidden while scrolling.
 */
.infinite-scroll .paging-navigation, 
.infinite-scroll.neverending .site-footer,
.infinite-scroll.neverending .sidebar-pagebottom { 
	display: none;
}

/* 
 * When Infinite Scroll has reached its end we need to re-display elements that
 * were hidden before (via .neverending) 
 */
.infinity-end.neverending .site-footer,
.infinity-end.neverending .sidebar-pagebottom {
	display: block;
}
