﻿/* tooltip-1.css 
Modified from: https://www.w3schools.com/css/css_tooltip.asp
*/

/* Usage:
<h2>Fade In Tooltip on Hover</h2>
<p>When you move the mouse over the text below, the tooltip text will fade in and take 1 second to go from completely invisible to visible.</p>

<div class="tooltip-1">Hover over me
  <span class="tooltiptext-1">Tool tip text</span>
</div>

*/

.tooltip-1 {
  position: relative;
  display: inline-block;
  /* border-bottom: 1px dotted black; /* dotted line under text */
}

.tooltip-1 .tooltiptext-1 {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  
  /* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
  opacity: 0;
  transition: opacity 1s;
}

.tooltip-1 .tooltiptext-1::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.tooltip-1:hover .tooltiptext-1 {
  visibility: visible;
  opacity: 1;
}
</style>


