body {
  margin: 0;
}

.tr-component-wrapper {
  position: relative;
}

.main-wrapper {
  width: 100%;
  max-width: 772px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 70px;
  padding-bottom: 70px;
}

.tr-tabs {
  font-family: "Graphik Semibold";
  position: relative;
  z-index: 20;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  padding: 30px 30px 0 30px;
  margin: 0 -30px;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  font-size: 24px;
}

.tr-tab {
  width: 100%;
  padding: 20px 50px;
  color: #bbbdbf;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}

.tr-tab:hover {
  color: #7500c1;
}

.tr-tab.tr-active {
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 17px 1px rgba(0, 0, 0, 0.18);
  color: #7500c1;
  cursor: default;
}

.tr-component-body {
  position: relative;
  padding: 20px 30px 40px 30px;
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.18);
}

.tr-sub-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  font-family: "Graphik Semibold";
}

.tr-sub-tab {
  width: 100%;
  margin: 0 5px;
  cursor: pointer;
  margin-bottom: 25px;
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  color: #bbbdbf;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.tr-sub-tab:hover,
.tr-sub-tab.tr-active {
  border-bottom-color: #7500c1;
  color: #7500c1;
}

.tr-sub-tab.tr-active {
  cursor: default;
}

.tr-question {
  font-family: "Graphik Regular";
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  min-height: 38px;
}

.tr-legend-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
}

.tr-legend {
  font-family: "Graphik Regular";
  font-size: 12px;
  line-height: 30px;
  width: 58px;
  margin-right: 20px;
  border-top: 8px solid #7500c1;
  color: #7500c1;
  font-weight: 700;
  text-align: left;
}

.tr-legend.tr-legend-2 {
  border-top-color: #909295;
  color: #909295;
}

/* BAR CHARTS */

.tr-charts {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-height: 280px;
  -webkit-justify-content: space-around;
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.tr-chart {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  align-items: flex-end;
}

.tr-bar-bg {
  position: absolute;
  top: 0px;
  width: 46%;
  height: 100%;
  border: 1px solid #f2f2f2;
}

.tr-bar-bg:before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  border-right: 1px solid #f2f2f2;
}

.tr-bar {
  position: relative;
  width: 23%;
  height: 0;
  transition: height 0.7s ease-out;
}

.tr-bar-1 {
  background-color: #7500c1;
}

.tr-bar-2 {
  background-color: #909295;
}

.tr-bar-label {
  font-family: "Graphik Semibold";
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
  position: absolute;
  top: -33px;
  width: 100%;
}

.tr-bar-label.tr-#7500c1 {
  color: #7500c1;
}

.tr-bar-label.tr-gray {
  color: #909295;
}

/* DROPDOWNS */

.tr-dropdowns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-top: 30px;
  margin-bottom: 10px;
  -webkit-justify-content: space-around;
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

@media (max-width: 767px) {
  .main-wrapper {
    width: 100%;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .tr-tabs {
    display: flex;
    overflow: hidden;
    padding: 0 20px;
    margin: 0;
    font-size: 16px;
    font-size: 2.5vw;
  }

  .tr-tab {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #fff;
    border-bottom: 1px solid #e4e5e6;
  }

  .tr-tab.tr-active {
    box-shadow: none;
    color: #7500c1;
    border: 1px solid #e4e5e6;
    border-bottom: 1px solid #fff;
  }

  .tr-component-body {
    padding: 20px;
    box-shadow: none;
  }

  .tr-sub-tabs {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 5px;
  }

  .tr-sub-tab {
    width: 48%;
    margin: 0 0 8px 0;
    padding-top: 16px;
    padding-bottom: 16px;
    color: #bbbdbf;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #e4e5e6;
    border-radius: 5px;
  }

  .tr-sub-tab:hover,
  .tr-sub-tab.tr-active {
    border-color: #7500c1;
    color: #7500c1;
  }

  .tr-question {
    font-size: 16px;
  }

  .tr-legend-wrapper {
    margin: 15px 0 0 0;
  }

  /* BAR CHARTS */

  .tr-charts {
    min-height: 200px;
    padding-top: 0;
  }

  .tr-bar {
    width: 30%;
  }
  .tr-bar-bg {
    width: 60%;
  }

  .tr-bar-label {
    font-family: "Graphik Medium";
    font-size: 10px;
    top: -20px;
  }

  /* DROPDOWNS */

  .tr-dropdowns {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}