
.tooltip { /* how the text looks with tooltip */
  position: relative;
  display: inline-block;
  text-decoration: underline dotted 1px #000000;
  cursor: pointer;
}

.tooltip .tooltiptext {
  position: absolute;  
  display: inline-block;
  visibility: hidden;
  white-space: normal;
  min-width: 90px;
  background-color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  padding: 5px 3px 5px 3px;
  line-height: 17px; 
  bottom: 30px;
  left: -45px;
  box-shadow: 3px -3px 3px 0 gray;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  z-index: 1;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent;
}

