.glossary-tooltip {
	display: inline;
	position: relative;
	z-index: 999;
}

/* Trigger text */

.glossary-tooltip a, .glossary-underline {
	cursor: pointer;
	display: inline-block;
	font-weight: 600;
	position: relative;
	padding: 0;
	-webkit-transition: color 0.3s;
	transition: color 0.3s;
}

.glossary-tooltip a.glossary-external-link::after {
	content: "";
	display:inline-block;
	margin-left: 5px;
	width: 10px;
	height: 12px;
	background-size:  10px 12px;
	mask: url("data:image/svg+xml,%3Csvg%20height%3D%221024%22%20width%3D%22768%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M640%20768H128V257.90599999999995L256%20256V128H0v768h768V576H640V768zM384%20128l128%20128L320%20448l128%20128%20192-192%20128%20128V128H384z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");
	mask-size: cover;
	background: black;
}

.glossary-tooltip a::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: grey;
	-webkit-transform: scale3d(0, 1, 1);
	transform: scale3d(0, 1, 1);
	-webkit-transition: -webkit-transform 0.1s;
	transition: transform 0.1s;
}

.glossary-tooltip:hover a::before {
	-webkit-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
	-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
}

.glossary-tooltip:hover .glossary-tooltip-link::after {
	pointer-events: auto;
	-webkit-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
}

/* Tooltip */

.glossary-tooltip-content {
	position: absolute;
	z-index: 9999;
	width: 360px;
	left: 50%;
	margin: 0 0 20px -180px;
	bottom: 60%;
	text-align: left;
	padding: 6px 10px;
	border-radius: 5px;
	background: #bbb;
	padding: 5px 20px;
	color:white;
	cursor: default;
	pointer-events: none;
	opacity: 0;
	-webkit-transition: opacity 0.2s cubic-bezier(.64,.09,.08,1), transform 0.2s cubic-bezier(.64,.09,.08,1);
	transition: opacity 0.2s cubic-bezier(.64,.09,.08,1), transform 0.2s cubic-bezier(.64,.09,.08,1);
	box-shadow: 4px 4px 10px rgba(0,0,0,.5);
}

.glossary-tooltip:hover .glossary-tooltip-content {
	pointer-events: auto;
	opacity: 1;
	position:absolute;
	display:block !important;
	visibility:visible !important;
	top:unset;
}

/* Tooltip content*/

.glossary-tooltip-content img {
	position: relative;
	height: 150px;
	display: block;
	float: left;
	margin-right: 1em;
}

.glossary-tooltip-text {
	display: block;
	color: white;
	margin: 0.75em 0 1em 0.25em;
}

.glossary-tooltip-text a {
	font-weight: bold;
}

.glossary-underline {
	text-decoration:underline;
}

.rtl .glossary-tooltip-content {
	text-align:right;
}
