
 #accessibilityToggleBtn {
      position: fixed !important;
      top: 50%;
      right: 0;
      z-index: 111111;
      background: linear-gradient(270deg, #E5461C 0%, #EE6F32 100%);
      color: #fff;
      padding: 6px 9px;
      border: none;
      border-radius: 9px 0 0 9px;
      cursor: pointer;
      box-shadow: 0px 4px 12px 0px rgba(17, 17, 17, 0.1);
       align-items: center;
    display: flex;
    min-width: 60px;
    min-height: 54px;
      
    }
/* Main panel container */
.accessibility-panel,  #pageList {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 24px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-height: 90vh;
        position: fixed !important;
    top: 8%;
    right: 60px;
    max-height: 90vh;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
    font-family: var(--body-font-family);
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
    scrollbar-width:none;
}

@media (max-width: 768px) {
  .accessibility-panel,
  #pageList {
    left: 5vw;
    right: 5vw;
    bottom: 20px;
    padding: 12px;
    font-size: 11px;
    gap: 20px;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  .accordion-item-acces{
    padding: 17px 10px;
  }
}

  #pageList {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 24px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-height: 90vh;
        position: fixed !important;
    bottom: 50px;
    max-height: 90vh;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
    font-family: var(--body-font-family);
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: none;
    padding: 0px;
}




  .accessibility-panel button {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color:#000;
  cursor: pointer;
  font-family: var(--body-font-family-semibold);
}

/* Panel header */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.panel-header p {
    font-size: 24px;
    font-weight: 500;
    color: #111111;
    line-height: 28.8px;
    font-family: var(--body-font-family-semibold);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    color: #111111;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #663db3;
}

/* Panel content */
.panel-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.reset-all {
    align-self: flex-end;
    font-weight: 500;
    color: #ee601f;
    font-size: 16px;
    line-height: 19.2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.reset-all:hover {
    color: rgb(220 80 16);
}

/* Scroll area */
.scroll-area {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

.scroll-area::-webkit-scrollbar {
    width: 3px;
}

.scroll-area::-webkit-scrollbar-track {
    background: #e9e6e6;
}

.scroll-area::-webkit-scrollbar-thumb {
    background: #ee601f;
    border-radius: 2px;
}

/* Accordion container */
.accordion-container-acces{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
  .accordion-container-acces {
    width: 100%;
  }

  .accordion-trigger {
    font-size: 15px;
  }
}


/* Accordion items */
.accordion-item-acces {
    width: 360px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 10px;
    padding: 20px 16px;
    background: white;
}
.accordion-item-acces.active{
background :#FCECE4;
}
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: black;
    line-height: 21.6px;
    font-family: var(--body-font-family);;
    padding: 0;
    transition: color 0.2s ease;
}

.accordion-trigger:hover {
    color: rgb(220 80 16);
}

.accordion-icon {
    transition: transform 0.2s ease;
    color: #111111;
}
    

.accordion-item-acces.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;
    padding-top: 0;
}

.accordion-item-acces.active .accordion-content {
    max-height: 500px;
    padding-top: 24px;
}

/* Options grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.options-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

/* Option cards */
.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 12px 8px;
    flex: 1;
    height: 105px;
    background: white;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
      .option-card .option-label::before {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 8px;
}

