.chart-container,
.chart-container * {
  box-sizing: border-box;
}
.chart-container {
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  margin-bottom: 50px;
}

.chart-container h2 {
  font-size: 36px;
  font-family: inherit;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
}

.chart-container h2::before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin-right: 24px;
  border: 1px solid #968d8d;
  vertical-align: middle;
}

.chart-box {
  display: flex;

}
.scale {
  width: 10px;
  display: flex;
  flex-direction: column-reverse;
}
.scale > div {
  font-size: 13px;
  color: rgb(119, 119, 119);
  line-height: 3;
  height: 25px;
  text-align: right;
}
.chart-filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-around;
  margin-bottom: 10px;
}

.chart-filters .filter input[type="checkbox"] {
  display: none;
}

.chart-filters .filter label > * {
  vertical-align: middle;
}

.chart-filters .filter input[type="checkbox"] + span.checkbox {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #cecece;
  position: relative;
  cursor: pointer;
}

.chart-filters .filter input[type="checkbox"] + span.checkbox::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #968d8d;
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

.chart-filters .filter input[type="checkbox"]:checked + .checkbox::before {
  opacity: 1;
}

.chart-filters .filter .label {
  position: relative;
  display: inline-block;
  height: 35px;
}

.chart-filters .filter .mark {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #cecece;
}

.chart-filters .filter [for="column-1"] input[type="checkbox"]:checked ~ .label .mark {
  background-color: #968d8d;
}

.chart-filters .filter [for="column-2"] .mark,
.chart-filters .filter [for="column-3"] .mark {
  background-color: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

}

.chart-filters .filter [for="column-2"] .mark svg,
.chart-filters .filter [for="column-3"] .mark svg {
  fill: #cecece;
  width: 100%;
  height: 100%;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.chart-filters .filter [for="column-2"] input[type="checkbox"]:checked ~ .label .mark svg,
.chart-filters .filter [for="column-3"] input[type="checkbox"]:checked ~ .label .mark svg {
  fill: #968d8d;
}

.chart {
  width:100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding-left: 10px;
  margin-left: 10px;
  padding-bottom: 1px;
  background: linear-gradient( #dfdfdf 1px, transparent 1px), linear-gradient( 90deg, #dfdfdf 1px, transparent 1px);
  background-size: 25px 25px;
  background-position: 0 calc(100% - 1px);
}

.chart .col {
  display: block;
  border: 1px solid transparent;
  width: 25%;
  min-width: 10px;
  height: 0;
  margin: 0 5px;
  border-bottom: 0;
  text-align: center;
  color: rgb(0, 0, 0);
  line-height: 1;
  padding-top: 1px;
  font-size: 13px;
  overflow: hidden;
  position: relative;
  transition: height 0.7s ease-out;
}

.chart .col .column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: absolute;
  border: 1px solid transparent;
  bottom: 0;
  width: 25%;
  min-width: 10px;
  overflow: hidden;
  display: none;
  transition: height 0.7s ease-out;
}

.chart .col .column.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.chart .col .column svg {
  width: 100%;
  height: 18px;
}

.chart .col .column-2 {
  transform: translateX(150%);
}
.chart .col .column-3 {
  transform: translateX(300%);
}

.chart .col span {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}
.chart .col .column svg circle,
.chart .col .column svg rect {
  stroke-width: 1px;
}

.chart .col.black .column-1,
.chart .col.black .column svg circle,
.chart .col.black .column svg rect,
h2.black {
  background-color: #000000;
  fill: rgba(0, 0, 0, 0.5);
  stroke: #000000;
}
.chart .col.blue .column-1,
.chart .col.blue .column svg circle,
.chart .col.blue .column svg rect,
h2.blue {
  border-color: rgb(0, 103, 169);
  background-color: #0000FF;
  fill: rgba(0, 0, 255, 0.5);
  stroke: rgb(0, 103, 169);
}
.chart .col.green .column-1,
.chart .col.green .column svg circle,
.chart .col.green .column svg rect,
h2.green {
  border-color: rgb(14, 174, 44);
  background-color: #00FF00;
  fill: rgba(0, 255, 0, 0.5);
  stroke: rgb(14, 174, 44);
}
.chart .col.red .column-1,
.chart .col.red .column svg circle,
.chart .col.red .column svg rect,
h2.red {
  border-color: rgb(182, 19, 2);
  background-color: #FF0000;
  fill: rgba(255, 0, 0, 0.5);
  stroke: rgb(182, 19, 2);
}
.chart .col.yellow .column-1,
.chart .col.yellow .column svg circle,
.chart .col.yellow .column svg rect,
h2.yellow {
  border-color: rgb(218, 164, 2);
  background-color: #FFFF00;
  fill: rgba(255, 255, 0, 0.5);
  stroke: rgb(218, 164, 2);
}
.chart .col.purple .column-1,
.chart .col.purple .column svg circle,
.chart .col.purple .column svg rect,
h2.purple {
  border-color: rgb(151, 9, 209);
  background-color: #FF00FF;
  fill: rgba(255, 0, 255, 0.5);
  stroke: rgb(151, 9, 209);
}
.chart .col.turquoise .column-1,
.chart .col.turquoise .column svg circle,
.chart .col.turquoise .column svg rect,
h2.turquoise {
  border-color: rgb(0, 129, 128);
  background-color: #00FFFF;
  fill: rgba(0, 255, 255, 0.5);
  stroke: rgb(0, 129, 128);
}
.chart .col.white .column-1,
.chart .col.white .column svg circle,
.chart .col.white .column svg rect,
h2.white {
  border-color: rgb(150, 150, 150);
  background-color: #FFFFFF;
  fill: rgba(255, 255, 255, 0.5);
  stroke: rgb(150, 150, 150);
}

@media screen and (max-width: 768px) {
  .chart-container {
    margin-bottom: 80px;
    padding: 0;
  }
  .chart .col span {
    transform: translateX(-50%) rotate(90deg);
    bottom: -20px;
    width: 10%;
  }
}

@media screen and (max-width: 568px) {
  .chart-container {
    margin-bottom: 100px;
  }
  .chart {
    padding-left: 0;
    margin-left: 5px;
  }
  .chart .col span {
    margin: 0 1px;
    width: 10%;
  }

  .chart .col .column {
    min-width: 8px;
  }
}