.chart-tabs-container {
  color: rgba(0, 0, 0, 1);
}

#chart-wrapper {
  position: relative;
}

#chart {
  position: absolute;
  max-width: 540px;
  max-height: 540px;
}

.hidden {
  display: none !important;
}

.chart-container {
  aspect-ratio: 1.1 / 1;
  position: relative;
}

#labels-wrapper {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#labels-wrapper.show {
  opacity: 1;
}

.label {
  font-size: 16px;
  font-family: 'Filosofia OT';
  font-style: italic;
  line-height: 1.2;
  position: absolute;
  transition: top 0.5s ease-in,
    left 0.5s ease-in,
    width 0.5s ease-in;

}

.services {
  width: 540px;
  height: 540px;
  position: absolute;
}

.services-wrapper {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.services-wrapper.show {
  opacity: 1;
}

.service {
  position: absolute;
  border-radius: 100%;
}

.service.e {
  background-color: rgba(255, 255, 255, 1);
}

.service.v {
  background-color: rgba(255, 255, 255, 0.5);
}

.service.a {
  opacity: .6;
  border: 1px solid rgba(255, 255, 255, 1);
  overflow: hidden;
  transform: rotate(-45deg);
}

.service.a:before {
  content: "";
  display: block;
  width: 100%;
  height: 50%;
  border-top: solid 1px #fff;
  border-bottom: solid 1px #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.service.a:after {
  content: "";
  display: block;
  width: 100%;
  border-top: solid 1px #fff;
  position: absolute;
  left: 0;
  top: 50%;
}


.service.active {
  background-color: rgb(240, 62, 62, 1);
  position: relative;
  opacity: 1;
  border: none;
  z-index: 2;
}

.service.active:before {
  content: "";
  display: block;
  border: none;
  width: 25%;
  height: 25%;
  border-radius: 50%;
  background-color: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.service.active::after {
  display: none;
}

.tooltip {
  font-family: 'Calibre';
  font-size: 16px;
  line-height: 1;
  max-width: 161px;
  padding: 8px;
  position: absolute;
  background-color: #F1F1F1;
  border-radius: 2px;
  padding: 8px;
}

.tooltip::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  border-top: 7px solid transparent;
  border-right: 10px solid #F1F1F1;
  border-bottom: 7px solid transparent;
  position: absolute;
  left: -10px;
  top: 5px;
}

.legend {
 position: absolute
}
.chart-tabs {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 10px;
  counter-reset: alpha;
  font-family: 'Calibre', sans-serif !important;
  width: 100%;
}

.chart-tab {
  margin-top: 27px;
  padding: 24px 34px 20px 48px;
  width: 25%;
  max-width: 25%;
  counter-increment: alpha; /* increment counter */
  position: relative;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  white-space: normal;
  display: inline-block;
}

.chart-tab:before {
  content: counter(alpha, upper-alpha) ;
  position: absolute;
  left: 0;
  font-family: inherit;
  font-size: 38px;
  font-weight: bold;
  font-family: 'Calibre';
  font-weight: 900;
}

.chart-tab.active {
  color: white;
}

.chart-tab.active:before {
  border-bottom: 4px solid #F03E3E;
}

#tab-content {
  min-height: 600px;
}

.chart-tab-content {
  padding: 40px 0 80px;
  border-top: 2px solid black;
  border-bottom: 10px solid black;
  display: flex;
  justify-content: space-between;
  font-family: 'Filosofia OT';
  font-weight: 400;
}

/* Hidden HTML blocks */
.hidden {
  display: none;
}

.chart-tabs-container {
  max-width: 896px;
  margin: 0px auto;
}

.left-col {
  position: relative;
  flex-grow: 1;
  padding: 40px 0 40px 0;
}

.right-col {
  width: 40%;
  position: relative;
  flex-shrink: 0;
}

.content {
  /* position: absolute; */
  /* top: 0; */
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

.content.hide {
  opacity: 0;
  position: absolute;
  top: 0;
}

.top-col .heading:first-child {
  margin-top: 0;
}

.chart-tab-content h3.heading {
  font-family: 'Filosofia OT';
  font-style: italic;
  line-height: 1;
  font-size: 36px;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 400;
}

.chart-tab-content h3.heading sup {
	font-size: 24px;
}

.chart-tab-content p.description {
  font-family: 'Filosofia OT';
  font-size: 21px;
  margin-bottom: 16px;
}

.note {
  border-top: 10px solid black;
  font-size: 12px;
  font-family: 'Calibre', sans-serif !important;
  line-height: 1;
  font-weight: normal;
  padding-top: 36px;
  padding-bottom: 160px;
}

.note-white-text {
  border-top: 10px solid black;
  font-size:24px;
  font-family: 'Filosofia OT';
  font-style: italic;
  line-height: 1;
  font-weight: normal;
  padding-top: 24px;
  color: white;
}

.chart-legends-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.chart-legends {
  display: flex;
  align-items: center;
}

.chart-legends .service {
  position: static;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.chart-legends .chart-legends-label {
  margin-left: 8px;
  font-family: 'Filosofia OT';
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  line-height: 1;
}
