@font-face {
    font-family: 'OpenDyslexic';
    src: url('fonts/opendyslexic-regular-webfont.woff2') format('woff2'),
         url('fonts/OpenDyslexic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


.dyslexic-font, .dyslexic-font * {
    font-family: 'OpenDyslexic', Arial, sans-serif !important;
}

#accessibility-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 10px;
    width: 260px;
    max-width: 90%;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#accessibility-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#accessibility-panel h2 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}

#accessibility-panel button {
    width: 100%;
    margin: 5px 0;
    padding: 10px 12px;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    color: #343434;
}
#accessibility-panel button:hover {
    background: #e9ecef;
}

/* Wysoki kontrast */
.high-contrast, .high-contrast * {
    background-color: #000 !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
}
.high-contrast img, .high-contrast picture, .high-contrast video {
    filter: invert(1) hue-rotate(180deg) contrast(150%);
}
