.tooltip {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
  
.tooltip .tooltiptext {
    visibility: hidden;
    width: 2000px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    align-self: center;

    /* Position the tooltip */
    width: max(100%, 50px);
    top: 100%;
    left: 50%;
    margin-left: -50%; /* Use half of the width (120/2 = 60), to center the tooltip*/
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

