/*generic*/
.main-container {
  background-color: #ffffff;
  padding-bottom: 25px;
  margin-top: 15px;
}
body {
  font-family: 'Open Sans', sans-serif;
}
.field-item table {
  border-collapse: collapse;
}
.field-item td {
  border: 1px solid #000000;
  padding: 2px 5px;
}
/*sticky footer*/
html, body {
  height: 100%;
}
.content-wrapper {
  min-height: 100%;
  margin: 0 auto -42px;
}
footer.footer, .push-footer {
  height: 42px;
}
/*header*/
header#navbar {
  width: 100%;
  max-width: none;
  background-color: #414141;
  border: none;
  border-radius: 0;
  padding-top: 25px;
  margin-bottom: 0;
}
header#navbar > .container {
  max-width: 1170px;
  margin: auto;
}
.navbar.container {
  margin-top: 0;
}
@media (min-width: 768px) {
  .navbar-header {
    float: none;
  }
}
.logo img {
  max-width: 100%;
}
.ewc-logo {
  margin-right: 10px;
}
.ewc-logo, .ncnk-logo, .logo img {
  max-height: 80px;
  vertical-align: middle;
}
.header-drop-shadow {
  height: 14px;
  background: url('../images/header-drop-shadow.png');
  position: relative;
}
.navbar-collapse .header-drop-shadow {
  display: none;
}
nav .region-navigation {
  position: relative;
}
#block-search-form {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
}
#block-search-form .glyphicon-search {
  font-size: 10px;
}
#block-search-form .form-text, #block-search-form .btn-primary {
  padding: 0 12px;
}
#block-search-form .form-text {
  height:auto;
}
/*footer*/
footer.footer {
  width: 100%;
  background-color: #414141;
  border-top: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

/*navigation*/
nav {
  clear: left;
}
.navbar-default .navbar-collapse {
  padding-left: 0;
  padding-right: 0;
}
header ul.menu.nav li a,
footer ul.menu.nav li a {
  color: #ffffff;
  font-size: 16px;
  padding: 10px 11px;
}
header ul.menu.nav > li > a:hover, header ul.menu.nav > li > a:focus,
footer ul.menu.nav > li > a:hover, footer ul.menu.nav > li > a:focus {
  background-color: #515151;
}
.navbar-default .navbar-collapse {
  margin-top: 10px;
}
@media (min-width: 768px) {
  header ul.menu.nav,
  footer ul.menu.nav {
    margin-bottom: 10px;
  }
  header ul.menu.nav li.leaf,
  footer ul.menu.nav li.leaf {
    float: left;
  }
  header ul.menu.nav > li:after,
  footer ul.menu.nav > li:after {
    content: "|";
    color: #ffffff;
  }
  header ul.menu.nav > li.last:after,
  footer ul.menu.nav > li.last:after {
    content: none;
  }
  header ul.menu.nav li a,
  footer ul.menu.nav li a {
    display: inline;
  }
  header ul.menu.nav li.active-trail a,
  footer ul.menu.nav li.active-trail a {
    text-decoration: underline;
  }
  .footer .menu-name-menu-bottom-navigation {
    float: right;
    position: relative;
    left: -50%;  
  }
  .footer .menu-name-menu-bottom-navigation ul {
    position: relative;
    left: 50%;
  }
}
/*nav at top*/
@media (min-width: 768px) {
  .navbar-collapse {
    transition: top .25s ease-in-out;
  }
  body.scrolled .navbar-collapse {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 0;
  }
  body.scrolled.admin-menu .navbar-collapse {
    margin-top: 28px;
  }
  body.scrolled nav {
    background-color: #414141;
    padding-top: 5px;
  }
  body.scrolled header#navbar > .container {
    max-width: none;
    margin: 0;
  }
  body.scrolled .container > .navbar-header {
    display: none;
  }
  body.scrolled .region-navigation {
    max-width: 1170px;
    margin: auto;
    padding-left: 15px;
  }
  body.scrolled .navbar-collapse .header-drop-shadow {
    display: block;
  }
  body.nav-hide .navbar-collapse {
    top: -50px;
  }
}
/*main chart area*/
.nav-tabs {
  margin-bottom: 0;
}
.not-front .row.primary {
  border: 2px solid #000000;
  background-color: #f0f3fa;
  padding-bottom: 15px;
  padding-top: 15px;
}
/*sub-page navigation*/
.region-sidebar-second {
  font-size: 16px;
}
.region-sidebar-second .block-title {
  text-align: center;
  font-size: 22px;
  border-bottom: 1px solid #000000;
}
.region-sidebar-second ul.menu.nav {
  list-style: disc inside;
}
.region-sidebar-second ul.menu.nav li {
  display: list-item;
  list-style: inherit;
}
.region-sidebar-second ul.menu.nav li a {
  color: #000000;
  background-color: transparent;
  display: inline;
  padding: 0;
}
.region-sidebar-second ul.menu.nav li.active a {
  font-weight: bold;
}
.region-sidebar-second ul.menu.nav li.active a:hover {
  text-decoration: underline;
}
/*data questions*/
.data-questions div div h3 {
  cursor: pointer;
  font-size: 16px;
}
.data-questions .closed .answer {
  display: none;
}
.data-questions .closed .icon-opened {
  display: none;
}
.data-questions .opened .icon-closed {
  display: none;
}
/*generic chart*/
.not-front .chart-wrapper {
  border-style: solid;
  border-color: #cbccd0;
  border-width: 0 2px 2px 0;
  border-radius: 5px;
}
/*heat map - world*/
#map-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}
#map-controllers {
  position: absolute;
  top:5px;
  left:5px;
  z-index: 2;
}
#map-controllers button {
  width: 30px;
}
#map-countries-list {
  z-index: 2;
  position: absolute;
  right: 5px;
  top: 5px;
}
#map-countries-list  option:disabled {
  color: #cccccc;
}
#map-move {
  width: 100%;
}
#map {
  height: 550px;
}

