﻿.tooltip {
    position: relative;
    display: inline;
    font-style: normal;
}

    .tooltip .tiptext {
        visibility: hidden;
        font-size: 12px;
        width: 120px;
        background-color: lightslategray;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 6px 0;
        position: absolute;
        z-index: 1;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

        .tooltip .tiptext::after {
            content: "";
            position: absolute;
            border-width: 5px;
            border-style: solid;
        }

    .tooltip:hover .tiptext {
        visibility: visible;
    }
    .tooltip.top .tiptext {
        margin-left: -60px;
        bottom: 150%;
        left: 50%;
    }

        .tooltip.top .tiptext::after {
            margin-left: -5px;
            top: 100%;
            left: 50%;
            border-color: lightslategray transparent transparent transparent;
        }

    .tooltip.top_left .tiptext {
        margin-left: 15px;
        margin-bottom:15px;
        bottom: 10%;
        right: 100%;
    }

        .tooltip.top_left .tiptext::after {
            margin-left: -7px;
            top: 93%;
            left: 96%;
            border-color: lightslategray transparent transparent transparent;
            /*transform: rotate(-45deg);*/
        }

    .tooltip.top_right .tiptext {
        margin-left: 15px;
        margin-bottom: 15px;
        bottom: 15%;
        left: 30%;
    }

        .tooltip.top_right .tiptext::after {
            margin-left: -7px;
            top: 93%;
            left: 8%;
            border-color: lightslategray transparent transparent transparent;
            /*transform: rotate(45deg);*/
        }

    .tooltip.bottom .tiptext {
        margin-left: -60px;
        top: 150%;
        left: 50%;
    }

        .tooltip.bottom .tiptext::after {
            margin-left: -5px;
            bottom: 100%;
            left: 50%;
            border-color: transparent transparent lightslategray transparent;
        }
    .tooltip.left .tiptext {
        top: -5px;
        right: 120%;
    }

        .tooltip.left .tiptext::after {
            margin-top: -5px;
            top: 50%;
            left: 100%;
            border-color: transparent transparent transparent lightslategray;
        }
    .tooltip.right .tiptext {
        top: -5px;
        left: 120%;
    }

        .tooltip.right .tiptext::after {
            margin-top: -5px;
            top: 50%;
            right: 100%;
            border-color: transparent lightslategray transparent transparent;
        }
