/**
 * @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;
  max-width: 1200px;
}

/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  -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;
}
#header #logo img {
	margin: 0 auto;
	display: block;
}
#block-nice-menus-2 {
	color: #363636;
    float: right;
    font-family: "open sans condensed",sans-serif;
    font-size: 15px;
    margin-bottom: 0;
    width: 145px;
}
#block-nice-menus-2 ul.nice-menu-down li.menuparent {
	width: 88px;	
}

#navigation ul.nice-menu a {
	color: #363636;
    font-family: "open sans Condensed",sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 0 10px 0 40px;
    text-decoration: none;
    text-transform: uppercase;
}
/* responsive menu block item */
#block-block-3 {
  	display: none;
}
/* 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;
}
#topad {
	text-align:center;
}
#block-meetingsmags-1, #block-meetingsmags-2 {
	text-align: center;
}
@media screen and (max-width: 480px) {
  #topad {
  	display: none;
  } 
  #navigation {
  	display: block;
    height: 35px;
    position: absolute;
    width: 100%;
  }
  #navigation ul.nice-menu {
  	display: none;
  }
  #navigation .region.region-navigation #block-search-form {
    float: left;
    margin-top: -20px;
    width: 310px;
  }
  #block-block-3 {
  	display: block;
  	margin-top: 15px;
  }
   /* Span 3 columns, starting in 2nd column from left. */
  .two-sidebars #content {
    float: left;
    width: 100%;
    margin-left: 1%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
     display: none;
  }
  .view-display-id-home_more_articles .view-content .views-row-odd,
  .view-content .views-row-odd.main-column {
	 float: none;
	 width: 100%;
	 margin-right: 0;
  }
  .view-display-id-home_more_articles .view-content .views-row-even,
  .view-content .views-row-even.main-column {
	float: none;
	width: 100%;
	margin-left: 0;
  }  
  .two-sidebars .region-sidebar-second {
    clear:both;
    width: 100%;
    float: none;
  }
  #block-views-taxonomy-term-b-main-section .block__title {
  	line-height: 2em;
  } 
	.blk > .btn {
	    background: url("../images/icon-menu.png") no-repeat scroll 30% 5px rgba(0, 0, 0, 0);
	    cursor: pointer;
	    padding: 15px 0;
	    text-align: center;
	}
	.blk {
		color: #fff;
		font-size: 24px;
		background-color: #000;
		width: 100%;
	}
	ul#nice-menu-x  {
	    margin:0;
	    padding: 0;
	}
	#nice-menu-x li {
	    list-style: none;
	    margin: 0;
	    padding: 8px;
	    display: block;
	    text-align: center;
	}
	#nice-menu-x li a {
		font-size: 24px;
		color: #fff;
		text-decoration: none;
	}
  
}
/* Navigation bar */
@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. */
    border-bottom: 1px solid #acacac;
    border-top: 1px solid #acacac;
    height: 3em;
    padding-top: 7px;
    position: absolute;
    top: 0;
    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%;
    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%;
    margin-right: -66.66667%;
  }
  .two-sidebars .region-sidebar-second, .sidebar-second .region-sidebar-second {
  	float: none;
  	clear: both;
  	width: 100%;
  }

  /* 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%;
    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%;
    margin-left: 20%;
    margin-right: -100%;
    margin-top: .75em;
  }

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

  /**
   * 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;
    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.
   */
  .two-sidebars .sidebar, .two-sidebars #content{
  	margin-top: 20px;
  }

  /* Span 3 columns, starting in 2nd column from left. */
  .two-sidebars #content {
    float: left;
    width: 58%;
    margin-left: 16%;
    margin-right: -74%;
  }

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

  /* Span 1 column, starting in 5th column from left. */
  .two-sidebars .region-sidebar-second {
    float: left;
    width: 25%;
    margin-left: 75%;
    margin-right: -100%;
  }
}
.two-sidebars #main #content {
	border-left: 1px solid #cecece;
	border-right: 1px solid #cecece;
	padding: 0 15px;
}