/**
 * @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;
  background-color:#FFF;
  -webkit-box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.25);
  -moz-box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.25);
  box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.25);
}
/* 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 {
  *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;
}

/* Hide top nav blocks by default/mobile first */
#block-block-12,#block-block-8,#block-views-partners-partners-header,.block-on-the-web{
  display:none!important;
}
body{
  padding-top:inherit!important;
}
  /* Navigation bar */
#navigation{
  min-height:52px;
}
#navigation a,
#navigation a:hover{
  text-decoration:none;
}
#search-block-form input{
    /*width:270px;*/
}

@media all and (min-width: 480px) {
  #main {
    /* Move all the children of #main down to make room. */
    padding-top: 3.80em;
    position: relative;
  }
  #navigation {
    /* Move the navbar up inside #main's padding. */
    position: absolute;
    top: 0px;
    width: 100%;
	z-index:99;
	overflow:initial;
  }

  .ytc-wrapper, .block-3-list{
    display:inline-block;
    position: relative;
    width: 32.5%;
    margin-right:1%;
    vertical-align:top;
	clear:none;
	float:left;
  }
  .ytc-wrapper:last-child,.block-3-list:nth-child(3n){
    margin-right:0;
  }
  .header__site-name {
    margin: 0;
    font-size: 2.5em;
    display:inline-block;
    border-right:0px;
    border-bottom:1px solid #7F7F7F; 
  }
  #block-block-8,#block-views-partners-partners-header{
    display:none!important;
  }
  .block-on-the-web{
    display:inline-block!important;
  }
  .sideber-second #container{
    float: left;
    width: 66.66667%;
  }
  .sidebar-second #region-sidebar-second {
    float: right;
    width: 33.33333%;
  }
  
  #content,
  .region-highlighted,
  .region-highlighted-bottom
  {
    padding-right: 25px;
  }
    .no-sidebars #content
   {
    padding-right: 0px;
  }
  .stickynav-active {
    position: absolute!important;
  }
  body{
    padding-top:inherit!important;
  }
  .header__name-and-slogan {
    font-size: 110%;
	float:left;
    margin:0;
  }
    #search-block-form input{
    /*width:150px!important;*/
  }
}

/**
 * Use 3 grid columns for smaller screens.
 */
@media all and (min-width: 480px) and (max-width: 959px) {
  html{
    font-size:85%;
  }

  /**
   * The layout when there is only one sidebar, the left one.
   */
  .sidebar-first .container{
    float: none;
    width: 100%;
  }
  /* 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 #container{
    float: left;
    width: 66.66667%;
  }
  .sidebar-second #content {
    float: none;
    width: 100%;
  }
    /* Span 1 column, starting in 3rd column from left. */
  .sidebar-second  .region-sidebar-second {
    width: 33.33333%;
    float:right;
  }

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

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

  /* Span 1 column, starting in 1st column from left. */
   .two-sidebars  #container{
    float: left;
    width: 66.66667%;
  }
  .two-sidebars .region-sidebar-first {
    float: left;
    width: 50%;
    padding-right:10px;
  }

  .two-sidebars .region-sidebar-second {
    float: right;
    width: 33.33333%;
  }

  /* Apply the shared properties of grid items in a single, efficient ruleset. */
  .two-sidebars .region-sidebar-second .block {
    padding-left: 5px;
    padding-right: 5px;
    -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;
  }

  
  .node-article .field-image,
  .node-page .field-image-page{
   float:right;
   clear:right;
  }

  .view-news .views-column,
  .view-taxonomy-term-view  .views-column{
	display:inline-block;
	width:49%;
	float:right;
  }
    .sidebar .view-news .views-row,
	.view-taxonomy-term-view  .views-row{
	width:100%;
  }
  .view-news .views-column-1,
  .view-taxonomy-term-view  .views-column-1{
	margin-right:2%;
	float:left;
  }
  .sidebar.view-news .views-column-1,.view-taxonomy-term-view  .views-column-1{
	margin-right:0%;
	float:none;
  }
  .sidebar .view-news .views-column
  {
	display:inline-block;
	width:100%;
	float:none;
  }
  .header__site-slogan {
    display:table-cell;
    vertical-align:middle;
    width:250px;
    line-height:30px;
    font-size:22px;
    padding-left:15px;
  }
  .header__name-and-slogan {
    font-size: 120%;
	float:left;
    margin-left:35px;
  }
  .header__site-name {
    margin: 0;
    font-size: 3em;
    display:table-cell;
    border-right:2px solid #7F7F7F;
    border-bottom:0px;
    padding-right:15px;
    vertical-align:middle;
    line-height:90px;
  }

  #block-views-partners-partners-header,#block-block-8,#block-block-12{
    display:none!important;
  }
  .block-on-the-web{
    display:table-cell!important;
  }
  #navigation #block-search-form{
    float:right;
    position:absolute;
  }
  .nav-toggle{
    font-size:100%;
  }
  #header .header-branding{
    margin-top:67px;
  }
  .header__logo{
    line-height:80px;
    padding: 0 10px;
  }
  #content,
  .region-highlighted,
  .region-highlighted-bottom
  {
    padding-right: 15px;
  }
  .stickynav-active {
    position: absolute!important;
  }
  body{
  padding-top:inherit!important;
  }
  .vscc_controls a{
    padding:6px 12px 0px 12px;
  }
  .vscc_controls_previous a {
    top: 42px;
  }
    #header .header-searchbox {
    height: 40px;
    overflow: visible;
    position: absolute;
    right: 18px;
    top: 125px;
    z-index: 0;
	clear:none;
	padding-top:0px;
  }
    #header .header-searchbox input {
    width: 230px;
  }
    #header .header-background {
  background-image: url("/sites/all/themes/ger/images/ebolaresponse.png");
  background-repeat: no-repeat;
  height: 35px;
  overflow: visible;
  position: absolute;
  top: 65px;
  right: 10px;
  width: 215px;
  z-index: 0;
  background-size: 95%;
  }
}

