/* Custom styles that complement Tailwind CSS */

/* Hidden utility for sections */
.hidden {
    display: none !important;
}

/* Syllable animations for dyslexia effects */
.syllable {
    display: inline;
    transition: opacity 0.05s ease-in-out;
}

.syllable.syl-hidden {
    opacity: 0;
}

.syllable.syl-visible {
    opacity: 1;
}

/* Reading control buttons */
.control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.15s ease;
}

.control-icon:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.control-icon:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.control-icon.primary {
    background: #2E5B9A;
    border-color: #2E5B9A;
    color: white;
}

.control-icon.primary:hover:not(:disabled) {
    background: #244d85;
    border-color: #244d85;
}

.dark .control-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

.dark .control-icon:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.dark .control-icon.primary {
    background: #2E5B9A;
    border-color: #2E5B9A;
    color: white;
}

.dark .control-icon.primary:hover:not(:disabled) {
    background: #3a6db0;
    border-color: #3a6db0;
}

/* Timer display */
.timer-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Question item styles */
.question-item {
    background: rgb(248, 249, 255);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.dark .question-item {
    background: rgba(16, 22, 34, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.question-text {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Hidden word effects for questions */
.hidden-word {
    background: #cbd5e0;
    color: transparent;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.hidden-word:hover {
    background: #4299e1;
    color: white;
    transform: scale(1.05);
}

.dark .hidden-word {
    background: rgba(203, 213, 224, 0.3);
}

.dark .hidden-word:hover {
    background: #4299e1;
}

/* Options for questions */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.option {
    background: #edf2f7;
    color: transparent;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option:hover {
    background: #bee3f8;
    color: #2d3748;
    border-color: #4299e1;
}

.option.selected {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.option.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.option.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
}

.dark .option {
    background: rgba(237, 242, 247, 0.1);
}

.dark .option:hover {
    background: rgba(190, 227, 248, 0.2);
    color: #e0e0e0;
}

/* Results styling */
.results h3 {
    font-size: 2em;
    color: #38a169;
    margin-bottom: 15px;
}

.dark .results h3 {
    color: #48bb78;
}

.score {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3748;
}

.dark .score {
    color: #e0e0e0;
}