
/* https://tutorialzine.com/2014/07/css-inline-help-tips */

.qm_tooltip_owner {
    position: relative;

    display: flex;
    justify-items: center;
    align-content: center;
}

.qm_tooltip {
    text-align: center;
    background-color: var(--col-tootltip-background);
    color: var(--col-tootltip-foreground);
    border-radius: 50%;
    width:  16px;
    height: 16px;
    cursor: default;
    
    padding: 3.5px 4px 4.5px 4px;
}

.qm_tooltip svg {
    fill: var(--col-tootltip-foreground);
}

.qm_tooltip:hover p{
    display:block;
    transform-origin: 100% 0;

    -webkit-animation: qmtt_fadeIn 0.3s ease-in-out;
    animation: qmtt_fadeIn 0.3s ease-in-out;

}

.qm_tooltip p{    /* The tooltip */
    display: none;
    text-align: left;
    background-color: #1E2021;
    padding: 20px;
    width: 500px;
    max-width: 90vw;
    position: absolute;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    right: -4px;
    color: #FFF;
    font-size: 13px;
    line-height: 1.4;
    
    z-index: 999;
}

.qm_tooltip p:before{ /* The pointer of the tooltip */
    position: absolute;
    content: '';
    width:0;
    height: 0;
    border:6px solid transparent;
    border-bottom-color:#1E2021;
    right:10px;
    top:-11.5px;
}

.qm_tooltip p:after{ /* Prevents the tooltip from being hidden */
    width:100%;
    height:40px;
    content:'';
    position: absolute;
    top:-40px;
    left:0;
}

/* CSS animation */

@-webkit-keyframes qmtt_fadeIn {
    0% {
        opacity:0;
        transform: scale(0.6);
    }

    100% {
        opacity:100%;
        transform: scale(1);
    }
}

@keyframes qmtt_fadeIn {
    0% { opacity:0; }
    100% { opacity:100%; }
}