/**
 * @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.

 
/* responsive-nav.js 1.0.25 by @viljamis

div {border: 1px solid red} /*/

.nav-collapse ul {
	margin: 0;
	padding: 0;
	width: 100%;
	display: block;
	list-style: none;
}
/*/nav-collapse li {
  width: 100%;
  display: inline-block;
}/*/

.js .nav-collapse {
	clip: rect(0 0 0 0);
	max-height: 0;
	position: absolute;
	display: block;
	overflow: hidden;
	zoom: 1;
}
}
.nav-collapse.disable-pointer-events {
	pointer-events: none !important;
}
 @media screen and (min-width: 763px) {
 	.js .nav-collapse {
 		position: relative;
 	}
 	.js .nav-collapse.closed {
 		max-height: none;
 	}
 	.nav-toggle {
 		display: none;
 	}
 }
 
 @media all and (max-width: 980px) {
 	.header-inner {
 		padding: 0 10px;
 	}
 	#page {
 		background: url('../img/BSSS-footer-1500.png') center bottom no-repeat;
 	}
 }
@media all and (min-width: 530px) and (max-width: 766px) {
 .header__region {
float:right;
 clear:right;
 margin: 0;
 width:50%;
 margin: 0;
 display:block;
 width:auto;
}
 .header__region .block {
float:right
}
 .header__region #block-search-form.block {
clear:right
}
 #header img.header__logo-image {
 width: 200px;
 height:inherit;
 float:left;
clear:both;
 margin: 0 auto;
 dislay:block;
}
 #name-and-slogan {
 float:left;
clear:left;
 margin-left:0px;
}
}
 @media all and (max-width: 766px) {
	  .nav-collapse li {
 width: 33%;
 display: inline-block;
}
 a.nav-toggle:before {
content:'\2630';
font-size:2em;
font-weight:bold
}
 a.nav-toggle {
font-size:1em;
width:100%;
clear:both;
display:block;
padding: 6px;
text-decoration:none!important;
 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
 -webkit-touch-callout: none;
 -webkit-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 -o-user-select: none;
 user-select: none;
}

 a.nav-toggle:hover {color:#000}
 a.nav-toggle:visited,  a.nav-toggle:focus {
text-decoration:none;
boder:none;
outline:none
}
#block-menu-block-2 .menu a {
 text-align:center;
 border-top: 6px solid #ffc423;
 border-bottom: 6px solid #ffc423;
}
 #block-menu-block-2 .menu > .active, #block-menu-block-2 .menu > .active-trail {
background:#ffc423!important
}
 #block-menu-block-2 .menu .is-active a, #block-menu-block-2 .menu .active-trail a, #block-menu-block-2 .menu .active a:hover, #block-menu-block-2 .menu .active a:focus {
 color:#8c0c04;
 font-family: 'source_sans_probold';
 background:#fff;
 text-decoration:none;
 border:none!important;
 border-top: 6px solid #ffc423!important;
 border-bottom: 6px solid #8c0c04!important;/*/
	border-top:none!important;
		border-bottom:none!important;/*/
}
#block-menu-block-2 .menu > .active, #block-menu-block-2 .menu > .active-trail {
 background:#fff;
}
#block-menu-block-2 .menu > li > a:hover {
 text-decoration:none;
 color:#333
}
}
@media all and (max-width: 530px) {
 #header {
 background: url('../img/BSSS-headerImage-780x315.png') center top no-repeat!important;
 height:275px;
 margin:0
}
 #name-and-slogan, .header__region, #header img.header__logo-image {
float:none!important;
 clear:both!important;
 width:auto!important;
 margin: 0 auto!important;
 display:table!important;
}
 #header, .header__region {
text-align:center
}
 #header img.header__logo-image {
margin-bottom:10px;
width:185px
}
 #name-and-slogan {
text-align:center
}
 #block-menu-menu-social-links, #block-menu-menu-header-links {
display:none
}
}
#page, .region-bottom {
	margin-left: auto;
	margin-right: auto;
	max-width: 1500px;
}
/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header, #content, #navigation, .region-sidebar-first, .region-sidebar-second, #footer {
	padding-left: 0px;
	padding-right: 0px;
	-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("/path/to/boxsizing.htc");
	_display: inline;
	_overflow: hidden;
	_overflow-y: visible;
}
/* Containers for grid items and flow items. */
#header, #main, #footer {
	float:none;
	clear:both;
 *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 (max-width: 480px) {
 .nav-collapse li {
 width: 50%;
}
}
@media all and (max-width: 360px) {
 .nav-collapse li {
 width: 100%;
}
}
@media all and (min-width: 480px) {
 #main {
    /* Move all the children of #main down to make room. 
    padding-top: 3em;*/
    position: relative;
}
 #navigation {
