/*
 * jQuery FlexSlider v2.2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */
/* Browser Resets
*********************************/
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus { outline: none }
.slides,
.flex-control-nav,
.flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* FlexSlider Necessary Styles
*********************************/
.flexslider {
    margin: 0;
    padding: 0;
}
.flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
    width: 100%;
    display: block;
}
.flex-pauseplay span { text-transform: capitalize }
/* Clearfix for the .slides element */
.slides:after {
    content: "\0020";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
html[xmlns] .slides { display: block }
* html .slides { height: 1% }
/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child { display: block }
/* FlexSlider Default Theme
*********************************/
.flexslider {
    margin: 0 0 60px;
    background: #fff;
    border: 4px solid #fff;
    position: relative;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2);
    -moz-box-shadow: 0 1px 4px rgba(0,0,0,.2);
    -o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    zoom: 1;
}
.flex-viewport {
    max-height: 2000px;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}
.loading .flex-viewport { 
	max-height: 300px 
}
.flexslider .slides {
	 zoom: 1 
}
.carousel li { 
	margin-right: 5px
}
/* Direction Nav */
.flex-direction-nav { 
	position: absolute;
	top: 5px;
	right: 0px;
}
.flex-direction-nav a {
   display: inline-block;
	width: 30px;
	height: 30px;
	margin: 0px;
	position: relative;
	z-index: 10;
	overflow: hidden;
	opacity: 1;
	cursor: pointer;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	transition: all .3s ease;
	font-size: 165%;
	line-height: 28px;
	background: #555;
	color: #fff;
}

.flex-direction-nav .nav-inner {
	
}
.flex-direction-nav .nav-inner .prev {
	display: inline-block;
	text-align: center;
	margin-right: 10px;
}
.flex-direction-nav .nav-inner .next {
	display: inline-block;
	text-align: center;
}

.flex-direction-nav .flex-prev i,
.flex-direction-nav .flex-prev i {
	width: 100%;
	height: 100%;
}

.flexslider:hover .flex-prev {
    opacity: 0.7;
    left: 10px;
}
.flexslider:hover .flex-next {
    opacity: 0.7;
    right: 10px;
}
.flexslider:hover .flex-next:hover,
.flexslider:hover .flex-prev:hover { opacity: 1 }
.flex-direction-nav .flex-disabled {
    opacity: 0!important;
    filter: alpha(opacity=0);
    cursor: default;
}

/* Pause/Play */
.flex-pauseplay a {
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 5px;
    left: 10px;
    opacity: 0.8;
    z-index: 10;
    overflow: hidden;
    cursor: pointer;
    color: #000;
}

.flex-pauseplay a:hover { opacity: 1 }
/* Control Nav */
.flex-control-nav {
    width: 100%;
    position: relative;
    top: 0px;
    text-align: center;
    height: auto;
    z-index: 999;
    padding-top: 20px;
	padding-bottom: 15px;
}
.flex-control-nav li {
    margin: 0 6px;
    display: inline-block;
    zoom: 1;
    *display: inline;
}
.flex-control-paging li a {
    width: 20px;
    height: 16px;
    display: block;
    background: #004278;
    cursor: pointer;
    text-indent: -9999px;
    -webkit-transition: all 250ms linear;
	-moz-transition: all 250ms linear;
	-ms-transition: all 250ms linear;
	-o-transition: all 250ms linear;
	transition: all 250ms linear;
}
.flex-control-paging li a:hover {
	background: #E0CB10;
}
.flex-control-paging li a.flex-active {
    background: #FFE500;
    cursor: default;
}
.flex-control-thumbs {
    margin: 5px 0 0;
    position: static;
    overflow: hidden;
}
.flex-control-thumbs li {
    width: 25%;
    float: left;
    margin: 0;
}
.flex-control-thumbs img {
    width: 100%;
    display: block;
    opacity: .7;
    cursor: pointer;
}
.flex-control-thumbs img:hover { opacity: 1 }
.flex-control-thumbs .flex-active {
    opacity: 1;
    cursor: default;
}



