.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
}

.tooltip::after {
    content: '?';
    width: 24px; 
    height: 24px; 
    border-radius: 50%;
    background-color: #ccc;
    color: black;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Positioning the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 120%; /* Adjust as necessary to position the tooltip */
    left: 50%;
    transform: translateX(-50%); /* Centers the tooltip */
    opacity: 0;

    transition: opacity 0.5s, visibility 0.5s; /* Smooth transition for tooltip */
}

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