/********************************************
************ Tooltip CSS for BTG ************

Example:
	<div class="tooltip">Hover over me
  		<span class="tooltiptext">Tooltip text</span>
	</div>
	
To the tooltip itself the classes "right", "left", "top" or "bottom" can be added to position the tooltip.
Combinations wont work, so the classes "leftbottom", "lefttop", "rightbottom" & "righttop" are provided
The tooltips "top" and "bottom" have a fixed offset, so they won't be perfectly centered unless yout tips width is 100px
If you override the width, override margin-left with 1/2 of the new width
The tooltip can also be positioned manually

.tooltip opacity has been set to 1 as bootstrap css in CI was setting opacity for .fa to 0 meaning the tooltip icon was not visible (cmc)

**********************************************/

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  opacity: 1;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: white;
  color: #575757;
  text-align: center;
  padding: 4px;
  border-radius: 4px;
  border: 2px solid rgba(130,183,22,1);
  white-space: nowrap;
  font-size: 14px;
  font-weight: normal;
  font-family: 'Asap', 'Roboto', sans-serif;
  line-height: 1.2;
  text-align: left;
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
  cursor: help;
}

/* add .allow_wrap to the tip itseld to allow linebreaks */
.tooltip .tooltiptext.allow_wrap {
	white-space: normal;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Moves the tooltip to the right */
.tooltip .tooltiptext.right {
  top: -5px;
  left: 105%; 
}

/* Moves the tooltip to the left */
.tooltip .tooltiptext.left {
  top: -5px;
  right: 105%; 
}

/* Moves te tooltip to the top */
.tooltip .tooltiptext.top {
  bottom: 100%;
  left: 50%; 
  margin-left: -50px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

/* Moves the tooltip to the bottom */
.tooltip .tooltiptext.bottom {
  top: 100%;
  left: 50%; 
  margin-left: -50px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

/* Moves the tooltip to the bottom and to the left */
.tooltip .tooltiptext.leftbottom {
	top: 15px;
	right: 105%;
}

/* Moves te tooltip to the bottom and to the right */
.tooltip .tooltiptext.rightbottom {
	top: 15px;
	left: 105%;
}

/* Moves te tooltip to the top and to the left */
.tooltip .tooltiptext.lefttop {
	top: -15px;
	right: 105%;
}

/* Moves te tooltip to the top and to the right */
.tooltip .tooltiptext.righttop {
	top: -15px;
	left: 105%;
}