body {
  background-color: #eee;
  font-family: Arial, Helvetica, sans-serif;
}

/* Chartist overrides */
.ct-chart .ct-label, .ct-chart .ct-label.ct-horizontal {
  color: #777;
  fill: #777;
  font-size: 0.85em;
}

.ct-chart .ct-label, .ct-chart .ct-label.ct-vertical {
  display:none;
  color: #777;
  fill: #777;
  font-size: 0.7em;
  text-align: right;
}

.main-chart {
  position: relative;
  height: 45%;
  top: 9%;
  left: 1%;
  overflow:auto;
}
.main-chart .ct-chart .ct-line {
  stroke-width: 2px;
}
.main-chart .ct-chart .ct-point {
  stroke-width: 10px;
}

table.key {
  border-spacing: 7px;
  border-collapse: separate;
}
table.key td {
  padding: 0 5px;
  margin: 7px;
  text-align: right;
}

.chart {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
}

.chart-title {
  font-size: 1.4em;
  font-weight: normal;
  text-align: center;
  margin: 0 0 10px;
}

.pieTip {
  position: absolute;
  float: left;
  min-width: 30px;
  max-width: 300px;
  padding: 5px 18px 6px;
  border-radius: 2px;
  background: rgba(255,255,255,.97);
  color: #444;
  font-size: 19px;
  text-shadow: 0 1px 0 #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  letter-spacing: .06em;
  box-shadow: 0 0 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.5);
  -webkit-transform: all .3s;
     -moz-transform: all .3s;
      -ms-transform: all .3s;
       -o-transform: all .3s;
          transform: all .3s;
  pointer-events: none;
}
.pieTip:after {
      position: absolute;
      left: 50%;
      bottom: -6px;
      content: "";
      height: 0;
      margin: 0 0 0 -6px;
      border-right: 5px solid transparent;
      border-left: 5px solid transparent;
      border-top: 6px solid rgba(255,255,255,.95);
      line-height: 0;
}
.chart path { cursor: pointer; }

.tooltip {
    background: none repeat scroll 0 0 #f4c63d;
    color: #453d3f;
    display: none;
    font-weight: 700;
    min-width: 5em;
    padding: 0.5em;
    pointer-events: none;
    position: absolute;
    text-align: center;
    opacity: 1;

    background: rgba(100,100,100,.8);
    border: 1px solid #fff;
    color: #fff;
    font-size: 1em;
    text-shadow: 1px 1px 2px #000;
    text-align: center;
    line-height: 1.3;
    letter-spacing: .06em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.tooltip::after {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: rgba(100,100,100,.8) transparent transparent;
    border-image: none;
    border-right: 15px solid transparent;
    border-style: solid;
    border-width: 15px;
    content: "";
    height: 0;
    left: 50%;
    margin-left: -15px;
    position: absolute;
    top: 100%;
    width: 0;
}

body.background-dark .ct-chart .ct-label,
body.background-dark .ct-chart .ct-label.ct-vertical {
  color: #ddd;
  fill: #ddd;
  text-shadow: 2px 2px 2px #000;
}
body.background-dark .chart-title {
  color: #ddd;
  fill: #ddd;
  text-shadow: 2px 2px 2px #000;
}
body.background-dark .ct-chart .ct-grid {
  stroke: rgba(255, 255, 255, 0.2);
}
body.background-dark .sub-chart:hover .chart-title {
  color: #fff;
}

.ct-series-inactive {
  display: none;
}