/*WIDGET UPCOMING EVENTS SYSTEM*/
#upcoming-events {
    position: relative;
    float: left;
    margin-bottom: 15px;
}
#upcoming-events ul.slides {
    padding-left: 0px!important;
    float: left;
    margin-bottom: 0px!important;
}
#upcoming-events ul.slides li {
    border: solid 1px #ddd;
    margin: 0%;
    margin-top: 0%!important;
    margin-bottom: 0%!important;
}
#upcoming-events ul.slides:after { 
	display: none 
}
#upcoming-events a { 
	color: #333 
}
#upcoming-events .image-container {
}
#upcoming-events .image-container .image {
    width: 100%;
    height: 250px;
}
#upcoming-events .image-container .image.no-image {
    background-position: bottom center;
    background-size: contain;
}
#upcoming-events .info-container {
    background: #E0E0E0;
    padding: 7px;
    font-weight: normal;
}
#upcoming-events .info-container .name {
    width: 100%;
    font-size: 120%;
    line-height: 130%;
    margin-bottom: 5px;
}
#upcoming-events .info-container .start-date {
    font-size: 110%;
    margin-bottom: 5px;
}
#upcoming-events .info-container .start-time {
    font-size: 110%;
    margin-bottom: 5px;
}
#upcoming-events .info-container .start-date span,
#upcoming-events .info-container .start-time span { font-weight: 600 }
/*Styling of nav */
#tertiary #upcoming-events .flex-direction-nav {
    height: 40px;
    z-index: 5;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    margin: 0%;
    padding: 0%;
    background: rgba(224, 224, 224, 0.90);
}
#tertiary #upcoming-events .flex-direction-nav .prev,
#tertiary #upcoming-events .flex-direction-nav .next {
    float: left;
    width: 50%;
    height: 100%;
    display: block;
    margin: 0%;
}
#tertiary #upcoming-events .flex-direction-nav .prev .flex-prev,
#tertiary #upcoming-events .flex-direction-nav .next .flex-next {
    left: 0px;
    opacity: 1;
    display: block;
    float: none;
    position: relative;
    margin: 0%;
    top: 0%;
    height: 100%;
}
#tertiary #upcoming-events .flex-direction-nav .prev .flex-prev:before,
#tertiary #upcoming-events .flex-direction-nav .next .flex-next:before { display: none }
#tertiary #upcoming-events .flex-direction-nav .prev .flex-prev { float: left }
#tertiary #upcoming-events .flex-direction-nav .next .flex-next { float: right }
#tertiary #upcoming-events .flex-direction-nav .prev .flex-prev i,
#tertiary #upcoming-events .flex-direction-nav .next .flex-next i {
    font-size: 180%;
    text-align: center;
    width: 100%;
    height: 100%;
    line-height: 125%;
    text-shadow: none;
    color: #333;
}





/*HOMEPAGE STYLING*/
#home-slider-container {
    width: 100%;
    margin: 0px;
    position: relative;
    z-index: 2;
    clear: both;
}
/*makes the slider boxed*/
.boxed #home-slider {
	max-width: 1200px;
	margin-top: 15px;
}
#home-slider {
    position: relative;
    margin: 0px auto;
    padding: 0px;
    height: auto;
    border-bottom: solid 1px #ddd;
}

#home-slider .flex-control-nav {
	position: absolute;
}
#home-slider .slides { 
	z-index: 2;
	height: 450px;
	overflow: hidden;
}
#home-slider .slides .slide { 
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility:hidden;
}
#home-slider .slides .slide .slideimage {
	height: 100%;
	width: 100%;
	-webkit-transition: height 400ms linear;
	-moz-transition: height 400ms linear;
	-ms-transition: height 400ms linear;
	-o-transition: height 400ms linear;
	transition: height 400ms linear;
}
#home-slider .slides .slide .slideimage .slideimage_overlay{
	background-image: url("../images/background_black.png");
	width: 100%;
	height: 100%;
	position: absolute;
	opacity: 0.08;
}

#home-slider .slides .slide .caption {
    padding: 0px;
    text-align: center;
    width: 100%;
    position: absolute;
}
/*vertical alignment of slider*/
#home-slider .slides .slide .caption.bottom{
	margin-bottom: 25px;
	bottom: 0px;
}
#home-slider .slides .slide .caption.top {
	margin-top: 70px;
	top: 0px;
}
#home-slider .slides .slide .caption.middle {
	margin-top: 50%;
	top: 0px;
}

#home-slider .slides .slide .caption .caption-inner {
	max-width: 1200px;
	margin: auto;
}
/*horizontal aslignment of slider*/
#home-slider .slides .slide .caption.left .caption-inner .caption-text {
	padding: 15px;
	width: auto;
	display: inline-block;
	text-align: left;
	float: left;
}
#home-slider .slides .slide .caption.right .caption-inner .caption-text {
	padding: 15px;
	width: auto;
	display: inline-block;
	text-align: left;
	float: right;
}
#home-slider .slides .slide .caption.center .caption-inner .caption-text {
	padding: 20px 25px;
	width: auto;
	display: inline-block;
	text-align: center;
	float: none;
}
#home-slider .slides .slide .caption .caption-inner .caption-text {
	padding: 10px;
}