.option-card[datakey="blindness"] .option-label::before {
   content: url(/icons/Frame-1.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="visually"] .option-label::before {
   content: url(/icons/Frame-2.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="cognitive"] .option-label::before {
   content: url(/icons/Frame-3.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="epilepsy"] .option-label::before {
   content: url(/icons/Frame-1.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="dyslexia"] .option-label::before {
   content: url(/icons/Frame-4.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="ADHD"] .option-label::before {
   content: url(/icons/frame-5.png);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="textSize"] .option-label::before {
   content: url(/icons/Frame-6.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="hideShow"] .option-label::before {
   content: url(/icons/Frame-7.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="lineSpacing"] .option-label::before {
   content: url(/icons/Frame-8.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="letterSpacing"] .option-label::before {
   content: url(/icons/Frame-9.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="imageDescription"] .option-label::before {
   content: url(/icons/Frame-7.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="textZoom"] .option-label::before {
   content: url(/icons/Frame-10.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="enableSkipLink"] .option-label::before {
   content: url(/icons/Frame-11.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="pauseMedia"] .option-label::before {
   content: url(/icons/Frame-12.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="textAlignment"] .option-label::before {
   content: url(/icons/Frame-13.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="highContrast"] .option-label::before {
   content: url(/icons/Frame-14.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="invertColors"] .option-label::before {
   content: url(/icons/Frame-15.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="Grayscale"] .option-label::before {
   content: url(/icons/Frame-16.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="lowSaturation"] .option-label::before {
   content: url(/icons/Frame-17.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="readingLine"] .option-label::before {
   content: url(/icons/Frame-18.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="highlightLinks"] .option-label::before {
   content: url(/icons/Frame-19.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="bigCursor"] .option-label::before {
   content: url(/icons/Frame-20.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="enlargeButtons"] .option-label::before {
   content: url(/icons/Frame-22.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="readPage"] .option-label::before {
   content: url(/icons/Frame-24.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="pageStructure"] .option-label::before {
   content: url(/icons/Frame-24.svg);
   color : red;
   height:24px;
   width:24px;
}
   .option-card[datakey="virtualKeyboard"] .option-label::before {
   content: url(/icons/Frame-21.svg);
   color : red;
   height:24px;
   width:24px;
}

@media (max-width: 768px) {
  .option-card {
    padding: 4px 8px;
  }
     .option-card.virtual-keyboad{
    display:none
  }
}


.option-card:hover {
    border-color: rgba(229, 70, 28, 1);
    box-shadow: 0 2px 8px rgba(102, 61, 179, 0.1);
    transform: translateY(-1px);
}

.option-card.empty {
    opacity: 0;
    cursor: default;
}

.option-card.empty:hover {
    border-color: rgba(17, 17, 17, 0.2);
    box-shadow: none;
    transform: none;
}

.option-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.option-label {
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    text-align: center;
    line-height: 16.8px;
    font-family: var(--body-font-family);
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-label.multiline {
    line-height: 16.8px;
}

/* ADHD custom icon */
.adhd-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.adhd-bg {
    position: absolute;
    width: 22px;
    height: 24px;
    left: 1px;
    background-image: url('public/group.png');
    background-size: 100% 100%;
}

.adhd-inner {
    position: absolute;
    width: 14px;
    height: 14px;
    top: 2px;
    left: 3px;
    background-image: url('public/group-1.png');
    background-size: 100% 100%;
}

/* Custom scrollbar */
.scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #e9e6e6;
    border-radius: 2px;
}

@media (max-width: 768px) {
  .scrollbar {
 display: none;
  }
}


.scrollbar-thumb {
    position: absolute;
    width: 3px;
    top: 67px;
    background: #ee601f;
    border-radius: 2px;
}

/* Responsive design */
@media (max-width: 480px) {
    .accessibility-panel , #pageList{
        width: 100%;
        max-width: 80%;
        padding: 20px 16px;
        scrollbar-width:none;
    }

    .options-row{
      gap: 5px;
    }
    
    .accordion-item-acces {
        width: 100%;
    }
    
    .option-card {
      height: 92px;
      min-width: 67px;
    }
    
    .option-label {
        font-size: 12px;
        max-width: 70px;
    }

    .option-card .option-label::before{
      margin:0;
    }

    .option-steps{
      gap:0 !important;
    }

    .option-steps li {
      width: 7px !important;
      height: 7px !important;
    }

    .accordion-trigger{
    font-size:16px;
    }
}

/* Active states */
.option-card.active {
   border-color: #E5461C;
    box-shadow: 0 2px 8px rgba(102, 61, 179, 0.1);
    transform: translateY(-1px);
    background: #f2723224;
}

.option-steps {
  margin-top: 6px;
  padding-left: 0px;
}





.option-steps ul{
list-style: circle;
    display: none;
    width: 100%;
    margin: 5px auto 0;
    text-align: center;
    position: relative;
    padding: 0px;}
.option-steps li {
    width: 7px;
    height: 7px;
    background: #ccc;
    display: inline-block;
    margin: 0 5px;
    border-radius: 100%;
}





.option-steps {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  gap: 6px;
  justify-content: flex-start;
}

.option-steps li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc; /* Inactive step */
  transition: background-color 0.3s ease;
}

.option-steps li.active {
  background-color: #000; /* Active step */
}



/* Focus states for accessibility */
.option-card:focus,
.close-btn:focus {
    outline: 2px solid #663db3;
    outline-offset: 2px;
}

/* Animation for smooth interactions */
.option-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* #readingLine moved below — hidden by default */





.card {
  width: 400px;
  background: white;
  border: 1px solid transparent;
  border-radius: 16px 16px 0px 0px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
  padding: 20px 20px 0 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 24px;
  font-weight: 500;
  color: #111111;
  line-height: 28.8px;
  font-family: var(--body-font-family);;
}

.close-icon {
  width: 24px;
  height: 24px;
  color: #111111;
  cursor: pointer;
}

.close-icon:hover {
  color: #666666;
}
  .as-card-content li{
  border-bottom: 1px solid #ff6f3c;
    padding: 10px;
    list-style: none;
}

.card-content-access {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.button-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.page-button {
  height: 44px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  font-weight: normal;
  font-size: 14px;
  color: #111111;
  line-height: 16.8px;
  font-family: var(--body-font-family);;
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-button:hover {
  background-color: #f9f9f9;
  border-color: rgba(17, 17, 17, 0.3);
}

.page-button.active {
  background-color: rgba(102, 61, 179, 0.06);
  border-color: #663db3;
}

.page-button.active:hover {
  background-color: rgba(102, 61, 179, 0.1);
}

.page-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 61, 179, 0.2);
}

.page-button:active {
  transform: translateY(1px);
}
.reset-icon{
 position: relative;
    height: 32px;
    width: 41px;
    top: 10px;
   
}

.accordion-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
                 .high-contrast { background-color: #000 !important; color: #FFD700 !important; }
    .invert-colors * { filter: invert(220%); }
  
    .grayscale * { filter: grayscale(100%) !important; }
    .low-saturation * { filter: contrast(200%) !important; }
    .grayscale .accessibility-panel,
.grayscale .accessibility-panel *,
.grayscale #pageList,
.grayscale #pageList * {
  filter: none !important;
}

.low-saturation .accessibility-panel,
.low-saturation .accessibility-panel *,
.low-saturation #pageList,
.low-saturation #pageList * {
  filter: none !important;
}
.invert-colors .accessibility-panel,
.invert-colors .accessibility-panel *,
.invert-colors #pageList,
.invert-colors #pageList * {
  filter: none !important;
}


    .line-spacing p, .line-spacing li { line-height: 2 !important; }
    .letter-spacing p, .letter-spacing li { letter-spacing: 2px !important; }
    .big-cursor { cursor: url(/icons/cursor.png), auto !important; }
    .highlight-links a { outline: 2px dashed #f00 !important; background: #0073bb !important; }
    .skip-link { position: fixed; top: 0px; left: 0; background: #000; color: #fff; padding: 8px; z-index: 10001;  }
    .skip-link:focus { top: 0; }
    .big-buttons button, .big-buttons input[type="submit"], .big-buttons a { transform: scale(1.06); }
    .disable-animation { animation: none !important; transition: none !important; }
    #ariaAlertRegion { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }



    
     .img-alt-tooltip {
      position: fixed !important;
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
      color: white !important;
      padding: 28px 32px !important;
      border-radius: 16px !important;
      font-size: 22px !important;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
      max-width: 500px !important;
      min-width: 280px !important;
      width: auto !important;
      word-wrap: break-word !important;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
      z-index: 10001 !important;
      opacity: 0 !important;
      transform: translateY(4px) !important;
      transition: opacity 0.2s ease-out, transform 0.2s ease-out !important;
      pointer-events: none !important;
      backdrop-filter: blur(15px) !important;
      border: 4px solid rgba(255, 255, 255, 0.4) !important;
      line-height: 1.8 !important;
      font-weight: 700 !important;
      white-space: normal !important;
    }
    
    .img-alt-tooltip.show {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }
    
    .img-alt-tooltip::before {
      content: "" !important;
      position: absolute !important;
      top: 100% !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      border: 6px solid transparent !important;
      border-top-color: rgba(15, 23, 42, 0.95) !important;
      pointer-events: none !important;
    }
    
    /* Arrow for tooltip when positioned below image */
    .img-alt-tooltip.arrow-up::before {
      top: -12px !important;
      border-top-color: transparent !important;
      border-bottom-color: rgba(15, 23, 42, 0.95) !important;
    }
    
    /* Responsive design for accessibility */
    @media (max-width: 768px) {
      .img-alt-tooltip {
        max-width: 450px !important;
        font-size: 20px !important;
        padding: 26px 30px !important;
        min-width: 260px !important;
        /* Mobile-specific improvements */
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
      }
    }
    
    @media (max-width: 480px) {
      .img-alt-tooltip {
        max-width: 400px !important;
        font-size: 18px !important;
        padding: 24px 28px !important;
        min-width: 240px !important;
        /* Mobile-specific improvements */
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
      }
    }
    
    /* Mobile-specific touch improvements */
    @media (hover: none) and (pointer: coarse) {
      .img-alt-tooltip {
        /* Ensure tooltip is visible on touch devices */
        pointer-events: auto !important;
        /* Longer display time for touch devices */
        transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
      }
    }

    .high-contrast-vi {
  filter: saturate(3);
}
  .low-saturation-epilepsy {
  filter: saturate(0.5);
}
.grayscale-new{
  filter: saturate(0);
}

  

.screen-reader-popup {
  position: fixed;
  bottom: 10px;
  right: max(calc((100% - 1475px) / 2), 10px);
  transform: none;
  max-width: 400px;
  width: 90%;
  background-color: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", sans-serif;
  z-index: 9999;
  transition: all 0.3s ease;
}

/* Heading */
.screen-reader-popup h4 {
  font-size: 22px;
  margin: 0 0 10px 0;
  color: #ee601f;
  font-weight: 600;
}

/* Subtext */
.screen-reader-popup p {
  font-size: 14px;
  margin: 5px 0 20px 0;
  color: #444;
}

/* Close button */
.screen-reader-popup > .close-popup {
  position: absolute;
  top: 6px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}
.screen-reader-popup > .close-popup:hover {
  color: #E5461C;
}

/* Labels */
.screen-reader-popup label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  color: black;
  font-size: 15px;
}

/* Voice dropdown */
.screen-reader-popup > .voice-select {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccd6e8;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.2s ease;
}
.screen-reader-popup > .voice-select:focus {
  border-color: #E5461C;
  outline: none;
}

/* Buttons */
.screen-reader-popup > .reader-controls {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.screen-reader-popup > .reader-controls button {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: transparent;
  color: #333;
  font-weight: 500;
  border: 1px solid #ee601f;
}
.screen-reader-popup > .reader-controls button.primary {
  background-color: #ee601f;
  color: #fff;
  font-weight: 600;
}
.screen-reader-popup > .reader-controls button:hover {
  background-color: #ee601f;
  color: #fff;
}
.screen-reader-popup > .reader-controls button.primary:hover {
  background-color: #ee601f;
}

/* Speak highlight */
.speak-highlight {
  outline: 2px solid #EE6F32 !important;
  border-radius: 6px !important;
  background-color: rgba(0, 115, 187, 0.1);
  transition: background-color 0.2s ease;
}
/* Slider (Chrome/Safari/Edge Chromium) */
.screen-reader-popup input[type="range"] {
  --val: 50%;
  width: 100%;
  margin-top: 8px;
  height: 4px; /* visual height (fallback) */
  border-radius: 10px;
  cursor: pointer;
  accent-color: #da6732; /* Use accent-color for the fill */
  background: linear-gradient(to right, #EE6F32 var(--val), #d9e7f5 var(--val)); /* Background for the unfiiled track */
  transition: height 0.25s ease, background 0.15s linear;
}

/* Keep the pseudo-track transparent so the input background shows */
.screen-reader-popup input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 6px;
  border-radius: 10px;
}

/* Thumb */
.screen-reader-popup input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  margin-top: -6px; /* center the thumb */
  border-radius: 50%;
  background:#d62049;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
  

/* Hover / active */
.screen-reader-popup input[type="range"]:hover,
.screen-reader-popup input[type="range"]:focus {
  height: 8px;
}
.screen-reader-popup input[type="range"]::-webkit-slider-thumb:hover,
.screen-reader-popup input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.12);
  background: #e64564;
}
   @media (max-width: 768px) {
   .screen-reader-popup{
   right:0;
   width:100%;
   bottom:50px;
   max-width: 100% !important;
}
}
@media (max-width: 768px) {
  .option-card[datakey="bigCursor"] {
    pointer-events: none; /* prevent clicks */
  }
}

.dyslexia-font,
.dyslexia-font h1, .dyslexia-font h2, .dyslexia-font h3, .dyslexia-font h4, .dyslexia-font h5, .dyslexia-font h6 {
font-family: open-dyslexic, sans-serif;
    font-size: 18px; /* Adjust font size for better readability */
    line-height: 1.6; /* Increases line spacing for easier reading */
    letter-spacing: 0.5px; /* Adds spacing between letters */
    color: #333333; /* Darker text color for better contrast */
    word-spacing: 0.5px; /* Adds spacing between words */
    text-align: left; /* Left-aligned text is generally easier to read */
    padding: 20px; /* Add some padding for a more comfortable reading area */
}


/* Font size scaling — class-based approach */
body.dwas-fs-level-1 .dwas-fs-init { font-size: calc(var(--dwas-orig-fs) * 1.01) !important; }
body.dwas-fs-level-2 .dwas-fs-init { font-size: calc(var(--dwas-orig-fs) * 1.03) !important; }
body.dwas-fs-level-3 .dwas-fs-init { font-size: calc(var(--dwas-orig-fs) * 1.04) !important; }

/* Letter spacing — class-based approach */
body.dwas-ls-level-1 .dwas-typo-init { letter-spacing: normal !important; }
body.dwas-ls-level-2 .dwas-typo-init { letter-spacing: 0.01em !important; }
body.dwas-ls-level-3 .dwas-typo-init { letter-spacing: 0.012em !important; }

/* Line height — class-based approach */
body.dwas-lh-level-1 .dwas-typo-init { line-height: 1.2 !important; }
body.dwas-lh-level-2 .dwas-typo-init { line-height: 1.25 !important; }
body.dwas-lh-level-3 .dwas-typo-init { line-height: 1.30 !important; }

/* Text alignment — class-based approach */
body.dwas-ta-level-1 .dwas-ta-init { text-align: left !important; }
body.dwas-ta-level-2 .dwas-ta-init { text-align: center !important; }
body.dwas-ta-level-3 .dwas-ta-init { text-align: right !important; }
body.dwas-ta-level-1 .dwas-ta-flex { justify-content: flex-start !important; }
body.dwas-ta-level-2 .dwas-ta-flex { justify-content: center !important; }
body.dwas-ta-level-3 .dwas-ta-flex { justify-content: flex-end !important; }

/* Cognitive profile — single-toggle classes */
body.dwas-cognitive-ls .dwas-typo-init { letter-spacing: 0.02em !important; }
body.dwas-cognitive-lh .dwas-typo-init { line-height: 1.2 !important; }


  

/* CSP-safe visibility helpers */
.screen-reader-popup[hidden],
.accessibility-panel[hidden],
#pageList[hidden],
#reading-line-overlay[hidden] {
  display: none !important;
}

.accessibility-panel.is-open,
#pageList.is-open {
  display: inline-flex !important;
}

/* Reading line guide — hidden unless feature creates/shows the element */
#readingLine {
  display: none;
  position: fixed;
  height: 2px;
  width: 100%;
  background: #0078d4;
  top: 50%;
  left: 0;
  z-index: 10000;
  pointer-events: none;
}

#readingLine.is-active {
  display: block;
}

/* ADHD / Reading Line overlay (CSP-safe SVG) */
#adhd-line-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1000;
  pointer-events: none;
}

#adhd-line-overlay.is-active {
  display: block;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Pause animations / stop media */
body.pause-stop-media * {
  animation: none !important;
  transition: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}

body.pause-stop-media .investment-plan-steps.leadproxytext .cmp-text ol li.active::after {
  display: none;
}

body.pause-stop-media .investment-plan-steps.leadproxytext .cmp-text ol li.active {
  margin: 0;
  color: #333;
  font-weight: 400;
}

body.pause-stop-media .investment-plan-steps.leadproxytext .cmp-text ol li.active::before {
  font-weight: normal;
  color: #0073bb;
  background-color: transparent;
}

body.pause-stop-media img[src$=".gif"],
body.pause-stop-media img[src$=".GIF"],
body.pause-stop-media svg,
body.pause-stop-media [class*="gif"],
body.pause-stop-media [class*="svg"] {
  visibility: hidden !important;
}

body.pause-stop-media a:focus,
body.pause-stop-media button:focus,
body.pause-stop-media input:focus,
body.pause-stop-media select:focus,
body.pause-stop-media textarea:focus,
body.pause-stop-media [tabindex]:focus {
  outline: 3px solid #0073bb !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 1px #0073bb !important;
}
