/*
==============================================================================
**
** SITE STRUCTURE/GLOBAL ELEMENTS
**
** SCOPE: 		GLOBAL
** REVISION:	0.3
** DATE:		03/21/11
** AUTHORS:		DUNCAN MCALESTER (DUNCAN@LAYER-51.COM)
** NOTES:		This file contains basic structural elements like columns
				footer, masthead and other globally used elements like 
				pagination and pods/asides
				

** TODO:		

** REVISION HISTORY

				070411	- Converted to 320up 
				070511	- Back to 992 Down
------------------------------------------------------------------------------






==============================================================================
*/
/* ==================== REQUIRED LIBRARIES DO NOT REMOVE ===================== */
/* Including lib.less - this template is intentionally left blank and does not need to be included  on the live server */
/* ==================== REQUIRED LIBRARIES DO NOT REMOVE ===================== */
/* =========================================================================== */
/*
** COLOR PALETTE
**
** DESCRIPTION:	Class to be applied to any button
** USAGE:		
** NOTES:
**
*/
/* =========================================================================== */
/* Set Default Styles here */
html {
  margin: 0;
  padding: 0;
  background: #edece8 url(../img/bg.jpg) 0 0 repeat-x;
}
body {
  height: 100%;
  padding: 0;
  position: relative;
  color: #111310;
  background: transparent url(../img/masthead-glow.png) -250px 0 no-repeat;
}
a,
a:link,
a:visited,
a h1 {
  color: #17497a;
  text-decoration: none;
  -webkit-transition: all ease-out 0.2s;
  -moz-transition: all ease-out 0.2s;
  -o-transition: all ease-out 0.2s;
  transition: all ease-out 0.2s;
}
a:hover {
  color: #17497a;
  text-decoration: underline;
}
img {
  max-width: 100%;
}
/*
** COLUMNS
**
** DESCRIPTION:	Defines standard column widths.
				
** USAGE:
** NOTES:	Eventually these can probably move to amend.css as they rarely seem to change
**
*/
.col100 {
  width: 94.6% !important;
}
.col80 {
  width: 74.6% !important;
}
.col75 {
  width: 69.6% !important;
}
.col70 {
  width: 64.6% !important;
}
.col66 {
  width: 60.6% !important;
}
.col60 {
  width: 54.6% !important;
}
.col50 {
  width: 44.6% !important;
}
.col40 {
  width: 34.6% !important;
}
.col33 {
  width: 27.6% !important;
}
.col30 {
  width: 24.6% !important;
}
.col25 {
  width: 19.6% !important;
}
.col20 {
  width: 14.6% !important;
}
.col15 {
  width: 4.4% !important;
}
.col100,
.col80,
.col75,
.col70,
.col66,
.col60,
.col50,
.col40,
.col33,
.col30,
.col25,
.col20,
.col15,
.col10,
.col5 {
  padding: 2.7%;
  display: block;
  float: left;
}
/*
** CONTAINER BASE
**
** DESCRIPTION:	
** USAGE:		
** NOTES:		Container is typically used for�
**
*/
#container {
  width: 90%;
  height: 100%;
  margin: auto;
}
/* Sorry IE7 no Soup for you! */
.ie7 #container {
  width: 1000px;
}
#container.bg1 {
  background: transparent url(../img/masthead-1.png) 100% 60px no-repeat;
}
#container.bg2 {
  background: transparent url(../img/masthead-2.png) 95% 44px no-repeat;
}
#container.bg3 {
  background: transparent url(../img/masthead-3.png) 95% 44px no-repeat;
}
#container.bg4 {
  background: transparent url(../img/masthead-4.png) 97% 44px no-repeat;
}
#container.bg5 {
  background: transparent url(../img/masthead-5.png) 97% 43px no-repeat;
}
#container.bg6 {
  background: transparent url(../img/masthead-6.png) 92% 44px no-repeat;
}
/*
** CONTENT BASE
**
** DESCRIPTION:	
** USAGE:		
** NOTES:
**
*/
#content {
  clear: both;
  width: 100%;
  margin: 0;
  position: relative;
  padding: 0 0 48px 0;
}
/*
** MAIN BASE
**
** DESCRIPTION:	
** USAGE:		
** NOTES:
**
*/
#main {
  position: relative;
  float: right;
  z-index: 10;
  margin-top: auto !important;
  padding: 1% 2%;
  /*
		This is a little bit of a cheat to make up for Safari�s strange
		rounding error when dealing with percentages. Basicall we�re 
		extending the width of the main content by 1% and then dragging
		it over the aside content by 1%
	
	*/

  width: 71%;
  margin-left: -1%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 10px solid #fff;
  background: #fff;
  -webkit-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  -moz-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  -o-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  behavior: url('/styles/pie.htc');
}
.ie7 #main {
  width: 60%;
}
.one-col #main {
  width: 100%;
  float: none;
  top: 1.618em;
  margin: 2em auto auto auto;
  overflow: auto;
}
/*
** ASIDES BASE
**
** DESCRIPTION:	
** USAGE:		
** NOTES:
**
*/
#asides {
  position: relative;
  height: auto;
  width: 30%;
  top: 0px;
  margin: 0;
  padding: 2% 3% 2% 2%;
  overflow: hidden;
  z-index: 0;
  background: #f1f0ec;
  border-bottom: 10px solid #fff;
  border-left: 10px solid #fff;
  border-top: 10px solid #fff;
  border-right: 10px solid #fff;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  -moz-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  -o-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
  behavior: url('/styles/pie.htc');
}
#asides aside {
  border-top: 1px solid #ccc;
  padding-top: 1.618em;
  margin-bottom: 0;
}
#asides aside:first-child {
  border: none;
  padding-top: 0;
}
.ie7 #asides {
  width: 28%;
}
/*
** FOOTER BASE
**
** DESCRIPTION:	
** USAGE:		
** NOTES:
**
*/
#site-footer {
  overflow: auto;
  clear: both;
  position: relative;
  width: 100%;
  font-size: .8125em;
  color: #888;
  top: 2em;
  padding: 1em 0 3em 0;
  border-top: 1px solid #ddd;
}
#site-footer .photo {
  display: none;
}
#site-footer .directions {
  margin-top: .8125em;
  display: block;
}
#footer-links {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1em 0 0 0;
}
#footer-links li {
  display: inline;
}
#footer-links li:before {
  content: " | ";
}
#footer-links li:first-child:before {
  content: "";
}
.ie8 #container {
  max-width: 1600px;
  min-width: 960px;
}
/*
** 960
**
** DESCRIPTION:	Styles that apply to screens 960 pixels wide and down
** USAGE:		
** NOTES: Typically this means tablets users in portrait mode and desktop users smaller than average screens
**
*/
@media only screen and (max-width: 960px) {
  #container {
    width: 100%;
    background-size: 50%;
    background-position: 98px right;
  }
  #content {
    position: relative;
    width: 95%;
    margin: auto;
    -webkit-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    -moz-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    -o-box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    behavior: url('/styles/pie.htc');
  }
  #main {
    margin: 0;
    width: 100%;
    float: none;
    clear: both;
    overflow: auto;
    border-top: 5px solid #fff;
    border-left: 5px solid #fff;
    border-right: 5px solid #fff;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
  }
  #asides {
    position: relative;
    top: 0;
    margin: 0;
    padding: 5% 3%;
    float: none;
    clear: both;
    height: auto;
    width: 100%;
    overflow: hidden;
    border: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
  }
  #site-footer {
    width: 95%;
    margin: auto;
    border: none;
  }
  #site-footer .photo {
    display: block;
    margin: 0 1.618em 1.618em 0;
    width: 50%;
    float: left;
    border: 5px solid #fff;
  }
  #footer-links {
    position: relative;
    clear: both;
    width: 100%;
    border-top: 1px solid #ccc;
    text-align: center;
    margin: 1.618em 0 0 0;
    padding: .618em 0 1em 0;
  }
  /*	
  	.multicol {
  		-moz-column-count: 2;
  		-moz-column-gap: 1.6em;
  		-webkit-column-count: 2;
  		-webkit-column-gap: 1.6em;
  		column-count: 2;
  		column-gap: 1.6em;
  	}	
  	*/
}
/*
** 768
**
** DESCRIPTION:	Styles that apply to screens 768 pixels wide and down
** USAGE:		
** NOTES: Typically this means mobile phones held in landscape
**
*/
@media only screen and (max-width: 767px) {
  #container {
    background: none;
  }
  .bg1 {
    background: none;
  }
  .bg2 {
    background: none;
  }
  .bg3 {
    background: none;
  }
  #asides {
    padding: 4%;
  }
  #site-footer {
    width: 90%;
  }
  #site-footer .photo {
    width: 96%;
    margin: 0 auto 1em auto;
  }
  /*		
  	.multicol {
  		-moz-column-count: 1;
  		-webkit-column-count: 1;
  		column-count: 1;
  	}	
  	*/
}
/*
** 480
**
** DESCRIPTION:	Styles that apply to screens 480 and belows pixels wide and down
** USAGE:		
** NOTES: Typically this means mobile phones held in portrait
**
*/
@media only screen and (max-width: 479px) {
  #container {
    background: none;
    width: 100%;
  }
  #content {
    width: 100%;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
  }
  #site-footer {
    padding: 5%;
    width: 90%;
  }
  #asides {
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
}
@media only screen and (min-width: 961px) {
  #container {
    max-width: 1400px;
    min-width: 960px;
  }
}
@media only screen and (min-width: 1200px) {
  /*
  	.multicol {
  		-moz-column-count: 2;
  		-moz-column-gap: 1.6em;
  		-webkit-column-count: 2;
  		-webkit-column-gap: 1.6em;
  		column-count: 2;
  		column-gap: 1.6em;
  	}
  	*/
}
