/*
|--------------------------------------------------------------------------
| QURAN WORD
|--------------------------------------------------------------------------
*/

.quran-word {

    position: relative;

    display: inline-block;

    line-height: inherit;

    transition: all 0.2s ease;
}

.quran-word:hover {

    color: #6ee7b7;
}

/*
|--------------------------------------------------------------------------
| QURAN READING
|--------------------------------------------------------------------------
*/

.quran-reading {

    line-height: 2.2;
}

/*
|--------------------------------------------------------------------------
| TOOLTIP
|--------------------------------------------------------------------------
*/

.quran-tooltip {

    z-index: 9999;
}

/*
|--------------------------------------------------------------------------
| ARABIC FONT SYSTEM
|--------------------------------------------------------------------------
*/

:root {

    --quran-font-size: 42px;
}

/*
|--------------------------------------------------------------------------
| FONT CLASSES
|--------------------------------------------------------------------------
*/

.font-kfgqpc {

    font-family:
        "KFGQPC Uthmanic Script",
        serif;
}

.font-indopak {

    font-family:
        "AlQalam Quran",
        serif;
}

/*
|--------------------------------------------------------------------------
| RTL QURAN FIX
|--------------------------------------------------------------------------
*/

.quran-reading {

    direction: rtl;

    unicode-bidi: plaintext;

    word-spacing: 0.05em;

    line-height: 2.2;
}

/*
|--------------------------------------------------------------------------
| TOOLTIP FIX
|--------------------------------------------------------------------------
*/

.group:hover .group-hover\:block {

    display: block;
}

.word-tooltip {
    transform:
        translateX(-50%)
        translateY(10px);

    transition:
        all .2s ease;
}

.group:hover .word-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

/*
|--------------------------------------------------------------------------
| WORD TOOLTIP
|--------------------------------------------------------------------------
*/

.quran-word {
    position: relative;
    display: inline-block;
    margin-inline: 6px;
    cursor: pointer;
}

.quran-tooltip {
    position: absolute;

    bottom: calc(100% + 18px);
    left: 50%;

    transform: translateX(-50%) translateY(10px);

    background: #10b981;
    color: #000;

    padding: 12px 16px;

    border-radius: 18px;

    min-width: max-content;

    text-align: center;

    white-space: nowrap;

    box-shadow:
        0 20px 40px rgba(0,0,0,.35);

    opacity: 0;
    visibility: hidden;

    transition:
        all .2s ease;

    z-index: 99999;

    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| TOOLTIP ARROW
|--------------------------------------------------------------------------
*/

.quran-tooltip::after {
    content: '';

    position: absolute;

    left: 50%;
    top: 100%;

    width: 12px;
    height: 12px;

    background: #10b981;

    transform:
        translateX(-50%)
        rotate(45deg);
}

/*
|--------------------------------------------------------------------------
| SHOW
|--------------------------------------------------------------------------
*/

.quran-word:hover .quran-tooltip {

    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}