
@import url('https://fonts.googleapis.com/css2?family=OpenDyslexic:wght@400;700&display=swap');

/* Word games styles */
.word-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-weight: bold;
    user-select: none;
}

.word-cell.highlighted {
    background-color: #E9D8FD;
}

.word-cell.correct {
    background-color: #C6F6D5;
}

.word-search-cell {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-weight: bold;
    user-select: none;
}

.word-search-cell.selected {
    background-color: #BEE3F8;
}

.word-search-cell.found {
    background-color: #C6F6D5;
}

.word-badge {
    display: inline-flex;
    align-items: center;
    background-color: #EDF2F7;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.word-badge button {
    margin-left: 0.25rem;
    color: #718096;
    background: none;
    border: none;
    cursor: pointer;
}
/* Dyslexia-friendly font class */
.dyslexia-font {
    font-family: 'OpenDyslexic', sans-serif;
    letter-spacing: 0.1em;
    line-height: 1.8;
}

/* Accessibility settings */
.accessibility-panel {
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.accessibility-panel.open {
    transform: translateX(0);
}

/* Custom scrollbar for better readability */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation for interactive elements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse:hover {
    animation: pulse 1.5s infinite;
}