:root {
    --purple-2: #6f42c1;
    --bs-cyan: #0dcaf0;
}

body {
    position: relative;
}

.defined-term {
    text-decoration: underline;
    text-decoration-color: var(--purple-2);
    text-decoration-style: double;
    text-decoration-thickness: 1px;
}

.definition-card {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    box-sizing: border-box;

    z-index: 1000;
    Position: fixed;
    left: 50%;
    transform: translate(-50%, 0);
    width: 75%;
    max-height: 20%;
    min-height: 5%;
    bottom: 2.5%;


}

.card-header {
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    box-sizing: border-box;
    display: block;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: white;
    background-color: var(--purple-2);
    align-items: center;
}

.card-body {
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    padding: 0.5rem;
    display: block;
    overflow-y: auto;
}

.definition-text {
    text-indent: 4%;
    font-size: 10pt;
    font-family: 'Times New Roman';

    margin-top: 0;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    display: block;
    margin-block-start: 0em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    word-wrap: break-word;
}

.close-button {
    float: right;
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    opacity: 0.5;
}

.close-button:hover {
    opacity: 1;
}

.toast-tip {
    visibility: hidden;
    display: block;
    width: 350px;
    max-width: 100%;
    font-size: 0.875rem;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.85);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
    border-radius: 0.25rem;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    position: fixed;
    z-index: 99;
    right: 2.5%;
    top: 2.5%;
}

.toast-tip.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 5.5s;
    animation: fadein 0.5s, fadeout 0.5s 5.5s;
}

.toast-tip.docgraph.show {
    visibility: visible;
    -webkit-animation: fadeinbottom 0.5s;
    animation: fadeinbottom 0.5s;
}

.toast-tip.docgraph {
    right: 2.5%;
    bottom: 2.5%;
    top: unset;
    /* transition; */
}

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 2.5%;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        top: 2.5%;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

@keyframes fadeinbottom {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 2.5%;
        opacity: 1;
    }
}

@keyframes fadeoutbottom {
    from {
        bottom: 2.5%;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

/* @-webkit-keyframes fadeout {
    from {
        top: 2.5%;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

@-webkit-keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 2.5%;
        opacity: 1;
    }
} */

.toast-header {
    display: block;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #fff;
    background-color: #28a745;
    /* background-color: rgba(255, 255, 255, 0.85); */
    background-clip: padding-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
    font-weight: bolder;
}

.toast-header.docgraph {
    background-color: var(--purple-2);
}

.toast-body {
    padding: 0.75rem;
    word-wrap: break-word;
}

.scroll-link {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: white;
    font-size: 0.75rem;
    text-decoration: underline;
    margin-left: calc(75% / 2 - 3.3rem);
}

.scroll-link:hover {
    color: #0dcaf0;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toast-list-group {
    list-style: none;
    margin-top: 0px;
}

.toast-list-item {
    padding-bottom: 0.5rem;
    position: relative;
}

.toast-list-item svg {
    /* margin-right: 10px; */
    background: white;
    fill: var(--purple-2);
}

.toast-list-item span:before {
    content: '';
    position: absolute;
    border-left: 1px solid;
    left: 0.4rem;
    bottom: -10px;
    z-index: -1;
    height: 100%;
}

.toast-list-item span {
    margin-left: 10px;
}

.toast-list-group li:last-child span:before {
    content: none;
}

.toast-list-group li:last-child {
    padding-bottom: 0.25rem;
}

.docgraph-text {
    padding: 0rem;
    margin: 0.5rem 0.5rem;
    /* padding-bottom: 0rem; */
}

.loader-docgraph {
    border: 3px solid gray;
    border-radius: 50%;
    border-top: 3px solid var(--bs-cyan);
    width: 10px;
    height: 10px;
    /* margin: 0px; */
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    display: inline-block;
    background: white;
}

.btn-format {
    background: white;
    border-radius: 0.25rem;
    border-width: 1px;
    border-color: var(--purple-2);
    color: var(--purple-2);
    cursor: pointer;
    width: 4rem;
}

.btn-format:hover {
    background: var(--purple-2);
    color: white;
}

.btn-format:active {
    box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px) rgb(202 131 253/ 1), 0 0 #0000, 0 0 #0000;
}