/**
 * @file
 * Positioning for a responsive layout.
 *
 * Define CSS classes to create a fluid grid layout with optional sidebars
 * depending on whether blocks are placed in the left or right sidebars.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/**
 * Center the page.
 *
 * For screen sizes larger than 1200px, prevent excessively long lines of text
 * by setting a max-width.
 */
#page,
.region-bottom {
  margin-left: auto;
  margin-right: auto;
  width: 960px;
	position: relative;
}
@media all and (max-width: 1120px) {
#page,
.region-bottom {
  width: 640px;
}
}
@media all and (max-width:760px) {
#page,
.region-bottom {
  width: 440px;
}
}
@media all and (max-width:460px) {
#page,
.region-bottom {
  width: 320px;
}
}

/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 10px;
  padding-right: 10px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  *behavior: url("https://akg-online.prod.ifg.io/path/to/boxsizing.htc");
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

/* Containers for grid items and flow items. */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before,
#header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}
.front #main {
	z-index:10;
}
#footer  {
	z-index:10;
	position:relative;
	width:940px;
	background-color:#FFF;
	padding:18px;
	margin:10px 10px 20px 10px;
float: left;
}
@media all and (max-width: 1120px) {
#footer {
  width: 620px;
}
}
@media all and (max-width:760px) {
#footer {
  width: 420px;
}
}
@media all and (max-width:460px) {
#footer {
  width: 300px;
}
}

#main  {
	z-index:0;
    position: relative;
}
 #navigation {
	/* Move the navbar up inside #main's padding. */
	position: absolute;
	top: 0;
	height: 3em;
	width: 100%;
}
