﻿#accToggle {
    position: fixed;
    right: 20px;
    top: 220px;
    width: 60px;
    height: 60px;
    background: #005baa;
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    user-select: none;
}

    #accToggle:focus-visible {
        outline: 3px solid #ffcc00;
        outline-offset: 4px;
    }

#accSidebar {
    position: fixed;
    right: -320px;
    top: 0;
    width: 300px;
    height: 100%;
    padding: 20px;
    overflow: auto;
    box-sizing: border-box;
    z-index: 99998;
    color: #fff;
    background: linear-gradient(135deg, #141e30, #243b55);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .6);
    transition: right .35s ease;
}

    #accSidebar.open {
        right: 0;
    }

.acc-title {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .5px;
}

.acc-btn {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px;
    margin-bottom: 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
}

    .acc-btn:hover,
    .acc-btn:focus-visible {
        background: rgba(255, 255, 255, .18);
        outline: 2px solid rgba(255, 255, 255, .45);
        outline-offset: 2px;
    }

.acc-btn-reset {
    margin-top: 12px;
    background: rgba(255, 80, 80, .24);
}

/* Effects */

html.acc-font-big {
    font-size: 120%;
}

html.acc-font-bigger {
    font-size: 140%;
}

html.acc-contrast,
html.acc-contrast body {
    background: #000 !important;
    color: #ff0 !important;
}

    html.acc-contrast * {
        color: #ff0 !important;
        border-color: #ff0 !important;
    }

    html.acc-contrast a {
        color: #0ff !important;
        text-decoration: underline !important;
    }

    html.acc-contrast input,
    html.acc-contrast textarea,
    html.acc-contrast select,
    html.acc-contrast button {
        background: #000 !important;
        color: #ff0 !important;
        border: 2px solid #ff0 !important;
    }

    html.acc-contrast img,
    html.acc-contrast video,
    html.acc-contrast iframe {
        filter: contrast(130%) brightness(90%);
    }
    html.acc-contrast a {
        color: #ff0 !important;
    }
html.acc-gray {
    filter: grayscale(100%);
}

html.acc-darkgray {
    filter: grayscale(100%) brightness(70%) contrast(110%);
}

/* Dark Theme */

html.acc-dark body {
    background: #111827 !important;
    color: #f9fafb !important;
}

html.acc-dark a {
    color: #bfdbfe !important;
    text-decoration: underline !important;
}

html.acc-dark input,
html.acc-dark textarea,
html.acc-dark select,
html.acc-dark button {
    background-color: #1f2937;
    color: #f9fafb;
    border-color: #4b5563;
}

html.acc-dark table,
html.acc-dark th,
html.acc-dark td {
    border-color: #4b5563;
}

html.acc-dark #accSidebar {
    background: linear-gradient(135deg, #0f172a, #1f2937);
    color: #fff;
}

html.acc-dark .acc-btn {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

    html.acc-dark .acc-btn:hover,
    html.acc-dark .acc-btn:focus-visible {
        background: rgba(255, 255, 255, .2);
    }

/* Gray Theme */

html.acc-gray-theme body {
    background: #e5e7eb !important;
    color: #111827 !important;
}

html.acc-gray-theme a {
    color: #005baa !important;
}

html.acc-gray-theme input,
html.acc-gray-theme textarea,
html.acc-gray-theme select,
html.acc-gray-theme button {
    background-color: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
}

html.acc-gray-theme table,
html.acc-gray-theme th,
html.acc-gray-theme td {
    border-color: #9ca3af;
}

html.acc-gray-theme #accSidebar {
    background: linear-gradient(135deg, #4b5563, #9ca3af);
    color: #fff;
}

html.acc-gray-theme .acc-btn {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* Black Theme */

html.acc-black-theme body {
    background: #000 !important;
    color: #fff !important;
}

html.acc-black-theme a {
    color: #ff0 !important;
}

html.acc-black-theme input,
html.acc-black-theme textarea,
html.acc-black-theme select,
html.acc-black-theme button {
    background-color: #111 !important;
    color: #fff !important;
    border-color: #777 !important;
}

html.acc-black-theme table,
html.acc-black-theme th,
html.acc-black-theme td {
    border-color: #777 !important;
}

html.acc-black-theme #accSidebar {
    background: #000;
    color: #fff;
}

html.acc-black-theme .acc-btn {
    background: #111;
    color: #fff;
    border: 1px solid #444;
}

    html.acc-black-theme .acc-btn:hover,
    html.acc-black-theme .acc-btn:focus-visible {
        background: #222;
    }

/* Other Features */

html.acc-links a {
    background: #ff0 !important;
    color: #000 !important;
    text-decoration: underline !important;
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

html.acc-line body {
    line-height: 2 !important;
}

html.acc-cursor,
html.acc-cursor * {
    cursor: zoom-in !important;
}

html.acc-hideimg img,
html.acc-hideimg picture,
html.acc-hideimg video,
html.acc-hideimg iframe {
    display: none !important;
}

html.acc-reading main,
html.acc-reading article,
html.acc-reading .container {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 20px;
}

/* Mobile */

@media (max-width: 768px) {
    #accToggle {
        right: 14px;
        top: auto;
        bottom: 18px;
        width: 52px;
        height: 52px;
        display: flex !important;
    }

    #accSidebar {
        right: -100%;
        width: 100%;
        max-width: 320px;
        display: block !important;
    }

        #accSidebar.open {
            right: 0;
        }
}
html.acc-blacktone {
    filter: grayscale(100%) contrast(190%) brightness(75%);
}
