body {
  padding: 0 5px;
  margin: 0;
}

#chart-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

#chart-container.columns,
#chart-container.bar,
#chart-container.line {
  padding-bottom: 50%;
}

#chart-container.mapChart {
  padding-bottom: 45%;
  width: 75%;
  float: right;
}

#chart-title {
  font-family: 'Verdana', sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: #999;
  font-weight: bold;
  text-align: center;
  padding: 5px 0;
  margin: 0;
}

#chart {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#chart-footer {
  position: relative;
  width: 100%;
  padding: 0;
  font-size: 12px;
  line-height: 15px;
  box-sizing: border-box;
  clear: both;
  font-family: Verdana, sans-serif;
  text-align: right;
}

#chart-footer p {
  font-family: inherit;
  font-style: italic;
  text-align: right;
  color: #000;
  margin-top: 5px;
  margin-bottom: 0;
}

#chart-footer a {
  display: inline-block;
  text-align: right;
  vertical-align: middle;
}

#chart-footer img {
  display: block;
  border: none;
  width: auto;
  height: 25px;
  text-align: right;
}

#chart-options {
  width: 25%;
  padding: 0;
  margin: 0;
  float: left;
}

.chart-option {
  width: 100%;
  padding: 5px 0;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.chart-option .chart-option-circle {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-color: #fff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  border: 2px solid #000;
  display: block;
  float: left;
  box-sizing: border-box;
  cursor: pointer;
}

.chart-option.active .chart-option-circle {
  border: 4px solid #ff0000;
}

@media (max-width: 768px) {
  #chart-footer img {
    height: 20px;
  }
}

@media (max-width: 620px) {
  #chart-title {
    font-size: 12px;
    line-height: 14px;
  }

  #chart-footer img {
    height: 15px;
  }
}

@media (max-width: 480px) {
  #chart-title {
    font-size: 9px;
    line-height: 10px;
  }

  #chart-container.mapChart {
    width: 65%;
    padding-bottom: 33%;
  }

  #chart-options {
    width: 35%;
    padding-bottom: 33%;
    height: 0;
    overflow: hidden;
  }

  .chart-option {
    font-size: 10px;
    padding-top: 0;
  }

  #chart-footer {
    font-size: 10px;
    line-height: 12px;
  }

  #chart-footer img {
    height: 10px;
  }
}

@media (max-width: 360px) {
  #chart-title {
    font-size: 10px;
  }
}

/* Custom Legend */
#chart-container.custom-legend {
  width: 50%;
  padding-bottom: 46%;
  float: left;
}

#chart_legend {
  float: right;
  width: 50%;
  height: 0;
  padding-bottom: 46%;
  position: relative;
}

.chart_legend_title {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 12px;
  line-height: 12px;
  color: #999;
  margin-top: 4px;
  margin-bottom: 4px;
  position: absolute;
  top: 0;
  left: 0;
}

.chart_legend_desc {
  padding: 25px 0 0 0;
  margin: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.chart_legend_part {
  padding-left: 5px;
  padding-bottom: 10px;
  display: block;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.chart_legend_color {
  width: 10px;
  height: 10px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  float: left;
  position: relative;
  margin-right: 5px;
  box-sizing: border-box;
}

.chart_legend_key {
  padding: 0;
  float: left;
  position: relative;
  width: 80%;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  color: #999;
  line-height: 1;
  min-height: 12px;
}

.chart_legend_value {
  display: inline;
  margin-left: 5px;
  min-height: 12px;
  padding: 0;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  line-height: 1;
  color: #999;
  font-weight: bold;
}

.chart_legend_part::after {
  display: table;
  content: "";
  clear: both;
  width: 100%;
  height: 0;
}

.chart_legend_prev {
  position: absolute;
  right: 15px;
  top: 0;
  width: 15px;
  height: 20px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.chart_legend_next {
  position: absolute;
  right: 0;
  top: 0;
  width: 15px;
  height: 20px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.chart_legend_prev:hover,
.chart_legend_next:hover {
  outline: none;
  background-color: transparent;
}

@media (max-width: 620px) {
  .chart_legend_title {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .chart_legend_title {
    font-size: 8px;
    line-height: 11px;
  }

  .chart_legend_color {
    margin-bottom: 2px;
  }

  .chart_legend_key {
    width: 100%;
    float: none;
    font-size: 10px;
  }

  .chart_legend_value {
    font-size: 10px;
  }
}