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

html {
    color: #222;
    font-size: 16px;
    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;
}

/* ==========================================================================
   Styles - Mobile First Styles
   ========================================================================== */
body {
	padding:0;
	margin:0;
	background:#EEE;
}
a {
	color:#A53838;
}
a:hover {
	color:#996666;
}
p {
}
h1, h2, h3, h4, h5, h6 {
	color:#863333;
	margin:0.6em 0;
}
h1 {
	font-size:2.0em;
}
h2 {
	font-size:1.8em;
}
h3 {
	font-size:1.6em;
}
h4 {
	font-size:1.5em;
}
h5 {
	font-size:1.5em;
}
h6 {
	font-size:1.5em;
}
#wrapper {
	width:100%;
	max-width:1600px;
	margin:auto;
	/*Add a drop shadow on side edges*/
}
header {
}
nav {
	height:auto;
	overflow:hidden;
	background:#FFF;
	border-top:solid 6px #863333;
}
.nav { /*Class*/
	position:relative;
	background:;
	height:auto;
	overflow:hidden;
}
.nav ul {
	list-style:outside;
	list-style-type:none;
	padding:0;
	margin:0;
}
.nav ul li {
	display:block;
	float:left;
	width:100%;
	text-align:center;
	-webkit-transition: background 600ms ease-in-out;
	-moz-transition: background 600ms ease-in-out;
	-ms-transition: background 600ms ease-in-out;
	-o-transition: background 600ms ease-in-out;
	transition: background 600ms ease-in-out;
}
.nav ul li:hover {
	background:#600;
}
.nav ul li a {
	display:block;
	padding:0.6em 0;
	font-size:1.2em;
	text-decoration:none;
	color:#863333;
	border-bottom:dashed 1px #600;
}
.nav ul li:hover a {
	color:#FFFFFF;
}
.nav-mobile { /*Mobile menu specific*/
	display:none;
	cursor:pointer;
	position:absolute;
	top:0;
	right:0;
	height:50px;
	width:50px;
	border-radius:5px;
	-webkit-border-radius:5px;
	-moz-border-radius:5px;
	background-color: rgba(0,0,0,0.5);
	background-image: url(../img/gfx/nav.svg);
	background-repeat: no-repeat;
	background-position: center center;
}
#banner-container {
	width:100%;
	height:auto;
}
.banner-caption {
	display:block;
	width:92%;
	padding:1% 4%;
	color:#FFFFFF;
	background:rgba(165,56,56,0.9);
}
#logo { /*See Text Styles .logo-title and .logo-strapline for styling*/
	display:block;
	width:92%;
	padding:1% 4%;
	background:rgba(200,122,145,0.7);
}
#container {
	width:94%;
	padding:0 3%;
	height:auto;
	overflow:hidden;
	background:#FFF;
}
main {
}
article header {
}
aside {	
}
aside div {
	text-align:center;
}
footer {
	width:94%;
	padding:0% 3%;
	height:auto;
	overflow:hidden;
	background:#863333;
}
.footer-content {
	display:block;
	width:100%;
	padding:1.5em 0;
}
	#address-container {
		width:100%;
		font-size:0.9em;
		color:#FFFFFF;
	}
	#address-container a {
		display:inline-block;
		width:auto;
		color:#FFF;
		text-decoration:underline;
	}