#country-description {
  position: absolute;
  max-width: 550px;
  height: 280px;
  border: 1px solid #b3b5db;
  bottom: 65px;
  right: 30px;
  background-color: rgba(255, 255, 255, 0.85);
  overflow-y: scroll;
}
#country-description-wrapper {
  padding: 0 30px;
}
#country-description a {
  color: #6067a5;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
}
#country-description-wrapper > h3 {
  color: #97acde;
}
#country-description-wrapper > h3 > div {
  width: 400px;
  float: left;
}
#country-description .close-button {
  display: block;
  float: right;
  text-decoration: none;
  right:0;
}
#country-description-wrapper > p > a {
  text-decoration: underline;
}
/*heat map - country*/
#map-country-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}
#map-country-controllers {
  display: none;

  position: absolute;
  top:5px;
  left:5px;
  z-index: 2;
}
#map-country-controllers button {
  width: 30px;
}
#map-country-move {
  width: 100%;
}
#map-country {
  height: 550px;
}
/*line graph*/
#line-graph {
  height: 550px;
}
/*slideshow*/
.slideshow-wrapper {
  max-width: 600px;
  margin: auto;
}
.juicebox-parent {
  height: 450px;
}
/*pie with breakdown*/
#pie-with-breakdown {
  height: 550px;
}
/*stacked column chart*/
#stacked-column-chart {
  height: 550px;
}
/*page*/
.node-type-page.not-front .row.primary {
  border: none;
  background-color: transparent;
}
.node-type-page .data-questions {
  padding-left: 20px;
}
.simple-page img {
  margin: 5px 15px 0 0;
}
/*fancybox overrides*/
#fancybox-wrap, #fancybox-content {
  box-sizing: content-box;
}
.node-type-pie-with-breakdown #fancybox-content > div {
  overflow: initial !important;
}
/*social icons*/
.pre-chart .file-download {
  float: left;
}
.pre-chart .share {
  float: right;
}
.pre-chart .share a {
  margin-left: 5px;
}
/*print*/
@media print {
  .tabs--primary,
  .pre-chart,
  .navbar .logo,
  button.navbar-toggle,
  .row.primary > aside.col-sm-3,
  footer.footer,
  .push-footer {
    display: none;
  }
  .navbar .navbar-collapse {
    display: none !important;
  }
  .navbar {
    display: block;
  }
  .navbar .pull-right {
    float: none !important;
    text-align: center;
  }
  a[href]:after {
    content: "";
  }
  .ewc-logo {
    background-color: #414141 !important;
    padding: 5px;
  }
  .not-front .row.primary,
  .not-front .chart-wrapper {
    border: 0px none transparent;
  }
  .row.primary > .col-sm-9 {
    width: 100%;
  }
  .content-wrapper {
    min-height: 0;
    margin: 0;
  }
  html body.admin-menu {
    margin-top: 0 !important;
  }
  html, body {
    height: auto;
  }
}