/* Tooltip container */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* The tooltip text */
.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 105%; /* Position the tooltip above the image */
    left: 50%;
    margin-left: -150px; /* Offset to center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

    /* Tooltip arrow */
    .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: black transparent transparent transparent;
    }

/* Show the tooltip when clicked 
        .tooltip-container.active .tooltip-text {
            visibility: visible;
            opacity: 1;
        }*/
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* For mouseover words */
.tooltip-box {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    padding: 6px 8px;
    border-radius: 5px;
    max-width: 240px;
    z-index: 1000;
}

.has-tooltip {
    text-decoration: underline dotted #555;
    cursor: help;
}