#home-slider .slides .slide .caption h2,
#home-slider .slides .slide .caption a h2 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 220%;
    text-transform: uppercase;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    white-space: normal;
}
.boxed #home-slider .slides .slide .caption h2 {
	width: 75%;
	padding: 15px;
}

#home-slider .slides .slide .caption p,
#home-slider .slides .slide .caption a p {
    margin-bottom: 5px;
    line-height: 140%;
    font-weight: 100;
    font-size: 140%;
    margin: 0px auto 10px auto;
    color: white;
    max-width: 1200px;
    padding: 0px;
}
#home-slider .slides .slide .caption p:last-of-type,
#home-slider .slides .slide .caption a p:last-of-type{
	margin-bottom: 0px;
}
.boxed #home-slider .slides .slide .caption p {
	width: 75%;
	padding: 15px;
	margin: 0px auto 15px auto;
}


#home-slider .flex-direction-nav {
    position: absolute;
    background: #EBEBEB;
    background: rgba(255, 255, 255, 0.85);
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0px;
    padding: 15px 0px;
    display: none; /*Hidden for now*/

}
#home-slider .flex-direction-nav .nav-inner {
    margin: auto;
    max-width: 1200px;
    padding: 0px 15px 0px 15px;
}
#home-slider .flex-direction-nav.single-slide {
	 display: none 
}
#home-slider .flex-direction-nav.multiple-slide { 
	display: block 
}
/*Li container holding prev anchor*/
#home-slider .flex-direction-nav .prev {
    width: 50%;
    display: block;
    float: left;
    margin: 0px;
    text-align: left;
}
/*li containing the next achor*/
#home-slider .flex-direction-nav .next {
    width: 50%;
    display: block;
    float: left;
    margin: 0px;
    text-align: right;
}
#home-slider .flex-direction-nav .flex-next {
    right: 0px;
    float: right;
}
#home-slider .flex-direction-nav .flex-prev {
    left: 0px;
    float: left;
}
/*removing the before content*/
#home-slider .flex-direction-nav a:before { content: none }
#home-slider .flex-direction-nav .flex-prev,
#home-slider .flex-direction-nav .flex-next {
    opacity: 1;
    margin: 0px;
    top: 0px;
    position: relative;
    background: rgba(0, 0, 0, 0);
    float: none;
    display: inline-block;
    height: 35px;
    width: 35px;
}
#home-slider .flex-direction-nav .flex-prev i,
#home-slider .flex-direction-nav .flex-next i {
    font-size: 150%;
    text-shadow: none;
    color: #969696;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 35px;
}


/*LARGE DEVICES*/
@media screen and (min-width: 1900px){
	#home-slider .slides{
		height: 650px;
	}
}

/*TABLETS*/
@media screen and (min-width: 644px) and (max-width: 1100px){
	#home-slider .slides{
		height: 400px;
	}
	
	#home-slider .flex-control-paging li a {
		width: 20px;
		height: 20px;
	}
	
	.flex-direction-nav a {
		height: 35px;
		width: 35px;
		line-height: 32px;
	}
}

/*PHONES*/
@media screen and (max-width: 643px){
	#home-slider .slides{
		height: 300px;
	}
	#home-slider .slides .slide .caption.bottom, 
	#home-slider .slides .slide .caption.top,
	#home-slider .slides .slide .caption.middle {
		bottom: 0px;
		top: auto;
	}
	#home-slider .slides .slide .caption.left, 
	#home-slider .slides .slide .caption.right{
		float: none;
	}
	
	#home-slider .slides .slide .caption.left .caption-inner .caption-text,
	#home-slider .slides .slide .caption.right .caption-inner .caption-text  {
		width: 100%;
		margin-bottom: 0px;
		float: none;
	}
	#home-slider .flex-control-paging li a {
		width: 25px;
		height: 20px;
	}
	.flex-direction-nav a {
		height: 35px;
		width: 35px;
		line-height: 32px;
	}
	#home-slider .slides .slide .caption h2,
	#home-slider .slides .slide .caption a h2{
		font-size: 150%;
	}
	#home-slider .slides .slide .caption p, 
	#home-slider .slides .slide .caption a p{
		font-size: 100%;
	}
}

