.glossary-term:not(.glossary-term.glitch) {
    /* border-bottom: 1px dotted #000; */
    cursor: help;
    position: relative;
    font-weight: 700;
    /* font-style: italic; */
    animation: shimmer 15s infinite;
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0.2) 75%);
    background-size: 200% auto;
    border-radius: 6px;
    padding: .25rem;
    padding-right: .75rem;
    color: inherit;
}
.glossary-term:not(.glitch)::after {
    content: '?';
    position: absolute;
    top: -2px; /* Adjust position */
    right: 2px; /* Adjust position */
    font-size: 11px; /* Make it small */
    font-weight: bold;
    color: #555; /* Adjust color as needed */
    border-radius: 50%;
    padding: 2px;
}

.tooltip-box {
    position: absolute;
    background-color: #fff;
    outline: 2px dashed #090F23;
    padding: .75rem;
    max-width: 550px; /* Ensures the tooltip does not exceed this */
    width: auto; /* Allows it to adjust naturally */
    font-size: 16px;
    color: #333;
    white-space: normal; /* Ensures wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s;
}
/* Ensure tooltips don't exceed screen width on mobile */
@media (max-width: 600px) {
    .tooltip-box {
        max-width: 90vw; /* Makes it fit within 90% of viewport width */
    }
}

.tooltip-box.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}




.glossary-term.glitch {
    animation: glitch 0.3s infinite alternate;
    text-shadow: 2px 2px 2px rgba(255, 0, 0, 0.8), -2px -2px 2px rgba(0, 0, 255, 0.8);
}


@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}


@keyframes glitch {
    0% {
        transform: translate(0);
        opacity: 1;
    }
    20% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(2px, -2px);
        opacity: 1;
    }
    60% {
        transform: translate(-2px, -2px);
        opacity: 0.9;
    }
    80% {
        transform: translate(2px, 2px);
        opacity: 1;
    }
    100% {
        transform: translate(0);
        opacity: 1;
    }
}
.glossary-header {
    text-decoration: double;
    font-size: 4rem;
    color: #090F23;
}

.glossary-item {
    margin: 1rem;
    margin-bottom: 2rem;

}
.glossary-heading {
    font-size: 2.5rem;
    letter-spacing: 2px;
    border-bottom: 2px solid #473e66;
    color: #090F23;
    margin-bottom: 1rem;
}
.glossary-cont {
    outline: 2px dashed #473e66;
    padding-top: .5rem;
    padding-inline: .75rem;
    padding-bottom: .5rem;
    border-radius: 8px;
    background-color: #fff;
}
.glossary-definition {
    color: #090F23;
    font-size: 1.25rem

}
.glossary-subheading {
    color: #090F23;
    font-size: 1rem;
    a {
        color: #473e66;
        font-weight: 600;
        font-style: italic;
        transition: color 300ms ease-in;
    }
    a:hover {
        color: #00adef;
    }

}
