
/* 
Pop-up text on hover. Usage:
<div class="tooltip">Hover over me
  <span class="tooltiptext">Now is the time for all good men to come to the aid of their party.</span>
</div>

From: https://www.w3schools.com/css/css_tooltip.asp
*/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: lightgray;
  color: #000;
  text-align: center;
  border-radius: 6px;
  padding: 5px 5px;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 110%;
}

/* adds an arrow. not good when there is more than one line of text */
/* .tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent lightgray transparent transparent;
} */

.tooltip:hover .tooltiptext {
  visibility: visible;
}

