html {
    scroll-behavior: smooth;
}

/* tooltip container */
.c-tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* dots under the text */
}

/* tooltip text */
.c-tooltiptext {
    --ttwidth: min(620px, 90vw);
    
    visibility: hidden;
    width: var(--ttwidth);
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: calc(var(--ttwidth) / -2);

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

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

/* show when you mouse over */
.c-tooltip:hover .c-tooltiptext {
    visibility: visible;
    opacity: 1;
}
