/* @font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Regular.woff2') format('woff2'),
    url('../fonts/OpenDyslexic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
} */

/* Global font size adjustment */
html.large-text body,
html.large-text body p,
html.large-text body li,
html.large-text body label,
html.large-text body input,
html.large-text body select,
html.large-text body textarea,
html.large-text body legend,
html.large-text body code,
html.large-text body pre,
html.large-text body dd,
html.large-text body dt,
html.large-text body span,
html.large-text body blockquote {
    font-size: 125% !important;
    word-spacing: 0.10em !important;
    line-height: 1.5em !important;
}

html.large-text body h1,
html.large-text body h2,
html.large-text body h3,
html.large-text body h4,
html.large-text body h5,
html.large-text body h6,
html.large-text body h1 span,
html.large-text body h2 span,
html.large-text body h3 span,
html.large-text body h4 span,
html.large-text body h5 span,
html.large-text body h6 span {
    font-size: 125% !important;
    word-spacing: 0.20em !important;
    line-height: 1.5em !important;
}

html.large-text #accessibility-panel,
html.large-text #accessibility-panel *,
html.text-spacing #accessibility-panel,
html.text-spacing #accessibility-panel * {
    font-size: 14px !important;
    line-height: 1.2em !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html.large-text #accessibility-panel h3,
html.text-spacing #accessibility-panel h3 {
    font-size: 40px !important;
    line-height: 40px !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html.text-spacing body,
html.text-spacing body * {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

@media (max-width: 500px) {
    html.large-text #accessibility-panel h3,
    html.text-spacing #accessibility-panel h3 {
        font-size: 35px !important;
        line-height: 35px !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
    }
}

html.large-text #accessibility-panel .gradient-text,
html.text-spacing #accessibility-panel .gradient-text {
    font-size: 40px !important;
    line-height: 40px !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html.large-text #accessibility-panel .note p,
html.large-text #accessibility-panel .note a,
html.text-spacing #accessibility-panel .note p,
html.text-spacing #accessibility-panel .note a {
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

@media (max-width: 500px) {
    html.large-text #accessibility-panel .gradient-text,
    html.text-spacing #accessibility-panel .gradient-text {
        font-size: 30px !important;
        line-height: 30px !important;
    }
}

html.dyslexia-font body,
html.dyslexia-font body * {
    font-family: Verdana, sans-serif !important;
}

html.titles-highlight h1,
html.titles-highlight h2,
html.titles-highlight h3,
html.titles-highlight h4,
html.titles-highlight h5,
html.titles-highlight h6 {
    background-color: #d1d1d1 !important;
    color: #1f1f1f !important;
    outline: 2px solid #000000 !important;
}

html.invert-colors {
    filter: invert(1) hue-rotate(180deg);
}

html.grayscale-colors{
    filter: grayscale(100%);
}

html.invert-colors.grayscale-colors {
    filter: invert(1) hue-rotate(180deg) grayscale(1);
}

html.clear-images img:not(#accessibility-panel img) {
    visibility: hidden;
}

html.stop-animations, html.stop-animations * {
    animation: none !important;
    transition: none !important;
}

html.link-highlight a {
    border: 2px solid #d1d1d1 !important;
    background-color: #000000 !important;
    color: white !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

.reading-guide-bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(197, 197, 197, 0.25) !important;
    pointer-events: none;
    border-top: 2px solid black !important;
    border-bottom: 2px solid black !important;
    z-index: 100;
}

@media (pointer: coarse) {
  .reading-guide-bar {
        position: fixed;
        top: 40%;
        transform: translateY(-50%);
  }
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a[target="_blank"] {
    position: relative;
}

a[target="_blank"]::after {
    content: url(images/arrow.svg);
    display: inline-block;
    margin-left: 0.25em;
    font-size: 0.85em;
    line-height: 1;
    vertical-align: middle;
}

a.fusion-button[target="_blank"]::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: middle;
}
