.plates-display {
  display: flex;
  width: 100%;
  height: 280px;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
}

.plates-display::before {
  content: "";
  height: 20px;
  width: 100%;
  position: absolute;
  top: calc(50% - 10px);
  left: 0;
  background: #CCC;
  z-index: 1;
  border-radius: 6px;
}

.plates-display div {
  display: flex;
  width: 40%;
  align-items: center;
  z-index: 2;
  position: relative;
}

.plates-display div+div {
  margin-left: 20%;
}

.plates-display div:last-child {
  justify-content: flex-end;
}

.plates-display div:last-child span::after {
  transform: rotate(90deg) translate(-50%, -50%);
}

.plates-display span {
  margin: 2px;
  position: relative;
  border-radius: 6px;
}

.plates-display span::after {
  content: attr(data-weight);
  color: #AAA;
  font-size: 0.7rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(-90deg) translate(-50%, -50%);
  transform-origin: 0 0;
  font-weight: bold;
}

.plates-display span[data-weight="45"] {
  width: 40px;
  height: 200px;
  background: #006;
}

.plates-display span[data-weight="25"] {
  width: 28px;
  height: 200px;
  background: #060;
}

.plates-display span[data-weight="15"] {
  width: 28px;
  height: 180px;
  background: #600;
}

.plates-display span[data-weight="10"] {
  width: 28px;
  height: 160px;
  background: #003;
}

.plates-display span[data-weight="5"] {
  width: 20px;
  height: 140px;
  background: #030;
}

.plates-display span[data-weight="2.5"] {
  width: 20px;
  height: 60px;
  background: #300;
}

body {
  background: #fff;
  padding: 20px;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1em;
  padding: 2em;
}

.weight-slider {
  text-align: center;
}

.weight-slider input {
  width: 300px;
}