.wrapper {
  display: flex;
}

.box {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, .2);
}

.blue-light {
  background: #138dff;
}

.blue {
  background: #1337ff;
}

.red {
  background: #dd3f3f;
}
.red-light {
  background: #f26e6e;
}

.green-light {
  background: #16ae50;
}

.green {
  background: #0b7734;
}

.orange {
  background: #f69b12;
}

.orange-light {
  background: #c77800;
}

.black {
  background: #000000;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}