/* CSS Document */


.accessibility-toolbar {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.accessibility-toolbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #cd7b6a;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.accessibility-toolbar-toggle:hover {
    background-color: #cd7b6a;
    border: 1px solid #fff;
}

.accessibility-toolbar-toggle i {
    font-size: 24px;
}

.accessibility-toolbar-content {
    display: none;
    padding: 15px;
    width: 280px;
}

.accessibility-toolbar.open .accessibility-toolbar-content {
    display: block;
}

.accessibility-toolbar-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.accessibility-toolbar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.accessibility-toolbar-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accessibility-toolbar-options li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.accessibility-toolbar-options li button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    padding: 5px 0;
    width: 100%;
    text-align: left;
}

.accessibility-toolbar-options li button:hover {
    color: #0066cc;
}

.accessibility-toolbar-options li button i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.accessibility-toolbar-reset {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.accessibility-toolbar-reset button {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    color: #333;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.accessibility-toolbar-reset button:hover {
    background-color: #e0e0e0;
}


.accessibility-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998; 
}

body.grayscale .accessibility-overlay {
    background-color: transparent;
    backdrop-filter: grayscale(100%);
    -webkit-backdrop-filter: grayscale(100%);
}

body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast a, 
body.high-contrast h1, 
body.high-contrast h2, 
body.high-contrast h3, 
body.high-contrast h4, 
body.high-contrast h5, 
body.high-contrast h6 {
    color: #ffff00 !important;
}

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

body.high-contrast .accessibility-toolbar {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

body.high-contrast .accessibility-toolbar-header h3,
body.high-contrast .accessibility-toolbar-options li button {
    color: #fff !important;
}

body.high-contrast .accessibility-toolbar-reset button {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

body.negative-contrast .accessibility-overlay {
    background-color: transparent;
    backdrop-filter: invert(100%);
    -webkit-backdrop-filter: invert(100%);
}

body.light-background {
    background: #fff !important;
    color: #000 !important;
}

body.light-background a {
    color: #0000EE !important;
}

body.underline-links a {
    text-decoration: underline !important;
}

body.readable-font {
    font-family: Arial, sans-serif !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
    line-height: 1.8 !important;
}


@media screen and (max-width: 767px) {
    .accessibility-toolbar {
        bottom: 10px;
    }
    
    .accessibility-toolbar-toggle {
        bottom: 10px;
    }
}


.accessibility-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}
