/**
 * @file
 * Positioning for responsive layout .
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

footer .region {
  width: 33%;
  float: left;
}


/*
 * Center the page.
 */

#page,
.region-bottom {
  /* For screen sizes larger than 1200px, prevent excessively long lines of text
     by setting a max-width. */
  margin-left: auto;
  margin-right: auto;
  max-width: 1140px;
}

/*
 * 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;
  _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;
}

/*
 * Navigation bar
 */

@media all and (min-width: 480px) {
  #main {
    padding-top: 50px; /* Move all the children of #main down to make room. */
    position: relative;
  }

  #navigation {
    position: absolute;
    top: 0; /* Move the navbar up inside #main's padding. */
    height: 34px;
    width: 100%;
  }
  
  .region-sidebar-first {
  padding-top: 8px;
}
  .region-sidebar-second {
  padding-top: 8px;
}
}

/*
 * Use 3 grid columns for smaller screens.
 */

@media all and (min-width: 480px) and (max-width: 959px) {


  /*
   * The layout when there is only one sidebar, the right one.
   */
   
  .sidebar-first .region-sidebar-first { /* Span 1 column, starting in 3rd column from left. */
    float: right;
    width: 33.333%;
    margin-left: -100%;
    margin-right: 66.667%;
  }
   
  .sidebar-first #content { /* Span 2 columns, starting in 1st column from left. */
    float: right;
    width: 66.667%;
    margin-left: -66.667%;
    margin-right: 0;
  }



}

/*
 * Use 5 grid columns for larger screens.
 */

@media all and (min-width: 960px) {
footer .region-footer1{
  width: 306px;
  padding-right: 5px;
}
footer .region-footer2{
  width: 306px;
  padding-left: 5px;
  padding-right: 5px;
}
footer .region-footer3{
  padding-left: 5px;
  width: 306px;
}

#footer,
#navigation,
#header,
#content {
padding-left: 100px;
  
}
#footer,
#header {
  padding-right: 100px;
}


  /*
   * The layout when there is only one sidebar, the right one.
   */

	.sidebar-first #content {
	float: right;
    margin-right: 0px;
    margin-left: -7200px;
    padding-left: 50px;
	padding-right: 100px;
    width: 765px;
	}
	
.sidebar-first .region-sidebar-first {
    float: right;
    margin-left: -100%;
    margin-right: 765px;
    width: 300px;
}
  
 }