/* Move the navbar up inside #main's padding. 
    position: absolute;
    top: 0;
    height: 3em;
    width: 100%;*/
  }
}

/**
 * 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 left one.
   */

  /* Span 2 columns, starting in 2nd column from left. */
  .sidebar-first #content {
 float: left;
 width: 66.66667%;
 padding-left:15px;
 margin-left: 33.33333%;
 margin-right: -100%;
}

  /* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
 float: left;
 width: 33.33333%;
 margin-left: 0%;
 margin-right: -33.33333%;
}

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

  /* Span 2 columns, starting in 1st column from left. */
  .sidebar-second #content {
 float: left;
 width: 66.66667%;
 margin-left: 0%;
 padding-right:15px;
 margin-right: -66.66667%;
}

  /* Span 1 column, starting in 3rd column from left. */
  .sidebar-second .region-sidebar-second {
 float: left;
 width: 33.33333%;
 margin-left: 66.66667%;
 margin-right: -100%;
}

  /**
   * The layout when there are two sidebars.
   */

  /* Span 2 columns, starting in 2nd column from left. */
  .two-sidebars #content {
 float: left;
 width: 66.66667%;
 padding-left:15px;
 padding-right:15px;
 margin-left: 33.33333%;
 margin-right: -100%;
}

  /* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
 float: left;
 width: 33.33333%;
 margin-left: 0%;
 margin-right: -33.33333%;
}

  /* Start a new row and span all 3 columns. */
  .two-sidebars .region-sidebar-second {
 float: left;
 width: 100%;
 margin-left: 0%;
 margin-right: -100%;
 padding-left: 0;
 padding-right: 0;
 clear: left;
}

  /* Apply the shared properties of grid items in a single, efficient ruleset. */
  .two-sidebars .region-sidebar-second .block {
 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("/path/to/boxsizing.htc");
 _display: inline;
 _overflow: hidden;
 _overflow-y: visible;
}

  /* Span 1 column, starting in the 1st column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
 float: left;
 width: 33.33333%;
 margin-left: 0%;
 margin-right: -33.33333%;
 clear: left;
}

  /* Span 1 column, starting in the 2nd column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
 float: left;
 width: 33.33333%;
 margin-left: 33.33333%;
 margin-right: -66.66667%;
}

  /* Span 1 column, starting in the 3rd column from left. */
  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
 float: left;
 width: 33.33333%;
 margin-left: 66.66667%;
 margin-right: -100%;
}
}

/**
 * Use 5 grid columns for larger screens.
 */
@media all and (min-width: 960px) {

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

  /* Span 4 columns, starting in 2nd column from left. */
  .sidebar-first #content {
 float: left;
 width: 80%;
 padding-left:15px;
 margin-left: 20%;
 margin-right: -100%;
}

  /* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
 float: left;
 width: 20%;
 margin-left: 0%;
 margin-right: -20%;
}

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

  /* Span 4 columns, starting in 1st column from left. */
  .sidebar-second #content {
 float: left;
 padding-right:15px;
 width: 80%;
 margin-left: 0%;
 margin-right: -80%;
}

  /* Span 1 column, starting in 5th column from left. */
  .sidebar-second .region-sidebar-second {
 float: left;
 width: 20%;
 margin-left: 80%;
 margin-right: -100%;
}

  /**
   * The layout when there are two sidebars.
   */

  /* Span 3 columns, starting in 2nd column from left. */
  .two-sidebars #content {
 float: left;
 width: 60%;
 padding-left:15px;
 padding-right:15px;
 margin-left: 20%;
 margin-right: -80%;
}

  /* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
 float: left;
 width: 20%;
 margin-left: 0%;
 margin-right: -20%;
}

  /* Span 1 column, starting in 5th column from left. */
  .two-sidebars .region-sidebar-second {
 float: left;
 width: 20%;
 margin-left: 80%;
 margin-right: -100%;
}
}