/**
 * Fix for responsive tables
 */
@media only screen and (max-width: 800px) {
/* Force table to not be like tables anymore */
.no-table table,
.no-table thead,
.no-table tbody,
.no-table th,
.no-table td,
.no-table tr {
display: block;
}
 
/* Hide table headers (but not display: none;, for accessibility) */
.no-table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
 
.no-table tr { border: 1px solid #ccc; }
 
.no-table td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
white-space: normal;
text-align:center;
}
 
.no-table td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
text-align:left;
font-weight: bold;
}
 
/*
Label the data
*/
.no-table td:before { content: attr(data-title); }
}

/**
 * Use 5 grid columns for larger screens.
 */
@media all and (min-width: 960px) {
  html{
    font-size:100%;
  }
  /**
   * The layout when there is only one sidebar, the left one.
   */
  
  #main {
    /* Move all the children of #main down to make room. */
    padding-top: 3.70em;
    position: relative;
  }
  #navigation{
    min-height:59px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #333;
  }
  #navigation .menu li {
    position:initial;
  }
  #navigation #block-search-form{
    float:right;
    position:absolute;
    top:5px;
  }
  /* Span 4 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 4 columns, starting in 1st column from left. */
  .sidebar-second #content {
    width: 100%;
  }

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

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

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

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

  /* Span 1 column, starting in 5th column from left. */
  .two-sidebars .region-sidebar-second {
    float: right;
    width: 33.33333%;
  }
  #header{
    overflow:visible;
  }
  .node-article .field-image,.node-page .field-image-page{
    float:right;
	clear:right;
  }
  .page-search .node-article .field-image,.page-search .node-page .field-image-page{
    float:left;
	clear:left;
  }
  .view-news .views-column,
  .view-taxonomy-term-view  .views-column
  {
	display:inline-block;
	width:49%;
    float:right;
  }
  .view-news .views-column-1,.view-taxonomy-term-view  .views-column-1{
	margin-right:2%;
	float:left;
  }
  .sidebar.view-news .views-column-1,.view-taxonomy-term-view  .views-column-1{
	margin-right:0%;
	float:none;
  }
  .sidebar .view-news .views-column
  {
	display:inline-block;
	width:100%;
	float:none;
  }
  .header__site-slogan {
    display:table-cell;
    vertical-align:middle;
    width:350px;
    line-height:30px;
    font-size:30px;
    padding-left:20px;
  }
  .header__site-name {
    margin: 0;
    font-size: 3.5em;
    display:table-cell;
    border-right:2px solid #7F7F7F;
    border-bottom:0px;
    padding-right:20px;
    vertical-align:middle;
    line-height:90px;
  }
   #navigation #block-search-form{
    width:auto;
    text-align:none;
    top:5px;
  }
  .block-on-the-web,#block-block-12,#block-block-8,#block-views-partners-partners-header,.header__logo{
    display:table-cell!important;
  }
  #header .header-branding{
    margin-top:67px;
  }
  #header .header-background {
  background-image: url("/sites/all/themes/ger/images/ebolaresponse.png");
  background-repeat: no-repeat;
  height: 55px;
  overflow: visible;
  position: absolute;
  right: 0px;
  top: 65px;
  width: 310px;
  z-index: 0;
  background-size: 95%;
  }
  #header .header-searchbox {
    height: 40px;
    overflow: visible;
    position: absolute;
    right: 18px;
    top: 135px;
    z-index: 0;
	clear:none;
	padding-top:0px;
  }
  .header__logo{
    line-height:80px;
    padding: 0 10px;
  }
  #block-multiblock-28,#block-multiblock-8{
    display:inline-block;
    width:49%;
    vertical-align:top;
  }
  #search-block-form input{
    /*width:290px!important;*/
  }
  .articles-grid .views-row .views-column:hover .field-body,
  .slider-home:hover .field-body{
    max-height: 180px;
	padding-bottom:15px!important;
  }
  .region-highlighted,.region-highlighted-bottom{
    word-wrap: break-word;
    overflow:hidden;
}
  .no-sidebars  #container{
    float: none;
    width: 100%;
  }
  #container{
    float: left;
    width: 66.66667%;
    margin-left: 0%;
  }
  #footer-area {
    display:table;
    width:100%;
  }
  #footer-area .column-2 {
    max-width:550px;
  }
  #footer-area .column {
    display:table-cell;
  }
  #footer-area .column:last-child {
    margin-top:4px;
  }
  #block-multiblock-20 .ytc-wrapper:first-child{
    float:left;
    position: relative;
    width: 66.6%;
    margin-right:0.4%;
    vertical-align:top;
    float:left;
  }
  #block-multiblock-20 .ytc-wrapper:first-child img{
    width:100%!important;
  }
  #block-multiblock-20 .ytc-wrapper{
    display:inline-block;
    position: relative;
    width: 32.94%;
    margin-right:0%;
    vertical-align:top;
    float:left;
  }

