/*
	Theme Name: Alf Flex HTML5/CSS3 Layout
	Date: March 2015
	Description: Basic HTML5/CSS3 layout built on a responsive flex framework
	Version: 1.0
	Author: Oisin Little
	Author URL: http://www.littleanimation.com
*/

/* ===========================
  ======= Body style ======== 
  =========================== */
  
body {
	background-image: url('img/bg.png');
	color: #000305;
	font-size: 87.5%; /* Base font size: 14px */
	font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
	line-height: 1.429;
	margin: 0;
	padding: 0;
	text-align: left;
}
.body {
	clear: both;
	margin: 0 auto;
	width: 80%;
}
/* ===========================
  ========= Headings ======== 
  =========================== */
h2 {
	font-size: 1.571em
}	/* 22px */
h3 {
	font-size: 1.429em
}	/* 20px */
h4 {
	font-size: 1.286em
}	/* 18px */
h5 {
	font-size: 1.143em
}	/* 16px */
h6 {
	font-size: 1em
}		/* 14px */
h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: .8em;
}
/* ===========================
  ======= Anchor style ====== 
  =========================== */
a {
	outline: 0;
}
a img {
	border: 0px;
	text-decoration: none;
	display: block;
}
a:link, a:visited {
	color: #CF5C3F;
	padding: 0 1px;
	text-decoration: none;
}
h2 a:hover, h2 a:active {
	background-color: #CF5C3F;
	color: #fff;
	text-decoration: none;
}
a:hover img {
	border: none !important;
	display: block;
}
/* ===========================
  ===== Main Navigation ===== 
  =========================== */

