body {
  margin: 0px;
  font-family: "Open Sans", sans-serif;
}

/*CHART WRAPPER*/
#chart-wrapper {
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  display: table;
}

/*CHART*/
.chart-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
}
.chart-source {
  color: #888;
  font-size: .9em;
  margin-top: 10px;
}
.cell:hover {
  stroke: black;
  stroke-width: 3px;
}
.label {
  font-size: .9em;
}
.x-label {
  text-anchor: end;
}
.y-label {
  text-anchor: middle;
}

/*LEGEND*/
#legend .legend-title {
  font-size: .9em;
}
#legend .legend-item {
  display: inline-block;
  margin-right: 10px;
}
#legend .legend-swatch {
  display: inline-block;
  height: .8em;
  width: .8em;
  margin-right: 5px;
  vertical-align: middle;
}
#legend .legend-label {
  display: inline-block;
  font-size: .8em;
  vertical-align: middle;
}


/*TIP*/
.tooltip {
  position: absolute;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  background: #fff;
  opacity: .98;
  width: 250px;
}
.tooltip .station-name {
  font-size: .8em;
  margin-bottom: 10px;
}
.tooltip .station-name.no-margin {
  margin-bottom: 0px; 
}
.tooltip .bar, .footer .bar {
  fill: orange;
}
.tooltip .axis-label {
  font-size: .8em;
}

.axis {
  font: 10px sans-serif;
}
.axis path,
.axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}
.tooltip .domain {
  display: none;
}
.tooltip .axis--y .tick line {
  stroke: #ccc
}
.tooltip.ontop:after {
  content:'';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 0;
  height: 0;
  border-top: solid 10px #fff;
  border-left: solid 10px transparent;
  border-right: solid 10px transparent;
}
.tooltip.onbottom:before {
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  margin-top: -10px;
  width: 0;
  height: 0;
  border-bottom: solid 10px #fff;
  border-left: solid 10px transparent;
  border-right: solid 10px transparent;
}


.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: white;
}

@media only screen and (max-width: 400px) {
  svg {
    width: 100%;
    height: 100%;
  }
  html {
    max-width: 400px;
  }
}