/* Navigation bar */
  .nav-toggle{
    display:none;
  }
  .drop-down-toggle {
    display: none;
  }
  #navigation .links li,
  #navigation .menu li {
    border:0px;
    width:auto;
    position:initial;
  }
  #main-menu .menu .active-trail .menu{
    background-color:#00AEEF;
    display:block;
  }
  #main-menu .menu .active-trail .menu  .active-trail .menu{
    background-color:#00AEEF;
    display:block;
  }
  #main-menu .menu .active-trail a,
  #main-menu .menu a.active,
  #main-menu .menu .active-trail .menu a,
  #main-menu .menu li a:hover{
    background-color:#00AEEF;
    color:#FFF;
	text-decoration:none;
  }
  #main-menu .menu li.is-active-trail .menu li.is-active-trail .menu,
  #main-menu .menu li.is-active-trail .menu li.is-active-trail .menu li a
  {
    background-color:#342d65;
    color:#FFF;
  }
  #main-menu .menu li.is-active-trail .menu li.is-active-trail .menu li a
  {
    /*border-right: #FFF solid 1px;*/
  }
  #main-menu .menu .menu li a:hover,
  #main-menu .menu .menu li a.is-active-trail{
    background-color:#342d65;
	}
  #main-menu .menu .menu .menu li a:hover,
  #main-menu .menu .menu .menu li a.is-active-trail{
    background-color:#5D53A4!important;
	}
  #main-menu .menu .menu li{
    background-color:#00AEEF;
	padding: 0;
  }
    #main-menu .menu .menu li:first-child{
	padding-left: 0em;
  }
  #main-menu .menu .menu .menu li{
      background-color:#342d65;
  }
  #main-menu .menu li.is-active-trail .menu li a
  {
    /*border-right: #FFF solid 1px;*/
	padding: 0.5em 1.2em 0.5em 1.2em;
  }

  #main-menu .menu li.is-active-trail .menu li:last-child a,
  #main-menu .menu li.is-active-trail .menu li.is-active-trail .menu li:last-child a
   {
  border-right:0px;
  }
  #main-menu .menu li ul{
    position:absolute;
    left:0;
    width:100%;
    display:none;
  }
  #navigation .menu li:first-child {
    border-top: 0px;
  }
  #main-menu .menu-navigation-container .menu li.is-active-trail ul li.is-active-trail ul{
    position:absolute;
    top:0;
  }
  .stickynav-active {
    position: fixed!important;
    top: 0px;
    z-index: 1000;
    width: 100%;
    max-width:1200px;
    padding-left: 0px;
    padding-right: 0px;
    margin-left: 0px;
    margin-right: 0px;
    background-color:#fff;
  }
  .stickynav-active #main-menu .menu .active-trail .menu{
    display:none;
  }
  #main-menu .links li,
  #main-menu .menu li {
    position:static;
  }
  .vscc_controls a{
  padding:8px 16px 4px 16px;
  }
  .vscc_controls_previous a {
    top: 48px;
  }
}