/* Tooltip container */
.keytip {
  position: relative;
  display: inline-block;
}

/* Show the tooltip text when you mouse over the tooltip container */
.keytip:hover tiptext {
  visibility: visible;
}

/* Tooltip text */
tiptext {
	font-size: 12px;
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

tiptext.right.arrow {
	left: 110%;
}

tiptext.left.arrow {
  right: 110%;
}

tiptext.bottom.arrow {
	top: 150%;
}

tiptext.top.arrow {
  bottom: 150%;	
}

tiptext.right {
  top: -5px;
  left: 105%;
}

tiptext.left  {
  top: -5px;
  right: 105%;
}

tiptext.top {
  width: 120px;
  bottom: 100%;
  left: 50%;
  margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

tiptext.bottom {
  width: 120px;
  top: 100%;
  left: 50%;
  margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

tiptext.arrow::after {
  content: " ";
  position: absolute;	
  border-width: 5px;
  border-style: solid;
}

tiptext.right.arrow::after {
  top: 50%;
  right: 100%; /* To the left of the tooltip */
  margin-top: -5px;
  border-color: transparent black transparent transparent;
}

tiptext.left.arrow::after {
  top: 50%;
  left: 100%; /* To the right of the tooltip */
  margin-top: -5px;
  border-color: transparent transparent transparent black;
}

tiptext.bottom.arrow::after {
  bottom: 100%;  /* At the top of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-color: transparent transparent black transparent;
}

tiptext.top.arrow::after {
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-color: black transparent transparent transparent;
}