- Removed unnecessary dependencies (fs, path - built-in modules) - Organized debug files into /debug folder - Reduced excessive console logging for cleaner output - Fixed README formatting issues - Added comprehensive .gitignore - Removed redundant backup files (game.js.new) - Fixed duplicate code patterns in analytics - Created CLEANUP_SUMMARY.md documentation - Regenerated clean package-lock.json No breaking changes - all functionality preserved
928 lines
21 KiB
CSS
928 lines
21 KiB
CSS
/* Modern Spelling App Styles */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
/* Reset and base styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* Modern color palette */
|
|
--primary: #3b82f6;
|
|
--primary-dark: #2563eb;
|
|
--secondary: #f1f5f9;
|
|
--accent: #06b6d4;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--error: #ef4444;
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #64748b;
|
|
--border: #e2e8f0;
|
|
--bg-primary: #ffffff;
|
|
--bg-secondary: #f8fafc;
|
|
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
--radius: 0.75rem;
|
|
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffffff 100%);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
padding: 0;
|
|
margin: 0;
|
|
-webkit-text-size-adjust: 100%;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
/* Container and layout */
|
|
.container {
|
|
width: 100%;
|
|
max-width: 100vw;
|
|
margin: 0 auto;
|
|
padding: clamp(0.5rem, 1vw, 1rem);
|
|
}
|
|
|
|
/* Responsive layout utilities */
|
|
@media (max-width: 768px) {
|
|
.overview-grid {
|
|
grid-template-columns: 1fr !important;
|
|
gap: 1rem !important;
|
|
}
|
|
|
|
.stat-card {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: 1rem !important;
|
|
padding: 1.5rem !important;
|
|
aspect-ratio: auto !important;
|
|
min-height: 120px !important;
|
|
}
|
|
|
|
.container {
|
|
padding: 1rem !important;
|
|
}
|
|
|
|
.card {
|
|
margin: 1rem 0 !important;
|
|
padding: 1.5rem !important;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.overview-grid {
|
|
grid-template-columns: repeat(2, 1fr) !important;
|
|
}
|
|
}
|
|
|
|
/* Typography */
|
|
h1 {
|
|
font-size: clamp(2rem, 6vw, 4rem);
|
|
font-weight: 700;
|
|
text-align: center;
|
|
margin-bottom: clamp(2rem, 4vw, 3rem);
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
h2 {
|
|
font-size: clamp(1.25rem, 4vw, 2rem);
|
|
font-weight: 600;
|
|
margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
h3 {
|
|
font-size: clamp(1rem, 3vw, 1.5rem);
|
|
font-weight: 600;
|
|
margin-bottom: clamp(1rem, 2vw, 1.5rem);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Form elements */
|
|
input, textarea, select {
|
|
width: 100%;
|
|
max-width: min(400px, 90vw);
|
|
padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.875rem, 2.5vw, 1.5rem);
|
|
margin: clamp(0.5rem, 1.5vw, 1rem);
|
|
border: 2px solid var(--border);
|
|
border-radius: clamp(6px, 1.5vw, 12px);
|
|
font-size: clamp(1rem, 2.5vw, 1.25rem);
|
|
font-family: inherit;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
transition: var(--transition);
|
|
min-height: clamp(44px, 8vw, 60px); /* Responsive touch target */
|
|
touch-action: manipulation; /* Prevent zoom on focus */
|
|
}
|
|
|
|
/* Special styling for game input */
|
|
#userInput {
|
|
font-size: 1.5rem;
|
|
max-width: 500px;
|
|
text-align: center;
|
|
background-color: white !important;
|
|
color: var(--text-primary) !important;
|
|
font-weight: 500;
|
|
letter-spacing: 0.5px;
|
|
caret-color: var(--primary);
|
|
min-height: 60px;
|
|
padding: 1.25rem !important;
|
|
border: 3px solid var(--primary) !important;
|
|
border-radius: 12px !important;
|
|
margin: 1.5rem auto !important;
|
|
display: block;
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
|
|
}
|
|
|
|
textarea {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
max-width: 500px;
|
|
}
|
|
|
|
/* Buttons - Global enhanced readability */
|
|
button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: clamp(0.25rem, 1vw, 0.75rem);
|
|
padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2.5rem);
|
|
margin: clamp(0.75rem, 2vw, 1.25rem);
|
|
background: var(--primary);
|
|
color: #ffffff !important;
|
|
border: none;
|
|
border-radius: clamp(8px, 2vw, 16px);
|
|
font-size: clamp(0.875rem, 2.5vw, 1.25rem);
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
box-shadow: var(--shadow);
|
|
text-decoration: none;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
min-height: clamp(44px, 8vw, 60px);
|
|
min-width: clamp(100px, 20vw, 150px);
|
|
touch-action: manipulation;
|
|
user-select: none;
|
|
}
|
|
|
|
button:hover {
|
|
background: var(--primary-dark);
|
|
color: #ffffff !important;
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
/* Button variants with enhanced readability */
|
|
.btn-secondary {
|
|
background: #f1f5f9 !important;
|
|
color: #1e293b !important;
|
|
border: 2px solid #e2e8f0 !important;
|
|
font-weight: 600 !important;
|
|
text-shadow: none !important;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #e2e8f0 !important;
|
|
color: #1e293b !important;
|
|
border-color: #cbd5e1 !important;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #3b82f6 !important;
|
|
color: #ffffff !important;
|
|
border: 2px solid transparent !important;
|
|
font-weight: 700 !important;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
min-height: 44px !important;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #2563eb !important;
|
|
color: #ffffff !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
|
|
}
|
|
|
|
.btn-success {
|
|
background: #10b981 !important;
|
|
color: #ffffff !important;
|
|
border: 2px solid transparent !important;
|
|
font-weight: 700 !important;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
min-height: 44px !important;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: #059669 !important;
|
|
color: #ffffff !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
|
|
}
|
|
|
|
.btn-warning {
|
|
background: #f59e0b !important;
|
|
color: #ffffff !important;
|
|
border: 2px solid transparent !important;
|
|
font-weight: 700 !important;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
min-height: 44px !important;
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
background: #d97706 !important;
|
|
color: #ffffff !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
|
|
}
|
|
|
|
.btn-error {
|
|
background: #ef4444 !important;
|
|
color: #ffffff !important;
|
|
border: 2px solid transparent !important;
|
|
font-weight: 700 !important;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
min-height: 44px !important;
|
|
}
|
|
|
|
.btn-error:hover {
|
|
background: #dc2626 !important;
|
|
color: #ffffff !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
|
|
}
|
|
|
|
/* Additional button contrast fixes */
|
|
#startGameBtn, #startTypingBtn {
|
|
background: var(--success) !important;
|
|
color: white !important;
|
|
border: 2px solid rgba(255, 255, 255, 0.2) !important;
|
|
font-weight: 600 !important;
|
|
min-height: 48px !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
}
|
|
|
|
#startGameBtn:hover, #startTypingBtn:hover {
|
|
background: #059669 !important;
|
|
color: white !important;
|
|
transform: translateY(-2px) !important;
|
|
}
|
|
|
|
/* Typing Practice button specific styling */
|
|
#startTypingBtn {
|
|
background: var(--warning) !important;
|
|
}
|
|
|
|
#startTypingBtn:hover {
|
|
background: #d97706 !important;
|
|
}
|
|
|
|
/* Bible typing button specific styling */
|
|
#startBibleBtn {
|
|
background: var(--primary) !important;
|
|
color: white !important;
|
|
border: 2px solid rgba(255, 255, 255, 0.2) !important;
|
|
font-weight: 600 !important;
|
|
min-height: 60px !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
|
|
}
|
|
|
|
#startBibleBtn:hover {
|
|
background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
|
|
color: white !important;
|
|
transform: translateY(-3px) !important;
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
|
|
}
|
|
|
|
/* Bible typing interface styling with enhanced button readability */
|
|
#bibleSection textarea {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
border: 2px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 1rem;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#bibleSection textarea:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
|
|
outline: none;
|
|
}
|
|
|
|
#verseSelect {
|
|
max-width: 500px !important;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Enhanced Bible typing button styles - Force override all button styling */
|
|
#bibleSection .btn-primary,
|
|
#bibleSection .btn-secondary,
|
|
#bibleFeedback .btn-primary,
|
|
#bibleFeedback .btn-secondary,
|
|
#bibleSection button,
|
|
#bibleFeedback button {
|
|
min-height: 44px !important;
|
|
font-weight: 700 !important;
|
|
font-size: 1rem !important;
|
|
padding: 0.75rem 1.5rem !important;
|
|
border-radius: var(--radius) !important;
|
|
cursor: pointer !important;
|
|
transition: all 0.2s ease !important;
|
|
text-decoration: none !important;
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
gap: 0.5rem !important;
|
|
justify-content: center !important;
|
|
border: none !important;
|
|
outline: none !important;
|
|
}
|
|
|
|
/* Bible section primary buttons (Check Typing, Show Differences) */
|
|
#bibleSection .btn-primary,
|
|
#bibleFeedback .btn-primary {
|
|
background: #10b981 !important;
|
|
color: #ffffff !important;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
|
|
border: 2px solid #10b981 !important;
|
|
}
|
|
|
|
#bibleSection .btn-primary:hover,
|
|
#bibleFeedback .btn-primary:hover {
|
|
background: #059669 !important;
|
|
color: #ffffff !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
|
|
border: 2px solid #059669 !important;
|
|
}
|
|
|
|
/* Bible section secondary buttons (Clear, Random) */
|
|
#bibleSection .btn-secondary,
|
|
#bibleFeedback .btn-secondary {
|
|
background: #f1f5f9 !important;
|
|
color: #1e293b !important;
|
|
border: 2px solid #e2e8f0 !important;
|
|
font-weight: 700 !important;
|
|
text-shadow: none !important;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
|
|
#bibleSection .btn-secondary:hover,
|
|
#bibleFeedback .btn-secondary:hover {
|
|
background: #e2e8f0 !important;
|
|
color: #1e293b !important;
|
|
border: 2px solid #cbd5e1 !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
|
|
}
|
|
|
|
/* Specific component styles */
|
|
#loginPanel {
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
background: var(--bg-primary);
|
|
padding: 2rem;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
/* Admin panel - Full width */
|
|
#adminPanel {
|
|
width: 100%;
|
|
max-width: none;
|
|
}
|
|
|
|
#adminPanel .card {
|
|
width: 100%;
|
|
max-width: none;
|
|
}
|
|
|
|
#loginPanel form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Banner */
|
|
.banner {
|
|
padding: 1rem;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
color: white;
|
|
border-radius: var(--radius);
|
|
margin-bottom: 2rem;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.banner.admin {
|
|
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
|
|
}
|
|
|
|
.banner.student {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
}
|
|
|
|
/* Navigation */
|
|
#nav {
|
|
text-align: center;
|
|
margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
|
|
padding: clamp(1rem, 2vw, 1.5rem);
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* Admin tabs */
|
|
#adminTabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: clamp(0.75rem, 2vw, 1rem);
|
|
margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
|
|
padding: clamp(1rem, 2vw, 1.5rem);
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
#adminTabs button {
|
|
flex: 1;
|
|
min-width: fit-content;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
padding: 0.75rem 1rem;
|
|
transition: var(--transition);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
cursor: pointer;
|
|
margin: 0 2px;
|
|
/* Base styles now controlled in tab-contrast.css */
|
|
}
|
|
|
|
/* Hover styles are now controlled in tab-contrast.css */
|
|
#adminTabs button:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Active state is now controlled in tab-contrast.css */
|
|
#adminTabs button.active {
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
|
|
}
|
|
|
|
.adminTab {
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius);
|
|
padding: 2.5rem;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* Cards - Full width layout */
|
|
.card {
|
|
width: 100%;
|
|
max-width: none;
|
|
margin: 2.5rem 0;
|
|
padding: 3rem;
|
|
background: var(--bg-primary);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* Layout utilities */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.adminTab.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Global section spacing for better breathing room */
|
|
div[id*="Section"],
|
|
div[id*="Panel"],
|
|
div[id*="Tab"],
|
|
#gameArea,
|
|
#spellingGame,
|
|
#results {
|
|
margin: 2.5rem 0;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Game elements */
|
|
#wordBox, .word-box, #typingPrompt {
|
|
font-size: clamp(2.5rem, 8vw, 4rem);
|
|
font-weight: 700;
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
margin: 2rem auto;
|
|
max-width: 700px;
|
|
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--secondary) 100%);
|
|
border: 3px solid var(--primary);
|
|
border-radius: 20px;
|
|
color: var(--primary);
|
|
box-shadow: var(--shadow-lg);
|
|
min-height: 120px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
letter-spacing: 2px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Word feedback styles */
|
|
#wordFeedback {
|
|
font-size: 1.2rem;
|
|
padding: 0.5rem;
|
|
margin-top: 1rem;
|
|
border-radius: var(--radius);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.feedback-correct {
|
|
color: var(--success);
|
|
background-color: rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
.feedback-incorrect {
|
|
color: var(--error);
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
min-height: 120px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.student-controls {
|
|
text-align: center;
|
|
margin: 2rem 0;
|
|
padding: 2rem;
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* Game Summary Styling */
|
|
#summary {
|
|
margin-top: 2rem;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.summary-stats {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
margin: 2rem 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat-item {
|
|
padding: 1rem;
|
|
margin: 0.5rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius);
|
|
min-width: 150px;
|
|
}
|
|
|
|
.stat-item label {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stat-item span {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.incorrect-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 2rem 0;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.incorrect-list li {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0.75rem;
|
|
margin: 0.5rem 0;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.incorrect-list .word {
|
|
font-weight: 600;
|
|
color: var(--success);
|
|
}
|
|
|
|
.incorrect-list .attempt {
|
|
color: var(--error);
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.summary-actions {
|
|
margin-top: 2rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Student controls specific styling */
|
|
.student-controls button {
|
|
min-height: 60px !important;
|
|
font-size: 1.25rem !important;
|
|
font-weight: 600 !important;
|
|
text-shadow: none !important;
|
|
border: 2px solid rgba(255, 255, 255, 0.2) !important;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
|
|
padding: 1.5rem 2rem !important;
|
|
}
|
|
|
|
/* Activity options for tablet */
|
|
.activity-option {
|
|
background: var(--bg-primary) !important;
|
|
border-radius: 16px !important;
|
|
padding: 2rem !important;
|
|
text-align: center !important;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
|
|
transition: all 0.2s ease !important;
|
|
cursor: pointer !important;
|
|
border: 2px solid var(--border) !important;
|
|
min-height: 200px !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
justify-content: space-between !important;
|
|
}
|
|
|
|
.activity-option:hover, .activity-option:active {
|
|
transform: translateY(-4px) !important;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
|
|
border-color: var(--primary) !important;
|
|
}
|
|
|
|
.activity-option h3 {
|
|
font-size: 1.5rem !important;
|
|
margin: 0.5rem 0 !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.activity-option p {
|
|
font-size: 1rem !important;
|
|
color: var(--text-secondary) !important;
|
|
margin-bottom: 1rem !important;
|
|
line-height: 1.4 !important;
|
|
}
|
|
|
|
.student-controls .btn-success {
|
|
background: linear-gradient(135deg, #10b981, #059669) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.student-controls .btn-warning {
|
|
background: linear-gradient(135deg, #f59e0b, #d97706) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.student-controls button:hover {
|
|
transform: translateY(-3px) !important;
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
|
|
}
|
|
|
|
/* Lists */
|
|
ul {
|
|
list-style: none;
|
|
}
|
|
|
|
li {
|
|
padding: 0.75rem 1rem;
|
|
margin: 0.5rem 0;
|
|
background: var(--bg-secondary);
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* Toast notifications */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
background: var(--text-primary);
|
|
color: white;
|
|
padding: 1rem 1.5rem;
|
|
border-radius: var(--radius);
|
|
opacity: 0;
|
|
transform: translateY(100%);
|
|
transition: var(--transition);
|
|
z-index: 1000;
|
|
box-shadow: var(--shadow-lg);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding: 1rem 0.5rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
#adminTabs {
|
|
flex-direction: column;
|
|
}
|
|
|
|
#adminTabs button {
|
|
flex: none;
|
|
}
|
|
|
|
.card, .adminTab, #loginPanel {
|
|
padding: 1rem;
|
|
}
|
|
|
|
#wordBox, .word-box, #typingPrompt {
|
|
font-size: 2rem;
|
|
padding: 2rem 1rem;
|
|
}
|
|
}
|
|
|
|
/* Enhanced Input Visibility Styles */
|
|
.visible-input {
|
|
color: black !important;
|
|
background-color: white !important;
|
|
border: 2px solid #333 !important;
|
|
font-size: 18px !important;
|
|
padding: 12px !important;
|
|
visibility: visible !important;
|
|
opacity: 1 !important;
|
|
text-shadow: none !important;
|
|
-webkit-text-fill-color: black !important;
|
|
display: inline-block !important;
|
|
width: 100% !important;
|
|
max-width: 400px !important;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.2) !important;
|
|
}
|
|
|
|
/* Hide debug tools */
|
|
#debugTools,
|
|
div[id*="debug-"],
|
|
div[class*="debug-"],
|
|
button[id*="debug"],
|
|
[data-debug="true"] {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Tablet and handwriting enhancements */
|
|
/* Input mode toggle styles */
|
|
.input-mode-toggle {
|
|
display: flex !important;
|
|
background: var(--secondary) !important;
|
|
border-radius: 12px !important;
|
|
padding: 0.5rem !important;
|
|
margin: 1.5rem auto !important;
|
|
max-width: 350px !important;
|
|
position: relative !important;
|
|
box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
|
|
}
|
|
|
|
.input-mode-toggle button {
|
|
flex: 1 !important;
|
|
padding: 1rem 1.5rem !important;
|
|
border: none !important;
|
|
background: transparent !important;
|
|
color: var(--text-secondary) !important;
|
|
font-weight: 600 !important;
|
|
border-radius: 8px !important;
|
|
cursor: pointer !important;
|
|
transition: all 0.2s ease !important;
|
|
font-size: 1.125rem !important;
|
|
min-height: 50px !important;
|
|
margin: 0 !important;
|
|
box-shadow: none !important;
|
|
text-shadow: none !important;
|
|
}
|
|
|
|
.input-mode-toggle button.active {
|
|
background: var(--bg-primary) !important;
|
|
color: var(--primary) !important;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
|
|
transform: none !important;
|
|
}
|
|
|
|
.input-mode-toggle button:not(.active):hover {
|
|
color: var(--text-primary) !important;
|
|
background: rgba(255,255,255,0.5) !important;
|
|
}
|
|
|
|
/* Handwriting container styles */
|
|
.handwriting-container {
|
|
background: var(--bg-primary) !important;
|
|
border-radius: 16px !important;
|
|
padding: 2rem !important;
|
|
margin: 2rem auto !important;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
|
|
border: 2px solid var(--border) !important;
|
|
max-width: 700px !important;
|
|
text-align: center !important;
|
|
}
|
|
|
|
.handwriting-container h4 {
|
|
color: var(--text-primary) !important;
|
|
font-size: 1.25rem !important;
|
|
margin-bottom: 1.5rem !important;
|
|
}
|
|
|
|
#handwritingCanvas {
|
|
border: 3px solid var(--primary) !important;
|
|
border-radius: 12px !important;
|
|
background: white !important;
|
|
cursor: crosshair !important;
|
|
display: block !important;
|
|
margin: 1rem auto !important;
|
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
|
touch-action: none !important;
|
|
max-width: 100% !important;
|
|
width: 100% !important;
|
|
max-width: 600px !important;
|
|
height: 250px !important;
|
|
}
|
|
|
|
/* Canvas controls */
|
|
.canvas-controls {
|
|
display: flex !important;
|
|
justify-content: center !important;
|
|
gap: 1rem !important;
|
|
margin: 1rem 0 !important;
|
|
flex-wrap: wrap !important;
|
|
}
|
|
|
|
.canvas-controls button {
|
|
padding: 1rem 2rem !important;
|
|
font-size: 1.125rem !important;
|
|
min-height: 50px !important;
|
|
min-width: 120px !important;
|
|
border-radius: 12px !important;
|
|
font-weight: 600 !important;
|
|
margin: 0.25rem !important;
|
|
}
|
|
|
|
.clear-btn {
|
|
background: var(--error) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.recognize-btn {
|
|
background: var(--success) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.undo-btn {
|
|
background: var(--warning) !important;
|
|
color: white !important;
|
|
}
|