
/* Table of Contents
==================================================
    #Base 960 Grid
    #Tablet (Portrait)
    #Mobile (Portrait)
    #Mobile (Landscape)
    #Clearing */
/* #Base 960 Grid
================================================== */
html {
	min-width: 910px;
}

html.responsive {
	min-width: 0px;
}

.container {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: 0px 50px;
	clear: both;
}

.inner-container{
	position: relative;
	height:100%;
	width:100%;
}

/*no z-index for container_wrap or fixed bgs start disapearing when other elements transition -> weird chrome bug*/
.container_wrap {
	clear: both;
	position: relative;
	/* z-index: 1; */
	border-top-style: solid;
	border-top-width: 1px;
}

 .units {
	float: left;
	display: inline;
	margin-left: 50px;
	position: relative;
	z-index: 1;
	min-height: 1px;
}
.row {
	position: relative;
	margin-bottom: 20px;
	clear: both;
}


#wrap_all {
	width: 100%;
	position: static; /*fixes chrome 40 issue with fixed section bgs*/
	z-index: 2;
	overflow: hidden;
}


/* Nested Column Classes */

body .units.alpha,
body div .first {
	margin-left: 0;
	clear: left;
}
 body .units.alpha {
	width: 100%;
}

/* Base sizes */
.container .av-content-full.units  {
	width: 100%
}

.container .av-content-small.units {
	width: 73%
}

.container{
	max-width: 1010px;
}


/* #Tablet (Portrait)
================================================== */
/* Note: Design for a width of 768px, Gutter: 30px, Unit: 32px */
@media only screen and (min-width: 768px) and (max-width: 989px)
{
	.responsive #top {
		overflow-x: hidden;
	}

	.responsive .container{
		max-width: 782px;
	}
}



/* All Tablets and smaller */
@media only screen and (max-width: 989px)
{

	/*	added 5.0.2: remove 20px only between 767px and 989px   */
}


/*  #Mobile (Portrait)
================================================== */

@media only screen and (max-width: 767px)
{

	.responsive #top {
		overflow-x: hidden;
	}

	.responsive #top #wrap_all .container {
		width: 85%;
		max-width: 85%;
		margin: 0 auto;
		padding-left:0;
		padding-right:0;
		float:none;
	}
	.responsive .units {
		margin: 0;
	}

	.responsive #top .container .av-content-small,
	.responsive #top #wrap_all .flex_column {
		margin: 0;
		margin-bottom: 20px;
		width: 100%;
	}

	.responsive #top #wrap_all .flex_column:empty{
		margin:0;
	}
}
/* #Mobile (Landscape)
================================================== */
/* Note: Design for a width of 480px */
@media only screen and (min-width: 480px) and (max-width: 767px)
{

}

/* #Clearing
================================================== */
/* Self Clearing Goodness */
.container:after {
	content: "\0020";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/* Use clearfix class on parent to clear nested units,
    or wrap each row of units in a <div class="row"> */
.clearfix:before,
.clearfix:after,
.flex_column:before,
.flex_column:after,
.widget:before,
.widget:after
{
	content: '\0020';
	display: block;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
}

.flex_column:after,
.clearfix:after {
	clear: both;
}
.row,
.clearfix {
	zoom: 1;
}

/* You can also use a <br class="clear" /> to clear units */
.clear {
	clear: both;
	display: block;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
}

/* Columns for better content separation
================================================== */
body div .first,
body div .no_margin {
	margin-left: 0;
}

div .flex_column {
	z-index: 1;
	float: left;
	position: relative;
	min-height: 1px;
	width: 100%;
}

div .av_one_fourth {
	margin-left: 6%;
	width: 20.5%;
}

div .av_one_third {
	margin-left: 6%;
	width: 29.333333333333332%;
}
div .av_one_half {
	margin-left: 6%;
	width: 47%;
}
div .av_two_third {
	margin-left: 6%;
	width: 64.66666666666666%;
}
div .av_three_fourth {
	margin-left: 6%;
	width: 73.5%;
}
/* Columns for better content separation (no margin)
================================================== */
#top div .no_margin {
	margin-left: 0;
	margin-top: 0;
}
#top .no_margin.av_one_fourth {
	width: 25%;
}
#top .no_margin.av_one_third {
	width: 33.3%;
}
#top .no_margin.av_one_half {
	width: 50%;
}
#top .no_margin.av_two_third {
	width: 66.6%;
}
#top .no_margin.av_three_fourth {
	width: 75%;
}

/* Columns with equal height
================================================== */

/*breaking point logic for the common  1/4 element in ipads. makes sure that it converts to a 1/2 element in most cases*/
@media only screen and (min-width: 768px) and (max-width: 989px)
{
	.responsive .av_one_fourth.first.el_before_av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_fourth + .av_one_fourth.flex_column_div,
	.responsive .av_one_half.first + .av_one_fourth.el_before_av_one_fourth.flex_column_div,
	.responsive .av_one_half.first + .av_one_fourth.el_before_av_one_fourth + .av_one_fourth.flex_column_div{
		margin-left: 4%;
		width: 48%;
	}

	/* added 4.8.9.1  broken layout with 25% width  https://kriesi.at/support/topic/4-column-layout-issues-on-ipad/  */
	.responsive #top .no_margin.av_one_fourth{
		margin-left: 0;
		width: 50%;
	}

	.responsive .av_one_fourth.first.el_before_av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_fourth.flex_column_div,
	.responsive .av_one_half.first + .av_one_fourth.el_before_av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_half.flex_column_div{
		margin-left: 0%;
		clear: both;
	}

	.responsive .av_one_half.first.el_before_av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_half.flex_column_div{
		width: 100%;
	}

	.responsive .av_one_half.first + .av_one_fourth.flex_column_div,
	.responsive .av_one_half.first + .av_one_fourth + .av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_fourth + .av_one_fourth.flex_column_div,
	.responsive .av_one_fourth.first + .av_one_fourth + .av_one_half.flex_column_div{
		margin-top: 30px;
	}
}
