/* === Dyslexia-Friendly Mode === */
.dyslexia-font,
.dyslexia-font * {
  font-family: 'OpenDyslexic', Arial, sans-serif !important;
  line-height: 1.6 !important;       /* extra line spacing */
  letter-spacing: 0.05em !important; /* gentle letter spacing */
  word-spacing: 0.1em !important;    /* a bit more space between words */
  font-size: 1.05em !important;      /* slightly larger text */
  background-color: #fdfdfd !important; /* soft neutral background */
  color: #111 !important;            /* strong contrast without harsh black */
  text-align: left !important;       /* left-align for predictable reading */
}


/* Floating Accessibility Button */
#accessibility-float-btn {
    position: fixed;
    top: 85%;
    left: 15px; /*it was 0*/
    transform: translateY(-50%);
    background-color: transparent;
    /*background: linear-gradient(135deg, #0078d7, #005fa3);*/
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 85px;
   /* border-top-right-radius: 10px;*/
  /*  border-bottom-right-radius: 10px;*/
    z-index: 999999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#accessibility-float-btn:hover {
    background: linear-gradient(135deg, #005fa3, #004080);
    padding-left: 22px; /* subtle movement */
}

/* Accessibility Panel */
#accessibility-panel {
    position: fixed;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 18px 15px;
    width: 210px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999999;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Panel Title */
#accessibility-panel h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

/* Labels */
#accessibility-panel label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #444;
}

/* Range Slider */
#accessibility-panel input[type="range"] {
    width: 100%;
    cursor: pointer;
}

/* Buttons inside panel */
#accessibility-panel button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0078d7, #005fa3);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 8px;
}

#accessibility-panel button:hover {
    background: linear-gradient(135deg, #005fa3, #004080);
    transform: translateY(-1px);
}

/* Smooth panel visibility if toggled */
#accessibility-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-10px, -50%);
}
