﻿.tooltip {
    position: relative;
    display: inline-block;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: darkgray;
        color: black;
        line-height: normal;
        text-align: center;
        font-weight: normal;
        border-radius: 6px;
        padding: 3px;
        /* Position the tooltip */
        position: absolute;
        z-index: 1;

        bottom: 100%;
        margin-left: -60px;
        right: 100%;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
    }

/*Set the position property of the parent element to relative*/
.centerParent {
    width: 180px;
    height: 50px;
    line-height:50px;
    background-color:cadetblue ;
    border-radius:10px;
    /* Center vertically and horizontally */

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
