/* Global Styles */

html,
body {
  height: 100%;
  width: 100%;
}

.vert-text {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.vert-text h1 {
  padding: 0;
  margin: 0;
  font-size: 4.5em;
  font-weight: 700;
}

/* Side Menu */

#sidebar-wrapper {
  margin-right: -250px;
  right: 0;
  width: 250px;
  background: #000;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  -webkit-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -ms-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  line-height: 40px;
  text-indent: 20px;
}

.sidebar-nav li a {
  color: #999999;
  display: block;
  text-decoration: none;
}

.sidebar-nav li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
  height: 55px;
  line-height: 55px;
  font-size: 18px;
}

.sidebar-nav > .sidebar-brand a {
  color: #999999;
}

.sidebar-nav > .sidebar-brand a:hover {
  color: #fff;
  background: none;
}

#menu-toggle {
  top: 0;
  right: 0;
  position: fixed;
  z-index: 1;
}

/* Language switch, left of the menu button */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 58px;
  z-index: 1;
  display: flex;
}

.lang-switch .btn {
  border-radius: 0;
  min-width: 38px;
  font-weight: 700;
}

.lang-switch .btn:first-child {
  border-radius: 4px 0 0 4px;
}

.lang-switch .btn:last-child {
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}

.lang-switch .btn.active {
  background: #428bca;
  border-color: #357ebd;
  color: #ffffff;
  box-shadow: none;
}

#sidebar-wrapper.active {
  right: 250px;
  width: 250px;
  -webkit-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -ms-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

.toggle {
  margin: 5px 5px 0 0;
}

/* Full Page Image Header Area */

.header {
  display: table;
  height: 100%;
  width: 100%;
  position: relative;
  background: url('../img/background.jpg') no-repeat center 13.5% fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* Header title + button. max-width = how wide the title may get before it
   wraps onto a second line (smaller = narrower). */
.header-text {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-text h1 {
  margin-bottom: 20px;
}

/* Intro */

.intro {
  padding: 40px 0 40px;
}

.intro-text {
  max-width: 460px;
  margin: 0 auto;
}

.intro-text h1 {
  margin-top: 10px;
}

/* Explore (charts panel) */

.explore {
  background: #f5f5f5;
  padding: 50px 0;
}

.explore-panel {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 20px;
}

.explore-toolbar {
  margin-bottom: 20px;
  max-width: 660px;
}

/* City picker and indicator sit side by side */
.city-picker,
.indicator-picker {
  display: inline-block;
  vertical-align: top;
  width: 320px;
  max-width: 100%;
  margin: 0 12px 0 0;
}

.city-picker {
  width: 220px;
}

/* Heading between the two panels */
.panel-heading-block {
  margin: 50px 0 20px;
  text-align: center;
}

.panel-heading-block:first-child {
  margin-top: 0;
}

.panel-heading-block p {
  color: #52514e;
  max-width: 560px;
  margin: 0 auto;
}

.explore-panel.is-loading .chart-box {
  opacity: 0.5;
}

.indicator-description {
  color: #52514e;
  font-size: 13px;
  margin: 6px 0 0;
}

.simulated-note {
  color: #9a5b00;
  font-size: 12px;
  margin: 4px 0 0;
}

.chart-box {
  position: relative;
  height: 420px;
  transition: opacity 0.2s;
}

.chart-box svg {
  display: block;
}

.js-map svg {
  cursor: grab;
}

.zoom-buttons {
  position: absolute;
  right: 6px;
  top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zoom-buttons .btn {
  width: 26px;
}

.map-legend {
  height: 36px;
}

.year-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 6px;
}

.year-slider input {
  flex: 1;
}

.year-label {
  font-weight: 700;
  min-width: 3em;
  text-align: right;
}

.chart-hint {
  color: #8a8986;
  font-size: 12px;
  margin-bottom: 4px;
}

.chart-credit {
  color: #8a8986;
  font-size: 11px;
}

.chart-credit a {
  color: inherit;
  text-decoration: underline;
}

.axis text {
  fill: #52514e;
  font-size: 11px;
}

.axis path,
.axis line {
  stroke: #d6d5d0;
}

.grid line {
  stroke: #ecebe7;
}

.grid path {
  display: none;
}

.place-selected {
  max-height: 300px;
  overflow-y: auto;
}

.place-selected li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
}

.place-selected .key {
  flex: none;
  width: 16px;
  height: 2px;
  border-radius: 1px;
}

.place-selected .key.dashed {
  background: repeating-linear-gradient(90deg, #52514e 0 4px, transparent 4px 7px) !important;
}

.place-selected .name {
  flex: 1;
}

.place-selected button {
  border: 0;
  background: none;
  color: #8a8986;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.place-selected button:hover {
  color: #0b0b0b;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid #d6d5d0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  font-size: 12px;
  color: #52514e;
  z-index: 10;
  max-width: 240px;
}

.chart-tooltip .title {
  color: #0b0b0b;
  font-weight: 700;
  margin-bottom: 4px;
}

.chart-tooltip .row-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.chart-tooltip .row-item strong {
  color: #0b0b0b;
  min-width: 3.5em;
}

.chart-tooltip .key {
  width: 12px;
  height: 2px;
  flex: none;
}

/* Data Request */

.request {
  padding: 50px 0;
}

/* Footer */

footer {
  padding: 100px 0;
}

.top-scroll {
  margin-top: 50px;
}

.top-scroll a {
  text-decoration: none;
  color: inherit;
}

i.scroll {
  color: #333333;
}

i.scroll:hover {
  color: #0a5175;
}
/* Responsive */

@media (max-width: 768px) {

  /* Room for the longest indicator description, so switching indicators never shifts the panel */
  .indicator-description {
    min-height: 3em;
  }
	
  .header {
	background: url('../img/background.jpg') no-repeat center 15% scroll; 
  }

}