.mainHeader nav {
	background: #666;
	font-size: 1.143em;
	height: 40px;
	line-height: 30px;
	margin: 0 auto 30px auto;
	text-align: center;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.mainHeader nav ul {
	list-style: none;
	margin: 0 auto;
}
.mainHeader nav ul li {
	float: left;
	display: inline;
}
.mainHeader nav a:link, .mainHeader nav a:visited {
	color: #fff;
	display: inline-block;
	height: 30px;
	padding: 5px 23px;
	text-decoration: none;
}
.mainHeader nav a:hover, .mainHeader nav a:active, .mainHeader nav .active a:link, .mainHeader nav .active a:visited {
	background: #CF5C3F;
	color: #fff;
	text-shadow: none !important;
}
.mainHeader nav li a {
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.mainHeader img {
	width: 30%;
	height: auto;
	margin: 3% 0;
}
/* ===========================
  ======= Content Area ====== 
  =========================== */

.mainContent {
	overflow: hidden;
	line-height: 25px;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.post-info {
	font-style: italic;
	color: #298A08;
	font-size: 86%;
}
/* ===========================
  ======== Sidebar ========== 
  =========================== */


/* ===========================
  ========= Footer ========== 
  =========================== */

.mainFooter {
	width: 100%;
	float: left;
	margin-top: 2%;
	margin-bottom: 2%;
	padding-left: 0;
	background-color: #666;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	color: #FFF;
}
.mainFooter p {
	width: 91%;
	margin: 2% auto;
}


/* ===========================
  ========= New shit ======== 
  =========================== */
  




/*
logo swaps*/


#dt {
	display: block;
}
#mb {
	display: none;
}


/*panel swaps*/

.wideshow {
	display: block;
}
.narrowshow {
	display: none;
}

/*flex containers*/

.flexi {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: flex-start;
	align-items: stretch;
	
	display: -webkit-flex;
	-webkit-flex-direction: row;
	-webkit-flex-wrap: wrap;
	-webkit-justify-content: space-between;
	-webkit-align-content: flex-start;
	-webkit-align-items: stretch;
	
	margin: -1%;
	clear:both;
}
.lefty, .righty {
	margin: 0 1%;
	padding: 0;
	
	flex-basis: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: stretch;
	align-items: stretch;
	
	-webkit-flex-basis: 0;
	
	display: -webkit-flex;
	-webkit-flex-direction: column;
	-webkit-flex-wrap: wrap;
	-webkit-justify-content: space-between;
	-webkit-align-content: stretch;
	-webkit-align-items: stretch;
}
.lefty {
	flex-grow: 2;/*2 x size of righty*/
	flex-shrink:1;
	
	-webkit-flex-grow: 2;/*2 x size of righty*/
	-webkit-flex-shrink:1;
}
.righty {
	flex-grow: 1;
	flex-shrink:2;
	
	-webkit-flex-grow: 1;
	-webkit-flex-shrink:2;
}

.lunx {
	margin: 0 1%;
	padding: 0;
	
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: stretch;
	align-items: stretch;
	
	-webkit-flex-grow: 1;
	-webkit-flex-shrink: 1;
	-webkit-flex-basis: 0;
	
	/*display: -webkit-flex;*/
	-webkit-flex-direction: column;
	-webkit-flex-wrap: wrap;
	-webkit-justify-content: space-between;
	-webkit-align-content: stretch;
	-webkit-align-items: stretch;
}
/*##########################################################*/
/* force single column on screens < ipad horiz	*/
.lefty	{	min-width:339px;}
.righty {	min-width:337px;}

/*##########################################################*/
 
/*inner containers giving white bg round corners style*/

.inner, .title {
	flex-grow: 1;
	flex-shrink: 0;
	
	-webkit-flex-grow: 1;
	-webkit-flex-shrink: 0;
	
	margin: 15px 0;
	padding: 30px 45px;
	background-color: #Fff;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}



.inner article, .title article {
	margin: auto;
}


/*image styles*/

.flexi .lftjus {
	margin: 0;
	width: 100px;
	height: 100px;
}

.inner img {
	display: block;
	margin: 0;
	width: 100%;
	height: auto;
	max-width: 150px;
	padding: 0;
	-webkit-box-shadow: 5px 10px 20px 0px #ccc;
	-moz-box-shadow: 5px 10px 20px 0px #ccc;
	box-shadow: 5px 10px 20px 0px #ccc;
}

.title img {
	display: block;
	margin: 0;
	width: 100%;
	height: auto;
	max-width: 150px;
	padding: 0;
}

/*SAMPLE PAGE*/
	
	
	
	
.inner-samp {
	flex-grow: 1;
	flex-shrink: 1;
	
	-webkit-flex-grow: 1;
	-webkit-flex-shrink: 1;
	
	
	margin: 15px 0;
	padding: 30px 45px;
	background-color: #Fff;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.inner-samp article {
	margin: auto;
}
.inner-samp img {
	display: block;
	margin: 0 auto;
	width: 100%;
	height: auto;
	max-width: 400px;
	padding: 0;
	-webkit-box-shadow: 5px 10px 20px 0px #ccc);
	-moz-box-shadow: 5px 10px 20px 0px #ccc;
	box-shadow: 5px 10px 20px 0px #ccc;
}


/* form stuff*/
		 
.blk {
	clear: both;
	width: 80%;
		color: #666;
	top: 0;
}
#formbox img {
	
	display: block;
	float: left;
	width: 80px;
	height: auto;
	clear: left;
}
.formred {
	border: #CCC solid 1px;
	padding: 15px;
	margin: 25px;
}
.inp img {
	width: 65px;
	height: auto;
	padding: 0;
	margin: 10px 15px 0 10px;
	display: inline;
}
label, input {
	position: relative;
	top: -30px;
}

.red {
	color: #f00;
}

#textarea {overflow: auto; height:200px; width:80%; margin-top:25px;}
  
footer a:link, footer a:visited {
	color: #FFF;
}

.lftjus {
	margin: 0;
	width: 100px;
	height: auto;
}



/* 
  ===========================
  ====== Media Queries ====== 
  =========================== */
	  @media only screen and (min-width : 150px) and (max-width : 980px) {
	  .body {
		  clear: both;
		  margin: 0 auto;
		  width: 90%;
		  font-size: 90%;
	  }
	
		  
		  
	
	  }
	  	  
	  
			@media only screen and (min-width : 150px) and (max-width : 768px) {
			/* old stuff */
			.mainHeader nav {
				background: #666;
				font-size: 1.143em;
				height: 200px;
				line-height: 30px;
				margin-bottom: 0;
				border-radius: 5px;
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
			}
			.mainHeader nav ul {
				list-style: none;
				margin: 0 auto;
				padding-left: 0;
			}
			.mainHeader nav li {
				margin-left: 0 auto;
				width: 100%;
			}
			.mainHeader nav a:link, .mainHeader nav a:visited {
				color: #FFF;
				display: block;
				height: 30px;
				padding: 5px 0;
				text-decoration: none;
			}
			.mainHeader nav a:active, .mainHeader nav .active a:link, .mainHeader nav .active a:visited {
				background: #CF5C3F;
				color: #fff;
				text-shadow: none !important;
			}
			.mainHeader nav li a {
				border-radius: 5px;
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
				border-radius: 5px;
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
			}
			.mainHeader img {
				width: 100%;
				height: auto;
				margin-bottom: 3%;
			}
			.mainContent {
				overflow: hidden;
				line-height: 25px;
				border-radius: 5px;
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
				margin-top: 4%;
				margin-bottom: 2%;
			}
			.content {
				width: 100%;
				float: left;
				border-radius: 5px;
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
			}
			.mainFooter {
				width: 100%;
				float: left;
				margin: 2% 0;
				padding-left: 0;
				background-color: #666;
				border-radius: 5px;
				-moz-border-radius: 5px;
				-webkit-border-radius: 5px;
				color: #FFF;
			}
			.mainFooter p {
				width: 86%;
				margin: 2% auto;
			}
			
			
			/*new stuff*/
			/*logo swaps*/
			#dt {
				display: none;
			}
			#mb {
				display: block;
			}
			/*title panel swaps*/
	
			 .lunx, .lefty, .righty  {
				margin: 0;
			 }
			
			.flexi{margin: 0;}
	
			/*panel swaps*/
			.wideshow {
				display: none;
			}
			.narrowshow {
				display: block;
			}
			.narrowshow img {
				margin: 0;
				width: 100px;
				height: 100px;
			}
			
		.lunx 	{	min-width:339px;}
			
			
			
			.lefty, .righty, .lunx {-webkit-flex-basis: auto;}
			}	
	
			
			


@media only screen and (min-width : 150px) and (max-width : 420px) {
	
	.lefty, .righty,.lunx {	min-width:200px;}/*stop cut off on narrow screens	*/
	
	.inner, .title {	padding: 30px 8%;}
	
	.formred {margin: 35px 0;}
	
	.blk, #textarea {width:88%;}
	
	 


}
