@font-face {
  font-family: 'OpenDyslexic';
  src: url('fonts/otf/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}



#accessibility-toggle {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #0066cc;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    width: 60px;
    height: 60px;
    text-align: center;
}

#accessibility-menu {
    position: fixed;
    bottom: 140px;
    right: 20px;
    background-color: white;
    color: black;
    border: 2px solid #0066cc;
    border-radius: 10px;
    padding: 15px;
    display: none;
    z-index: 9999;
    width: 280px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    font-size: 14px;
}

#accessibility-menu h4 {
    margin-top: 0;
    color: #007bff;
}

.acc-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

button {
    padding: 6px 10px;
    border: none;
    background-color: #0066cc;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    flex-grow: 1;
}

button:hover {
    background-color: #0056b3;
}

select {
    flex-grow: 1;
    padding: 6px;
    border-radius: 6px;
    font-size: 13px;
}

/* Efecte accesibilitate */
.grayscale {
    filter: grayscale(100%);
}

html.dyslexia-font * {
  font-family: 'OpenDyslexic' !important;
}


.high-contrast-1 {
    filter: contrast(120%) brightness(110%);
}

.underline-text * {
    text-decoration: underline !important;
}

.spaced-text * {
    letter-spacing: 2px !important;
}

.cursor-big {
    cursor: url('cursor-big.png') 0 0, auto;
}
