/* Additional CSS for accessibility features */
/* High contrast mode */
.high-contrast {
    --primary-color: #0000ff;
    --secondary-color: #ff0000;
    --tertiary-color: #008000;
    --background-color: #ffffff;
    --text-color: #000000;
}

.high-contrast header,
.high-contrast footer {
    background-color: #000080;
    color: #ffffff;
}

.high-contrast header h1,
.high-contrast header h2 {
    color: #ffffff;
}

.high-contrast nav {
    background-color: #f0f0f0;
}

.high-contrast nav a {
    color: #000000;
}

.high-contrast nav a.active,
.high-contrast nav a:hover {
    background-color: #0000ff;
    color: #ffffff;
}

.high-contrast .token {
    background-color: #f0f0f0;
    border: 2px solid #0000ff;
}

.high-contrast .nav-button {
    background-color: #0000ff;
    color: #ffffff;
}

.high-contrast .nav-button:hover {
    background-color: #000080;
}

/* Accessibility controls */
.accessibility-controls {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    background-color: #f0f0f0;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.accessibility-controls button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    transition: all 0.3s ease;
}

.accessibility-controls button:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

.icon {
    display: inline-block;
    margin-right: 5px;
}

/* Enhanced focus indicators */
button:focus, 
a:focus, 
input:focus {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 3px;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .accessibility-controls {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        padding: 0.3rem;
    }
    
    nav li {
        margin: 0 0.3rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .prediction-area {
        flex-direction: column;
    }
    
    .quiz-options {
        flex-direction: column;
    }
    
    .quiz-options button {
        margin-bottom: 0.5rem;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0.8rem;
    }
    
    .character {
        flex: 0 0 120px;
    }
}

/* Touch-friendly adjustments */
@media (pointer: coarse) {
    button, 
    a, 
    .training-option {
        min-height: 44px;
        min-width: 44px;
    }
    
    input[type="text"] {
        height: 44px;
    }
    
    nav a {
        padding: 0.8rem 1.2rem;
    }
}