.credit {
	display:block;
	clear:both;
	width:100%;
	padding:1% 0%;
	font-size:0.8em;
	text-align:right;
	color:#fff;
	border-top:solid 1px #666;
}
.credit a {
	color:#fff;
}
/*Google Calendar - https://codepen.io/profstein/pen/ozMbPJ*/
.googleCalendar {
  position: relative;
  height: 500px;
  min-height:480px;
  width: 100%;
  padding-bottom: 50%;
}
.googleCalendar iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/*----- Block Styles -----*/
.containerRow {
	display:block;
	clear:both;
	width:100%;
}
/*Columns will flex, add as many as required*/
.col {
	flex:1;
	box-sizing:border-box;
}
/*----- TEXT STYLES -----*/
.logo-title, .logo-strapline {
	text-align:center;
}
.logo-title {
	display:block;
	clear:both;
	font-size:1.6em;
}
.logo-strapline {
	display:block; /*consider hiding on small mobile screens*/
	font-size:1.1em;
}
.features {
	height:auto;
	overflow:hidden;
	list-style:outside;
	list-style-type:none;
	margin:0;
	padding:0;
}
.features li {
	display:block;
	width:92%;
	padding:0.7em 3.33%;
	margin:0.35em 0;
	text-align:center;
	border:solid 1px #C99;
}
.features .highlight {
	background:#CC9999;
	font-weight:bold;
}
.ft-title {
	display:block;
	clear:both;
	padding:0;
	margin-bottom:0;
	margin-top:0;
	font-size:1.5em;
}
.pCen {
	text-align:center;
}
/*----- IMAGE STYLES -----*/
.responsive {
	width:100%;
	height:auto;
}
.banner {
}
.ft-img-cont { /*Features image container*/
	display:block;
	width:100%;
	margin:auto;
	margin-bottom:1.0em;
	text-align:center;
}
.ft-img { /*Features 500px image*/
	max-width:300px;
}
.img500 {
	max-width:500px;
}
/*----- GRAPHICS -----*/
.button {
	display:inline-block;
	width:auto;
}
.read-more {
	font-size:1.4em;
	color:#FFF;
}
.read-more {
	display:block;
	padding:0.7em 1.7em 0.7em 0.7em;
	margin:0.3em 0;
	text-decoration:none;
	color:#FFFFFF;
	background:#A53838;
	-webkit-transition: background 600ms ease-in-out;
	-moz-transition: background 600ms ease-in-out;
	-ms-transition: background 600ms ease-in-out;
	-o-transition: background 600ms ease-in-out;
	transition: background 600ms ease-in-out;
}
.read-more:hover {
	background:#600;
}
.read-more a {
	color:#FFF;
	text-decoration:none;
}
.ft-container {
	width:100%;
}
.fb-block {
	display:block;
	width:100%;
	height:auto;
	overflow:hidden;
	padding:1.0em 0;
	margin-bottom:1.0em;
	-webkit-transition: background 600ms ease-in-out;
	-moz-transition: background 600ms ease-in-out;
	-ms-transition: background 600ms ease-in-out;
	-o-transition: background 600ms ease-in-out;
	transition: background 600ms ease-in-out;
}
.fb-block:hover {
	background:#9CF;
}
.box {
	box-sizing:border-box;
	padding:0.5em;
	border:solid 1px #C63;
}
/*Blog Post Styles*/
.postList {
	list-style:outside;
	list-style-type:none;
	margin:0;
	padding:0;
}
.postList li {
	display:block;
	width:100%;
	margin-bottom:1.0em;
	text-align:center;
	border-bottom:solid 1px #999;
}
.postList li a h2 {
	font-size:1.4em;
}
.imgPostList {
	width:100%;
}
.postHeader {
	padding:0.5em 1.5em;
	background:#fffff0;
	border-bottom:solid 1px #CC9;
}
.postHeader h1 {
}
article footer {
	background:#fff;
}
.eventDetail {
	padding:0.5em 1.5em;
	font-size:1.2em;
	border-bottom:solid 1px #999;
}
@media (min-width: 1px) and (max-width: 767px) {
	/*mobile specific*/
	nav {
		min-height:50px;
	}
	.nav-list {
		display:none;
	}
	.nav-mobile {
		display:block;
	}
	.nav-active {
		display:block;
	}
	.nav-mobile-open {
		border-radius:5px 5px 0 0;
		-webkit-border-radius:5px 5px 0 0;
		-moz-border-radius:5px 5px 0 0;
	} /*end mobile specific*/
}
@media (min-width: 768px) {
	.nav ul li {
		width:20%;
	}
	.nav ul li a {
		padding:1.0em 0;
		border-bottom:none;
		font-size:1.2em;
	}
	.nav ul li:nth-child(1) a, .nav ul li:nth-child(2) a, .nav ul li:nth-child(3) a, .nav ul li:nth-child(4) a {
		border-right:dashed 1px #600;
	}
	.ft-container {
		float:left;
		width:59%;
		padding:0 3%;
	}
	.ft-img-cont {
		float:left;
		width:35%;
	}
	.ft-img {
		max-width:500px;
	}
	.features li {
		float:left;
		width:42%;
		padding:0.7em 3%;
	}
	.features li:nth-child(odd) {
		margin-right:2%;
	}
	.postList li {
		width:46%;
		float:left;
		margin-left:2%;
		margin-right:2%;
	}
}
@media (min-width:640px) and (orientation:landscape) {
	.postList li {
		width:46%;
		float:left;
		margin-left:2%;
		margin-right:2%;
	}
}
@media (min-width: 1024px) {
	.containerRow {
		display:flex;
	}
	.col {
		margin:1%;
	}
	#banner-container {
		position:relative;
		/*border-bottom:solid 4px #A53838;*/
	}
	.banner-caption {
		clear:none;
		position:absolute;
		width:auto;
		padding:1% 3%;
		margin-left:3%;
		left:0;
		bottom:70%;
	}
	#logo {
		clear:none;
		position:absolute;
		left:0;
		bottom:0;
	}
	.logo-title, .logo-strapline {
		text-align:left;
	}
	.logo-title {
		font-size:2.2em;
	}
	.logo-strapline {
		font-size:1.6em;
	}
}
@media (min-width:1200px) {
	main {
		float:left;
		width:70%;
	}
	aside {
		float:left;
		width:28%;
		margin-left:2%;
	}
}
@media (min-width: 1600px) {
	h1 {
		font-size:2.6em;
	}
	h2 {
		font-size:2.4em;
	}
	h3 {
		font-size:2.2em;
	}
	h4 {
		font-size:2.0em;
	}
	h5 {
		font-size:2.0em;
	}
	h6 {
		font-size:2.0em;
	}
	.logo-title {
		font-size:2.6em;
	}
	.logo-strapline {
		font-size:1.8em;
	}
	/*
	.features li:nth-child(odd) {
		margin-right:auto;
	}
	.features li {
		width:30%;
		padding:0.7em 1%;
		margin-left:1%;
		margin-right:0%;
	}
	*/
}
/* ==========================================================================
   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.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* 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 {
        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;
    }
}
