
/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    text-align: center;
}
.tooltip-i {
    background-color: rgb(230, 230, 230);
    width: 1.7rem;
    height: 1.7rem;
    padding: 0.2rem;
    border-radius: 50%;
}
.tooltip-btn {
    background-color: rgb(230, 230, 230);
    width: 2rem;
    height: 1.7rem;
    border: 1px solid gray;
    padding: 0.2rem;
    border-radius: 0.2rem;
}

/* Tooltip text */
.tooltip .tooltiptext-mini, .tooltip .tooltiptext-big {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 2px;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext-mini {
    width: 120px;
}
.tooltip .tooltiptext-big {
    width: 250px;
}

/* Tooltip arrow */
.tooltip .tooltiptext-mini::after, .tooltip .tooltiptext-big::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext-mini, .tooltip:hover .tooltiptext-big {
    visibility: visible;
    opacity: 1;
}