.chart {
  width: 100%;
  margin: 2rem 0;
  font-family: "Exo 2", sans-serif;
}
/* BAR CONTAINER */
.bar {
  position: relative;
  min-height: 3rem;
  margin: 0.8rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #ececec;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.04);
}
/* VERTICAL GRID */
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(20% - 1px),
      rgba(0,0,0,0.12) 20%,
      rgba(0,0,0,0.12) calc(20% + 1px)
    );
}
/* ANIMATED FILL */
.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  z-index: 0;
  background: linear-gradient(180deg, #0f8bbe 0%, #0077A8 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: grow 2s cubic-bezier(.22,.61,.36,1) forwards;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* VALUE INSIDE BAR */
.fill strong {
  position: relative;
  z-index: 2;
  transform: scaleX(calc(1 / var(--value)));
  transform-origin: right center;
  margin-right: 2rem;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: #FFF;
  white-space: nowrap;
}

/* LABEL */
.bar span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding-left: 1rem;
  padding-right: 4.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #FFF;
}
/* ANIMATION */
@keyframes grow {
  to {
    transform: scaleX(var(--value));
  }
}
/* MOBILE */
@media (max-width: 700px) {
  .chart {
    margin: 1.5rem 0;
  }
  .bar {
    min-height: 2.4rem;
    border-radius: 8px;
  }
  .bar span {
    font-size: 0.7rem;
    padding-left: 0.7rem;
    min-height: 2.4rem;
    padding-right: 3.8rem;
  }
  .fill strong {
    font-size: 1.1rem;
    margin-right: 0.7rem;
  }
}