﻿.alphaTooltip {
    position: relative;
    display: inline-block;
}

.alphaTooltip .tooltiptext {
    visibility: hidden;
    background-color: #6a6a6a;
    opacity: 90%;
    color: white;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
}

.alphaTooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip-top-center {
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-top-center::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #6a6a6a transparent transparent transparent;
}

.tooltip-top-left {
    bottom: 125%;
    left: 0;
}

.tooltip-top-left::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 10px;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #6a6a6a transparent transparent transparent;
}

.tooltip-top-right {
    bottom: 125%;
    right: 0;
}

.tooltip-top-right::after {
    content: " ";
    position: absolute;
    top: 100%;
    right: 10px;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #6a6a6a transparent transparent transparent;
}

.tooltip-bottom {
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-bottom::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #6a6a6a transparent;
}

.tooltip-left {
    top: 50%;
    right: 105%;
    transform: translateY(-50%);
}

.tooltip-left .tooltiptext {
    left: auto;
    right: 105%;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-left::after {
    content: " ";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #6a6a6a;
}

.tooltip-right {
    top: 50%;
    left: 105%;
    transform: translateY(-50%);
}

.tooltip-right .tooltiptext {
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-right::after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #6a6a6a transparent transparent;
}
