.quick-access {
    margin-bottom: 1rem;
    border: 1px solid currentColor;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 0 0.25rem currentColor;
}

.quick-access a {
    color: var(--blue);
}

.quick-access a:hover {
    color: var(--blue-shaded);
}

.text-container {
    overflow-wrap: break-word;
    word-break: break-word;
}

.text-container > ol,
.text-container > ul {
    margin: 0;
    margin-top: 0.5rem;
}

.text-container ol,
.text-container ul {
    padding-left: 1.5rem;
}

.text-container p,
.text-container li {
    margin: 0.5rem 0;
}

.text-container ol li:has(p strong)::marker {
    font-weight: bold;
}

.text-container ol ul li {
    list-style-type: disc;
}

.text-container ol ul ul li {
    list-style-type: circle;
}

.text-container ol ul ul ul li {
    list-style-type: square;
}

.text-container .whitespace {
    white-space: pre-line;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    right: 0.5rem;
    bottom: 0.5rem;
    border-radius: 0.5rem;
    width: 16rem;
    max-width: calc(100% - 1rem);
    opacity: 0;
    background-color: var(--light-gray);
    box-shadow: 0 0 0.5rem var(--light-gray);
    z-index: 2;
    transition: color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease, opacity 0.25s ease;
}

.scroll-indicator.active {
    opacity: 1;
}

.scroll-indicator .bar {
    align-self: flex-start;
    position: relative;
    margin: 0.25rem;
    border-radius: 0.25rem;
    height: 1.25rem;
    width: 0;
    background-color: var(--blue);
    box-shadow: 0 0 0.5rem var(--blue);
}

.scroll-indicator .text {
    position: absolute;
    font-size: 1.25rem;
}

.darkmode .scroll-indicator {
    background-color: var(--dark-gray);
    box-shadow: 0 0 0.5rem var(--dark-gray);
}

.high-contrast .scroll-indicator {
    color: var(--white);
    background-color: var(--black);
    box-shadow: 0 0 0.5rem var(--black);
}

@media (max-width: 500px) {
    .text-container {
        font-size: 1rem;
    }

    .scroll-indicator {
        left: 0.5rem;
        right: auto;
    }
}