/* Accessibility styles */
#accessibilityBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1b4d89;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 9999;
}

#accessibilityPanel {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: white;
    border: 2px solid #1b4d89;
    padding: 20px;
    border-radius: 8px;
    width: 260px;
    display: none;
    z-index: 9999;
}

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    background: #1b4d89;
    width: 0%;
    z-index: 9999;
}

/* High contrast mode */
.high-contrast {
    background: black !important;
    color: yellow !important;
}

.high-contrast .content {
    background: black !important;
    color: yellow !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast p,
.high-contrast li {
    color: yellow !important;
}

/* Dyslexia-friendly font */
@font-face {
    font-family: "OpenDyslexic";
    src: url("https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic/production/OpenDyslexic-Regular.otf");
}

.dyslexia-font {
    font-family: "OpenDyslexic", Arial, sans-serif !important;
}

/* Highlight keyboard focus */
.highlight-focus *:focus {
    outline: 3px solid #ff6600 !important;
}

/* Large text slider target */
html {
    font-size: 100%;
}

.large-text {
    font-size: var(--fontSize, 100%);
}
