/* Accessibility CSS */

/* Floating Accessibility Button */
.access-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color, #007bff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.access-btn:hover {
    transform: scale(1.1);
}

.access-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Accessibility Menu */
.access-menu {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 9999;
}

.access-menu.active {
    display: flex;
}

.access-menu-item {
    background-color: #2a2a2a;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-weight: bold;
}

.access-menu-item:hover {
    background-color: #3a3a3a;
}

.access-menu-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* High Contrast Mode overrides */
body.high-contrast,
body.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast a,
body.high-contrast button {
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.high-contrast img,
body.high-contrast video {
    filter: grayscale(100%) contrast(120%);
}

/* Text Size Variations */
html.text-size-1 { font-size: 110%; }
html.text-size-2 { font-size: 120%; }
html.text-size-3 { font-size: 130%; }
html.text-size--1 { font-size: 90%; }
html.text-size--2 { font-size: 80%; }

/* Grayscale Mode */
body.grayscale-mode {
    filter: grayscale(100%);
}

/* Highlight Links Mode */
body.highlight-links-mode a,
body.highlight-links-mode button {
    text-decoration: underline !important;
    text-decoration-color: yellow !important;
    text-decoration-thickness: 3px !important;
    font-weight: bold !important;
}

/* Dyslexia Font Mode */
body.dyslexia-font-mode,
body.dyslexia-font-mode * {
    font-family: "OpenDyslexic", "Comic Sans MS", Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.1em !important;
    line-height: 1.5 !important;
    word-spacing: 0.2em !important;
}
