/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Question mark style */
.question-mark {
    cursor: pointer;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f0f0f0;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    color: #555555;
}

body.dark-mode .question-mark {
    background-color: #292929;
    color: #bf9a6c;
}

/* Tooltip text */
.tooltiptext {
    visibility: hidden;
    width: 18em;
    /* white-space: nowrap; */
    word-wrap: break-word;
    /* overflow: hidden; */
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 100;
    top: -40px;
    /* left: 0%; */
    transform: translateX(-50%) translateY(-65%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show tooltip on hover or click */
.question-mark:hover+.tooltiptext,
.question-mark:focus+.tooltiptext {
    visibility: visible;
    opacity: 1;
}