/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } /* ===== DESIGN SYSTEM VARIABLES - "ONE GUIDE TO RULE THEM ALL" ===== */ :root { /* === COLOR SYSTEM - Balanced Purple Theme === */ --color-primary: #8a2be2; --color-secondary: #da70d6; --color-accent: #ba55d3; --color-success: #28a745; --color-warning: #ffc107; --color-danger: #dc3545; /* === TEXT COLORS === */ --text-primary: #ffffff; /* Main text on dark backgrounds */ --text-secondary: #e0e0e0; /* Secondary/muted text */ --text-tertiary: #b0b0b0; /* Very light text */ --text-muted: #808080; /* Muted text */ --text-inverse: #333333; /* Text on light backgrounds */ /* === BACKGROUND COLORS - Neutral blacks and grays === */ --bg-primary: #0a0a0a; /* Main dark background */ --bg-secondary: #1a1a1a; /* Secondary dark background */ --bg-tertiary: #2a2a2a; /* Cards and containers */ --bg-card: rgba(42, 42, 42, 0.8); /* Translucent cards */ --bg-modal: rgba(26, 26, 26, 0.95); /* Modal backgrounds */ /* === BORDER AND SHADOW === */ --border-color: rgba(255, 255, 255, 0.1); /* Subtle white borders */ --border-accent: rgba(138, 43, 226, 0.3); /* Purple accent borders */ --shadow-primary: 0 4px 12px rgba(0, 0, 0, 0.3); /* Dark shadows */ --glow-primary: 0 0 20px rgba(138, 43, 226, 0.4); /* Purple glow effects */ /* === FONT SIZES === */ --font-xs: 0.75rem; /* 12px - Very small text */ --font-sm: 0.875rem; /* 14px - Small text */ --font-base: 1rem; /* 16px - Base body text */ --font-lg: 1.125rem; /* 18px - Large text */ --font-xl: 1.25rem; /* 20px - Subheadings */ --font-xxl: 1.5rem; /* 24px - Large headings */ --font-xxxl: 2rem; /* 32px - Major headings */ --font-xxxxl: 3rem; /* 48px - Title headings */ /* === SPACING SYSTEM (4px base grid) === */ --space-xs: 0.25rem; /* 4px */ --space-sm: 0.5rem; /* 8px */ --space-base: 1rem; /* 16px */ --space-lg: 1.5rem; /* 24px */ --space-xl: 2rem; /* 32px */ --space-xxl: 3rem; /* 48px */ /* === INTERLUDE SYSTEM (for webcam mirror, focus sessions) === */ --interlude-bg: rgba(42, 42, 42, 0.95); /* Dark overlay background */ --interlude-text-primary: #e0e0e0; /* Primary text in interlude */ --interlude-text-secondary: #b0b0b0; /* Secondary text in interlude */ --interlude-accent: #8a2be2; /* Purple accent color */ --interlude-button-bg: linear-gradient(135deg, #8a2be2, #da70d6); /* Button gradient */ /* === BORDER RADIUS === */ --radius-sm: 4px; /* Small elements */ --radius-md: 8px; /* Cards, buttons */ --radius-lg: 12px; /* Large containers */ /* === SHADOWS === */ --shadow-sm: 0 2px 4px rgba(0,0,0,0.1); --shadow-md: 0 4px 8px rgba(0,0,0,0.15); --shadow-lg: 0 8px 16px rgba(0,0,0,0.2); /* === INTERLUDE SYSTEM (Webcam Mirror, Focus Session, etc.) === */ --interlude-bg: rgba(50, 50, 55, 0.95); /* Dark gray background */ --interlude-border: #8a2be2; /* Purple accent border */ --interlude-text-primary: #e0e0e0; /* Light text for readability */ --interlude-text-secondary: #c0c0c0; /* Secondary text */ --interlude-accent: #8a2be2; /* Purple accent color */ --interlude-accent-hover: #5e35b1; /* Darker purple for hover */ --interlude-button-gradient: linear-gradient(135deg, #8a2be2, #5e35b1); --interlude-shadow: 0 5px 15px rgba(138, 43, 226, 0.2); --interlude-overlay: rgba(0, 0, 0, 0.9); /* Modal overlay background */ } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%); color: var(--text-primary); min-height: 100vh; display: flex; align-items: center; justify-content: center; } .game-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 15px; box-shadow: var(--shadow-primary); width: 95%; max-width: 1400px; /* Increased from 800px for larger screens */ min-width: 780px; /* Ensure minimum usable width */ min-height: 600px; overflow: hidden; margin: 10px auto; /* Center and add some margin */ } /* Header */ .game-header { background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%); color: var(--text-primary); padding: var(--space-xl); text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; } .game-header h1 { font-family: 'Audiowide', cursive; font-size: 8rem; margin: 0 0 var(--space-base) 0; color: var(--color-primary); text-shadow: 0 0 30px rgba(138, 43, 226, 0.7); -webkit-text-stroke: .5px rgb(199, 199, 199); text-stroke: .5px rgb(151, 149, 149); animation: titleGlow 2s ease-in-out infinite alternate; } @keyframes titleGlow { from { filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5)); } to { filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.9)); } } /* Main content area */ .game-content { background: var(--bg-primary); color: var(--text-primary); padding: var(--space-xl); min-height: 400px; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 1; transition: opacity 0.5s ease; } .loading-overlay.hidden { opacity: 0; pointer-events: none; } .loading-content { text-align: center; color: var(--text-primary); } .loading-content h2 { font-family: 'Audiowide', cursive; font-size: var(--font-xxxl); background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: var(--space-lg); animation: titleGlow 2s ease-in-out infinite alternate; } .loading-spinner { width: 60px; height: 60px; border: 4px solid var(--border-color); border-top: 4px solid var(--color-primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto var(--space-lg); } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-status { color: var(--text-secondary); font-size: var(--font-lg); margin-bottom: var(--space-lg); } .loading-progress { width: 300px; height: 8px; background: var(--bg-tertiary); border-radius: 4px; margin: 0 auto var(--space-base); overflow: hidden; } .loading-progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); width: 0%; transition: width 0.3s ease; border-radius: 4px; } .loading-percentage { color: var(--text-primary); font-size: var(--font-lg); font-weight: 600; } .tagline { font-family: 'Audiowide', cursive; font-size: var(--font-xxl); color: var(--color-accent); font-style: italic; margin: 0; opacity: 0.9; } /* Compact Timer (top-right corner) */ .timer-compact { position: absolute; top: 10px; right: 80px; display: flex; align-items: center; gap: var(--space-xs); font-size: 0.9em; background: rgba(0, 0, 0, 0.1); padding: var(--space-xs) var(--space-sm); border-radius: 15px; backdrop-filter: blur(5px); } .timer { font-weight: bold; font-family: 'Courier New', monospace; } .timer-status { font-size: 0.8em; opacity: 0.8; } /* Overall XP Display (top-right corner of header) */ .overall-xp-display { position: absolute; top: 10px; right: 200px; display: flex; align-items: center; gap: var(--space-xs); font-size: 1em; background: rgba(138, 43, 226, 0.2); padding: var(--space-xs) var(--space-sm); border-radius: 15px; backdrop-filter: blur(5px); border: 1px solid var(--color-primary); } .overall-xp-label { font-weight: bold; color: var(--text-secondary); font-size: 0.9em; } .overall-xp-value { font-weight: bold; font-family: 'Courier New', monospace; color: var(--color-primary); text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); } /* Compact Music Controls (expandable on hover) */ .music-controls-compact { position: absolute; top: 10px; right: 20px; } .music-icon-btn { background: rgba(0, 0, 0, 0.1); border: none; color: white; font-size: 1.5em; padding: var(--space-xs); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(5px); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; } .music-icon-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); } /* Expandable Music Panel */ .music-panel-expanded { position: absolute; top: 55px; right: 0; background: var(--bg-modal); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 10px; padding: var(--space-md); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; min-width: 200px; z-index: 1000; } .music-controls-compact:hover .music-panel-expanded { opacity: 1; visibility: visible; transform: translateY(0); } .music-row { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-sm); } .music-row:last-child { margin-bottom: 0; } .music-btn-small { background: #007bff; border: none; color: white; font-size: 1em; padding: var(--space-xs) var(--space-sm); border-radius: 5px; cursor: pointer; transition: all 0.2s ease; min-width: 35px; } .music-btn-small:hover { background: #0056b3; transform: scale(1.05); } .track-dropdown-compact { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 5px; padding: var(--space-xs) var(--space-sm); font-size: 0.9em; width: 100%; cursor: pointer; } .volume-control-compact { display: flex; align-items: center; gap: var(--space-xs); width: 100%; } .volume-icon { font-size: 1em; } .volume-slider-compact { flex: 1; height: 4px; background: #ddd; border-radius: 2px; outline: none; cursor: pointer; } .volume-slider-compact::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; background: #007bff; border-radius: 50%; cursor: pointer; } .volume-percent { font-size: 0.8em; min-width: 30px; text-align: center; } .music-status-compact { text-align: center; font-size: var(--font-xs); color: var(--text-secondary); font-style: italic; } /* Data Management Controls */ .data-controls { display: flex; gap: var(--space-sm); margin: var(--space-sm) 0; flex-wrap: wrap; justify-content: center; } .data-btn, .btn-secondary { background: var(--bg-tertiary); border: 2px solid var(--border-color); color: var(--text-primary); padding: var(--space-lg) var(--space-xxl); border-radius: 8px; cursor: pointer; font-size: var(--font-lg); transition: all 0.3s ease; min-width: 180px; min-height: 50px; } .data-btn:hover, .btn-secondary:hover { background: var(--bg-tertiary); border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--glow-primary); } /* Statistics Modal */ .modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); } .modal-content { background: var(--card-bg); margin: 5% auto; padding: 0; border-radius: 16px; width: 90%; max-width: 800px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); animation: modalSlideIn 0.3s ease; } @keyframes modalSlideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-xl) var(--space-xxl); border-bottom: 2px solid var(--primary-color); background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border-radius: 16px 16px 0 0; } .modal-header h2 { margin: 0; font-size: var(--font-xxl); } .close { font-size: var(--font-xxxl); font-weight: bold; cursor: pointer; opacity: 0.8; transition: opacity 0.3s ease; } .close:hover { opacity: 1; transform: scale(1.1); } .modal-body { padding: var(--space-xxl); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); margin-bottom: var(--space-xxl); } .stat-card { background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: var(--space-xl); text-align: center; transition: all 0.3s ease; } .stat-card:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); } .stat-card h3 { margin: 0 0 var(--space-sm) 0; font-size: var(--font-md); color: var(--text-color); opacity: 0.8; } .stat-value { font-size: var(--font-xxxxl); font-weight: bold; color: var(--primary-color); line-height: 1; } .stats-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; } .btn-warning { background: #ff6b35; border-color: #ff6b35; } .btn-warning:hover { background: #e55a2e; } /* Notification System */ .notification { position: fixed; top: 20px; right: 20px; background: var(--card-bg); border: 2px solid var(--primary-color); color: var(--text-color); padding: var(--space-md) var(--space-lg); border-radius: 8px; font-weight: 500; transform: translateX(400px); opacity: 0; transition: all 0.3s ease; z-index: 1001; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); } .notification.show { transform: translateX(0); opacity: 1; } .notification.success { border-color: #28a745; background: rgba(40, 167, 69, 0.1); } .notification.error { border-color: #dc3545; background: rgba(220, 53, 69, 0.1); } .notification.info { border-color: var(--primary-color); background: rgba(var(--primary-color-rgb), 0.1); } /* Streak Bonus Notification */ .streak-bonus-notification { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); opacity: 0; background: linear-gradient(135deg, #ff6b35, #f7931e); color: white; padding: var(--space-lg); border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4); z-index: 1002; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.2); } .streak-bonus-notification.show { transform: translate(-50%, -50%) scale(1); opacity: 1; } .streak-bonus-content { display: flex; align-items: center; gap: var(--space-md); } .streak-icon { font-size: 2.5em; animation: fireFlicker 1s ease-in-out infinite alternate; } .streak-text { text-align: left; } .streak-title { font-size: 1.2em; font-weight: bold; margin-bottom: var(--space-xs); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .streak-bonus { font-size: 1em; opacity: 0.9; font-weight: 500; } @keyframes fireFlicker { 0% { transform: rotate(-2deg) scale(1); } 100% { transform: rotate(2deg) scale(1.05); } } /* Streak Milestone Styling */ .streak-stat.streak-milestone { background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1)); border-radius: 8px; padding: var(--space-xs) var(--space-sm); border: 1px solid rgba(255, 107, 53, 0.3); animation: streakGlow 2s ease-in-out infinite alternate; } @keyframes streakGlow { 0% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.3); } 100% { box-shadow: 0 0 15px rgba(255, 107, 53, 0.5); } } .audio-bar:nth-child(4) { animation-delay: 0.6s; } .audio-bar:nth-child(5) { animation-delay: 0.8s; } @keyframes audioWave { 0%, 100% { height: 4px; } 50% { height: 16px; } } /* Desktop Application Styles */ .desktop-mode .upload-controls { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); } .desktop-mode .upload-controls .btn { flex: 1; min-width: 180px; } .desktop-only { display: none; } .desktop-mode .desktop-only { display: inline-block; } .desktop-feature { display: none; } .desktop-mode .desktop-feature { display: inline; } .web-feature { display: inline; } .desktop-mode .web-feature { display: none; } /* Enhanced button styling for desktop */ .desktop-mode .btn { padding: var(--space-md) var(--space-xl); font-size: var(--font-sm); font-weight: 500; border-radius: 6px; transition: all 0.2s ease; } .desktop-mode .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .desktop-mode .btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); border: none; color: var(--text-primary); } .desktop-mode .btn-warning { background: linear-gradient(135deg, #ffc107, #e0a800); border: none; color: #212529; } /* Desktop-specific upload section */ .desktop-mode .upload-section h3 { color: var(--primary-color); margin-bottom: var(--space-md); font-size: var(--font-lg); display: flex; align-items: center; gap: var(--space-xs); } .desktop-mode .upload-info { font-size: var(--font-xs); color: var(--text-secondary); font-style: italic; margin-top: var(--space-xs); } /* Responsive design for music controls */ @media (max-width: 768px) { .game-header { flex-direction: column; gap: var(--space-md); } .game-header h1 { font-size: 4rem; } .timer-container { position: static; transform: none; } .music-controls { justify-content: center; gap: var(--space-sm); } .track-dropdown { min-width: 120px; font-size: 0.8em; } .volume-control { padding: var(--space-xs) var(--space-sm); } .volume-slider { width: 60px; } .music-status { display: none; /* Hide on mobile to save space */ } } @media (max-width: 480px) { .music-controls { flex-wrap: wrap; justify-content: center; } .track-dropdown { order: 3; flex-basis: 100%; margin-top: 5px; } } .timer { font-family: 'Courier New', monospace; font-size: 1.5em; font-weight: bold; } .timer-status { font-size: 0.9em; opacity: 0.8; } /* Screen management */ .screen { display: none; padding: var(--space-lg); text-align: center; min-height: 500px; } .screen.active { display: block; } /* Start screen */ #start-screen h2 { color: var(--text-primary); margin-bottom: var(--space-md); } #start-screen p { color: var(--text-secondary); margin-bottom: var(--space-lg); font-size: var(--font-lg); } /* Theme Selector */ .theme-selector { margin-bottom: 25px; } .theme-label { display: block; margin-bottom: var(--space-sm); font-size: var(--font-lg); font-weight: 600; color: var(--text-primary); } .theme-dropdown { padding: var(--space-sm) var(--space-md); font-size: var(--font-base); border: 2px solid #ddd; border-radius: var(--radius-md); background: var(--bg-primary); cursor: pointer; min-width: 200px; transition: border-color 0.3s ease; } .theme-dropdown:hover { border-color: var(--color-primary); } .theme-dropdown:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); } /* Task Management Screen */ #task-management-screen h2 { color: var(--text-primary); margin-bottom: var(--space-xl); } .task-editor-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: var(--space-lg); margin-bottom: var(--space-xl); box-shadow: var(--shadow-primary); } .task-editor-section h3 { color: var(--text-primary); margin-bottom: var(--space-md); font-size: var(--font-lg); } .task-input-group { margin-bottom: var(--space-md); } .task-input-group label { display: block; margin-bottom: var(--space-xs); font-weight: 600; color: var(--text-secondary); } .task-input-group textarea, .task-input-group select { width: 100%; padding: var(--space-sm); border: 2px solid #ddd; border-radius: 6px; font-size: var(--font-md); transition: border-color 0.3s ease; } .task-input-group textarea:focus, .task-input-group select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); } .task-list-section { margin-bottom: 25px; } .task-list-section h3 { color: var(--text-primary); margin-bottom: var(--space-md); font-size: var(--font-lg); } .task-tabs { display: flex; margin-bottom: 15px; border-bottom: 2px solid #ddd; } .tab-btn { padding: var(--space-sm) var(--space-lg); border: none; background: none; cursor: pointer; font-size: var(--font-base); font-weight: 600; color: var(--text-secondary); border-bottom: 3px solid transparent; transition: all 0.3s ease; } .tab-btn.active { color: var(--text-accent); border-bottom-color: var(--text-accent); } .tab-btn:hover { color: #007bff; } .task-list { display: none; max-height: 300px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); } .task-list.active { display: block; } .task-item { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: flex-start; } .task-item:last-child { border-bottom: none; } .task-text-display { flex: 1; margin-right: 15px; line-height: 1.4; } .task-difficulty-display { font-size: 0.85em; color: #666; margin: 5px 15px 5px 0; font-weight: bold; } .task-actions { display: flex; gap: 8px; } .btn-small { padding: var(--space-sm) var(--space-md); font-size: var(--font-sm); min-width: 120px; min-height: 36px; font-weight: 600; } .management-buttons { display: flex; gap: var(--space-lg); justify-content: center; margin-top: var(--space-xl); } /* Enhanced button styling for management screens */ .upload-controls .btn, .gallery-controls .btn, .directory-controls .btn { padding: var(--space-sm) var(--space-lg); font-size: var(--font-sm); min-height: 40px; min-width: 140px; font-weight: 600; border-radius: 8px; transition: all 0.3s ease; margin: var(--space-xs); } .upload-controls .btn:hover, .gallery-controls .btn:hover, .directory-controls .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3); } /* Button color improvements */ .btn-outline { background: transparent; border: 2px solid var(--border-color); color: var(--text-primary); } .btn-outline:hover { background: var(--bg-tertiary); border-color: var(--color-primary); color: var(--color-primary); } .btn-info { background: linear-gradient(135deg, #17a2b8, #138496); color: white; border: none; } .btn-info:hover { background: linear-gradient(135deg, #138496, #117a8b); } /* Directory controls specific styling */ .directory-controls { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-md); padding: var(--space-md); background: var(--bg-tertiary); border-radius: 8px; border: 1px solid var(--border-color); } .directory-controls .btn { margin: 0; /* Remove default margin for tighter control */ } .photo-stats { display: flex; align-items: center; gap: var(--space-md); font-size: var(--font-sm); color: var(--text-secondary); background: var(--bg-secondary); padding: var(--space-sm) var(--space-md); border-radius: 6px; border: 1px solid var(--border-color); } .scan-info { font-size: var(--font-xs); color: var(--text-tertiary); font-style: italic; padding: var(--space-xs) var(--space-sm); background: rgba(138, 43, 226, 0.1); border-radius: 4px; border: 1px solid rgba(138, 43, 226, 0.2); } /* Filter controls styling */ .filter-controls { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; } .filter-controls label { font-size: var(--font-sm); color: var(--text-secondary); display: flex; align-items: center; gap: var(--space-xs); } .filter-select { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; padding: var(--space-xs) var(--space-sm); color: var(--text-primary); font-size: var(--font-sm); min-width: 120px; } .filter-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2); } /* Photo count and storage displays */ #photo-count-display, #storage-size-display { color: var(--text-primary); font-weight: 600; } #image-count { color: var(--color-secondary); font-weight: 600; } /* Enhanced button styling for specific management buttons */ .btn-warning { background: linear-gradient(135deg, #ffc107, #e6ac00); color: #000; border: none; font-weight: 600; } .btn-warning:hover { background: linear-gradient(135deg, #e6ac00, #cc9900); transform: translateY(-2px); } .btn-danger { background: linear-gradient(135deg, #dc3545, #c82333); color: white; border: none; font-weight: 600; } .btn-danger:hover { background: linear-gradient(135deg, #c82333, #bd2130); transform: translateY(-2px); } .btn-secondary { background: linear-gradient(135deg, #6c757d, #5a6268); color: white; border: none; font-weight: 600; } .btn-secondary:hover { background: linear-gradient(135deg, #5a6268, #495057); transform: translateY(-2px); } /* Modal actions styling */ .modal-actions { display: flex; gap: var(--space-lg); justify-content: center; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border-color); } .modal-actions .btn { min-width: 140px; padding: var(--space-md) var(--space-xl); } /* Info displays and labels */ .info-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-color); } .info-item:last-child { border-bottom: none; } .info-label { font-weight: 600; color: var(--text-secondary); } .info-item span:last-child { font-weight: 600; color: var(--color-primary); background: rgba(138, 43, 226, 0.1); padding: var(--space-xs) var(--space-sm); border-radius: 4px; font-size: var(--font-sm); } .empty-list { padding: 40px; text-align: center; color: #666; font-style: italic; } /* Task container */ .task-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 15px; padding: 25px; margin-bottom: 20px; box-shadow: var(--shadow-primary); } .task-type { margin-bottom: 15px; } #task-type-indicator { background: #28a745; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.9em; font-weight: bold; } #task-type-indicator.consequence { background: #dc3545; } .task-image-container { margin-bottom: 20px; display: flex; justify-content: center; align-items: center; min-height: max(200px, 25vh); /* Dynamic minimum height based on viewport */ max-height: 85vh; /* Allow container to take up most of screen */ width: 100%; /* Full width for centering */ } .task-image { /* Hybrid responsive sizing - scales with viewport but has reasonable limits */ max-width: min(90vw, 1200px); /* 90% of viewport width, capped at 1200px */ max-height: min(70vh, 800px); /* 70% of viewport height, capped at 800px */ min-height: max(200px, 20vh); /* Minimum 200px or 20% of viewport height */ min-width: 250px; /* Prevent images from being too narrow */ /* Maintain aspect ratio and image quality */ width: auto; height: auto; object-fit: contain; /* Preserve aspect ratio, fit within bounds */ /* Visual enhancements */ border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; /* Smooth transitions when resizing */ object-fit: cover; } .task-text-container { margin-bottom: 25px; } .task-text { color: var(--text-primary); font-size: var(--font-xl); line-height: 1.4; } /* Task difficulty and points display */ .task-difficulty { background: rgba(255, 255, 255, 0.8); padding: var(--space-sm) var(--space-md); border-radius: 20px; font-size: var(--font-sm); font-weight: bold; margin-bottom: var(--space-md); text-align: center; box-shadow: var(--shadow-sm); } .task-points { background: #ffd700; color: var(--text-primary); padding: var(--space-xs) var(--space-md); border-radius: 15px; font-size: var(--font-xs); font-weight: bold; margin-left: var(--space-sm); box-shadow: var(--shadow-sm); } /* Buttons */ .action-buttons { display: flex; gap: 15px; justify-content: center; margin-bottom: 20px; } .btn { padding: var(--space-xl) var(--space-xxl); border: none; border-radius: var(--radius-md); font-size: var(--font-xl); font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 180px; min-height: 50px; color: var(--text-primary); } .btn:hover { transform: translateY(-2px); box-shadow: var(--glow-primary); } .btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: var(--text-primary); } .btn-primary:hover { background: linear-gradient(135deg, var(--color-secondary), var(--color-accent)); transform: translateY(-2px); } .btn-success { background: var(--color-success); color: var(--text-inverse); } .btn-success:hover { background: var(--color-success); opacity: 0.9; } .btn-warning { background: var(--color-warning); color: var(--text-primary); } .btn-warning:hover { background: var(--color-warning); opacity: 0.9; } .btn-info { background: var(--color-info); color: var(--text-inverse); } .btn-info:hover { background: var(--color-info); opacity: 0.9; } .btn-danger { background: var(--color-danger); color: var(--text-inverse); position: relative; } .btn-danger:hover { background: var(--color-danger); opacity: 0.9; } .btn-danger:disabled { background: #6c757d; color: #ffffff; opacity: 0.65; cursor: not-allowed; } .btn-danger:disabled:hover { background: #6c757d; transform: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } /* Options Menu Styles */ .options-section { margin-top: 20px; position: relative; } .btn-tertiary { background: #6c757d; color: white; margin-bottom: 10px; } .btn-tertiary:hover { background: #545b62; } .options-menu { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: var(--space-xxl); margin-top: var(--space-sm); margin-bottom: var(--space-xl); box-shadow: var(--shadow-primary); } .option-item { margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border-color); } .option-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .option-label { display: block; font-weight: 600; margin-bottom: 8px; color: #495057; } .theme-dropdown { width: 100%; padding: var(--space-sm) var(--space-md); border: 1px solid #ced4da; border-radius: 4px; font-size: var(--font-sm); } .data-controls, .other-controls { display: flex; gap: var(--space-sm); flex-wrap: wrap; } .btn-option { background: #e9ecef; color: #495057; padding: var(--space-sm) var(--space-lg); font-size: 0.9em; min-width: auto; } .btn-option:hover { background: #dee2e6; transform: translateY(-1px); } .main-actions { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; } .main-actions .btn { width: 100%; max-width: 300px; margin: 0 auto; } /* Game Mode Selection */ .game-mode-selection { background: var(--bg-card); border-radius: 10px; padding: var(--space-xl); margin: var(--space-xl) 0; border: 2px solid var(--border-color); } .game-mode-selection h3 { color: var(--text-primary); margin-bottom: 15px; text-align: center; font-size: 1.2em; } .game-mode-options { display: flex; flex-direction: column; gap: 15px; } .game-mode-option { position: relative; } .game-mode-option input[type="radio"] { position: absolute; opacity: 0; cursor: pointer; } .game-mode-option label { display: block; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 8px; padding: var(--space-md); cursor: pointer; transition: all 0.3s ease; position: relative; } .game-mode-option label:hover { border-color: #4facfe; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2); } .game-mode-option input[type="radio"]:checked + label { border-color: #4facfe; background: linear-gradient(135deg, #4facfe22, #00f2fe11); box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3); } .game-mode-option label strong { color: var(--text-primary); font-size: var(--font-md); display: block; margin-bottom: var(--space-xs); } .game-mode-option label p { color: var(--text-secondary); font-size: var(--font-sm); margin: 0; line-height: 1.4; } .mode-config { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; } .mode-config label { font-size: 0.9em; color: #555; font-weight: 500; } .mode-config select { margin-left: var(--space-sm); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-tertiary); color: var(--text-primary); font-size: var(--font-sm); } .custom-time-input, .custom-score-input { margin-left: var(--space-sm); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-tertiary); color: var(--text-primary); font-size: var(--font-sm); width: 80px; display: none; } /* New Game Mode Grid Styles */ .game-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin: 20px 0; } .game-mode-card { background: var(--bg-tertiary); border: 2px solid var(--border-color); border-radius: 12px; padding: var(--space-xl); cursor: pointer; transition: all 0.3s ease; position: relative; display: flex; align-items: center; gap: 15px; min-height: 100px; color: var(--text-primary); } .game-mode-card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: var(--glow-primary); } .game-mode-card.selected { border-color: #4facfe; background: linear-gradient(135deg, #4facfe15, #00f2fe08); box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3); } .game-mode-card input[type="radio"] { position: absolute; opacity: 0; top: 15px; right: 15px; cursor: pointer; } .mode-icon { font-size: 2.5em; flex-shrink: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 50%; transition: all 0.3s ease; color: var(--text-secondary); } .game-mode-card:hover .mode-icon { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: white; transform: scale(1.1); } .game-mode-card.selected .mode-icon { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: white; } .mode-info { flex: 1; } .mode-info h4 { color: var(--text-primary); margin: 0 0 8px 0; font-size: 1.2em; font-weight: 600; } .mode-info p { color: var(--text-secondary); margin: 0; font-size: 0.95em; line-height: 1.4; } /* Mode Options Styles */ .mode-options { margin-top: 20px; } .config-section { background: var(--bg-tertiary); border-radius: 8px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-color); } .config-section h4 { color: var(--text-primary); margin: 0 0 12px 0; font-size: 1em; display: flex; align-items: center; gap: 8px; } .checkbox-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; font-size: 0.9em; color: #495057; } .checkbox-label input[type="checkbox"] { margin: 0; cursor: pointer; } .frequency-control { margin-left: 20px; padding: 10px; background: var(--bg-secondary); border-radius: 6px; border: 1px solid var(--border-color); color: var(--text-primary); } .frequency-control label { display: block; font-size: 0.85em; color: #6c757d; margin-bottom: 5px; } .frequency-control input[type="range"] { width: 100%; margin: 5px 0; } .frequency-control small { font-size: 0.75em; color: #6c757d; font-style: italic; } #frequency-display { font-weight: bold; color: #4facfe; } .custom-time-input:focus, .custom-score-input:focus { border-color: #007bff; outline: none; box-shadow: 0 0 3px rgba(0, 123, 255, 0.3); } .mercy-cost { display: block; font-size: 0.8em; opacity: 0.9; font-weight: bold; } .btn-secondary { background: #6c757d; color: white; } .btn-secondary:hover { background: #545b62; } /* Loading indicator styles */ .btn:disabled { opacity: 0.7; cursor: not-allowed; } .btn:disabled:hover { transform: none; box-shadow: none; } .btn-loading { animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } } /* Game stats */ .game-stats { display: flex; justify-content: space-around; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); padding: 15px; border-radius: 8px; box-shadow: var(--shadow-primary); } .stat { text-align: center; } #score { color: #ffd700; font-weight: bold; font-size: 1.3em; text-shadow: 0 1px 3px rgba(0,0,0,0.3); background: rgba(255, 215, 0, 0.1); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255, 215, 0, 0.3); } .stat-label { display: block; font-size: 0.9em; color: var(--text-secondary); margin-bottom: 5px; } .stat-value { display: block; font-size: 1.5em; font-weight: bold; color: var(--text-primary); } /* Paused screen */ #paused-screen h2 { color: var(--text-primary); margin-bottom: 15px; } #paused-screen p { color: var(--text-secondary); margin-bottom: 25px; } #paused-screen .btn { margin: 0 10px; } /* Game over screen */ #game-over-screen h2 { color: var(--text-primary); margin-bottom: 20px; } .final-stats { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); padding: 20px; border-radius: 8px; margin-bottom: 25px; box-shadow: var(--shadow-primary); } .final-stats p { margin-bottom: 10px; font-size: 1.1em; color: var(--text-primary); } .final-stats span { font-weight: bold; color: var(--color-primary); } /* Responsive design */ @media (max-width: 480px) { .game-container { width: 98%; } .task-image-container { min-height: 250px; } .task-image { max-width: 95%; max-height: 250px; min-height: 200px; } .action-buttons { flex-direction: column; align-items: center; } .btn { width: 200px; } .game-stats { flex-direction: column; gap: 10px; } .timer-container { flex-direction: column; gap: 5px; } .screen { padding: 15px; } } /* THEME SYSTEM */ /* Ocean Theme (Default) - Already defined above */ /* Sunset Theme */ body.theme-sunset { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); } .theme-sunset .game-header { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); } .theme-sunset .btn-primary { background: #ff6b35; } .theme-sunset .btn-primary:hover { background: #e55a2b; } .theme-sunset .btn-success { background: #ff8c00; } .theme-sunset .btn-success:hover { background: #e67e00; } /* Forest Theme */ body.theme-forest { background: linear-gradient(135deg, #134e5e 0%, #71b280 100%); } .theme-forest .game-header { background: linear-gradient(135deg, #2d5016 0%, #a8e6cf 100%); } .theme-forest .btn-primary { background: #2d5016; } .theme-forest .btn-primary:hover { background: #1e3510; } .theme-forest .btn-success { background: #4caf50; } .theme-forest .btn-success:hover { background: #45a049; } /* Midnight Theme */ body.theme-midnight { background: linear-gradient(135deg, #0c0c0c 0%, #434343 100%); } .theme-midnight .game-container { background: #1a1a1a; color: white; } .theme-midnight .game-header { background: linear-gradient(135deg, #000000 0%, #434343 100%); } .theme-midnight .task-container { background: #2a2a2a; color: white; } .theme-midnight .task-text { color: white; } .theme-midnight .game-stats { background: #2a2a2a; } .theme-midnight .btn-primary { background: #6c757d; } .theme-midnight .btn-primary:hover { background: #545b62; } /* Pastel Theme */ body.theme-pastel { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); } .theme-pastel .game-header { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); } .theme-pastel .btn-primary { background: #ff9a9e; } .theme-pastel .btn-primary:hover { background: #ff8a8e; } .theme-pastel .btn-success { background: #a8e6cf; } .theme-pastel .btn-success:hover { background: #98d6bf; } .theme-pastel .btn-warning { background: #ffd3a5; color: #333; } .theme-pastel .btn-warning:hover { background: #ffc385; } /* Neon Theme */ body.theme-neon { background: linear-gradient(135deg, #0f0f0f 0%, #2a0845 100%); } .theme-neon .game-container { background: #1a1a1a; color: #00ff00; border: 2px solid #00ff00; box-shadow: 0 0 30px rgba(0, 255, 0, 0.3); } .theme-neon .game-header { background: linear-gradient(135deg, #000000 0%, #ff006e 100%); border-bottom: 2px solid #00ff00; } .theme-neon .task-container { background: #0a0a0a; color: #00ff00; border: 1px solid #00ff00; } .theme-neon .task-text { color: #00ff00; } .theme-neon .btn-primary { background: #ff006e; border: 2px solid #00ff00; box-shadow: 0 0 10px rgba(255, 0, 110, 0.5); } .theme-neon .btn-success { background: #00ff00; color: black; box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); } /* Autumn Theme */ body.theme-autumn { background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%); } .theme-autumn .game-header { background: linear-gradient(135deg, #cd853f 0%, #a0522d 100%); } .theme-autumn .btn-primary { background: #8b4513; } .theme-autumn .btn-primary:hover { background: #7a3f12; } .theme-autumn .btn-success { background: #daa520; } .theme-autumn .btn-success:hover { background: #b8941b; } .theme-autumn .btn-warning { background: #ff8c00; } .theme-autumn .btn-warning:hover { background: #e67e00; } /* Monochrome Theme */ body.theme-monochrome { background: linear-gradient(135deg, #000000 0%, #434343 100%); } .theme-monochrome .game-container { background: white; border: 3px solid black; } .theme-monochrome .game-header { background: black; border-bottom: 3px solid white; } .theme-monochrome .task-container { background: #f8f8f8; border: 2px solid black; } .theme-monochrome .btn-primary { background: black; color: white; border: 2px solid black; } .theme-monochrome .btn-primary:hover { background: white; color: black; } .theme-monochrome .btn-success { background: white; color: black; border: 2px solid black; } .theme-monochrome .btn-success:hover { background: black; color: white; } /* Help Menu Styles */ .help-section { margin-bottom: 25px; } .help-section h3 { color: #333; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #e9ecef; font-size: 1.1em; } .shortcut-list { display: flex; flex-direction: column; gap: 10px; } .shortcut-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8f9fa; border-radius: 6px; border-left: 4px solid #007bff; } .shortcut-key { background: #343a40; color: white; padding: 4px 12px; border-radius: 4px; font-family: monospace; font-weight: bold; font-size: 0.9em; min-width: 60px; text-align: center; } .shortcut-action { flex: 1; margin-left: 15px; color: #555; font-weight: 500; } .help-tips { background: #e3f2fd; padding: 15px; border-radius: 8px; border-left: 4px solid #2196f3; margin: 0; } .help-tips li { margin-bottom: 8px; color: #1565c0; line-height: 1.4; } .help-tips li:last-child { margin-bottom: 0; } /* Image Management Styles */ .upload-section { background: var(--bg-card); padding: var(--space-xl); border-radius: 12px; margin-bottom: var(--space-xxl); border: 2px dashed var(--border-accent); box-shadow: var(--shadow-primary); } .upload-controls { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; } .upload-info { font-size: var(--font-sm); color: var(--text-secondary); font-style: italic; } .gallery-section { margin-bottom: var(--space-xxl); } .gallery-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); flex-wrap: wrap; gap: var(--space-md); } .gallery-controls { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-md); } .image-count { font-size: var(--font-sm); color: var(--text-secondary); font-weight: 500; } .image-gallery { display: none; /* Hide galleries by default */ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-lg); max-height: 400px; overflow-y: auto; padding: var(--space-md); border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); } .image-gallery.active { display: grid; /* Show active gallery as grid */ } .image-item { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-primary); transition: all 0.3s ease; cursor: pointer; } .image-item:hover { transform: translateY(-2px); box-shadow: var(--glow-primary); border-color: var(--border-accent); } .image-item.selected { border: 3px solid var(--color-primary); transform: scale(0.95); box-shadow: var(--glow-primary); } .image-preview { width: 100%; height: 80px; object-fit: cover; cursor: pointer; } .image-info { padding: var(--space-sm); background: var(--bg-tertiary); } .image-name { font-size: var(--font-xs); color: var(--text-primary); margin-bottom: var(--space-xs); word-break: break-word; } .image-controls { display: flex; justify-content: space-between; align-items: center; } .image-checkbox { margin: 0; } .image-status { font-size: 0.7em; padding: 2px 6px; border-radius: 4px; font-weight: bold; } .image-enabled { background: #d4edda; color: #155724; } .image-disabled { background: #f8d7da; color: #721c24; } .loading, .no-images { text-align: center; padding: var(--space-xxl); color: var(--text-secondary); font-style: italic; } .no-images { background: var(--bg-tertiary); border-radius: 12px; border: 2px dashed var(--border-color); } /* Video Management Styles */ .video-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: minmax(320px, auto); gap: var(--space-lg); padding: var(--space-lg); background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border-color); align-content: start; max-height: 80vh; overflow-y: auto; } /* Custom scrollbar styling for video gallery */ .video-gallery::-webkit-scrollbar { width: 12px; } .video-gallery::-webkit-scrollbar-track { background: #333; border-radius: 6px; } .video-gallery::-webkit-scrollbar-thumb { background: #666; border-radius: 6px; } .video-gallery::-webkit-scrollbar-thumb:hover { background: #888; } .video-gallery.active { display: grid; } .video-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-primary); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; min-height: 320px; } .video-item:hover { transform: translateY(-2px); box-shadow: var(--glow-primary); border-color: var(--border-accent); } .video-item.selected { border: 3px solid var(--color-primary); transform: scale(0.98); box-shadow: var(--glow-primary); } .video-thumbnail { position: relative; width: 100%; height: 140px; overflow: hidden; background: var(--bg-tertiary); border-radius: 8px; } .video-thumbnail video { width: 100%; height: 100%; object-fit: cover; display: block; } .video-info { padding: var(--space-sm); } .video-name { font-weight: 600; font-size: var(--font-sm); color: var(--text-primary); margin-bottom: var(--space-xs); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .video-meta { color: var(--text-tertiary); font-size: var(--font-xs); margin-bottom: var(--space-sm); } .video-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); } .video-actions .btn-small { font-size: var(--font-xs); padding: var(--space-xs) var(--space-sm); } .video-select { margin: 0; } /* Video Tabs */ .video-tabs { display: flex; margin-bottom: var(--space-md); border-bottom: 2px solid #dee2e6; } .video-tabs .tab-btn { flex: 1; padding: var(--space-sm) var(--space-md); border: none; background: #f8f9fa; color: var(--text-secondary); cursor: pointer; font-size: var(--font-sm); font-weight: 500; transition: all 0.2s ease; } .video-tabs .tab-btn:hover { background: #e9ecef; color: var(--text-primary); } .video-tabs .tab-btn.active { background: var(--bg-card); color: var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: translateY(2px); } /* Photo Management Styles */ .photo-gallery { display: none; } .photo-gallery.active { display: block; } .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-lg); padding: var(--space-lg); background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border-color); } .photo-item { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-primary); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; } .photo-item:hover { transform: translateY(-2px); box-shadow: var(--glow-primary); border-color: var(--border-accent); } .photo-item.selected { border: 3px solid var(--color-primary); transform: scale(0.98); box-shadow: var(--glow-primary); } .photo-item img { width: 100%; height: 120px; object-fit: cover; display: block; cursor: pointer; } .photo-item-info { padding: var(--space-sm); background: var(--bg-secondary); color: var(--text-primary); } .photo-item-date { font-weight: 600; font-size: var(--font-sm); color: var(--text-primary); margin-bottom: var(--space-xs); } .photo-item-session { color: var(--text-tertiary); font-size: var(--font-xs); } .selection-checkbox { position: absolute; top: var(--space-xs); left: var(--space-xs); z-index: 2; margin: 0; } /* Photo Tabs */ .photo-tabs { display: flex; margin-bottom: var(--space-md); border-bottom: 2px solid #dee2e6; } .photo-tabs .tab-btn { flex: 1; padding: var(--space-sm) var(--space-md); border: none; background: #f8f9fa; color: var(--text-secondary); cursor: pointer; font-size: var(--font-sm); font-weight: 500; transition: all 0.2s ease; } .photo-tabs .tab-btn:hover { background: #e9ecef; color: var(--text-primary); } .photo-tabs .tab-btn.active { background: var(--bg-card); color: var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: translateY(2px); } /* Audio Management Styles */ .audio-tabs { display: flex; margin-bottom: var(--space-lg); border-bottom: 2px solid var(--border-color); border-radius: 8px 8px 0 0; overflow: hidden; } .audio-tabs .tab-btn { flex: 1; padding: var(--space-md) var(--space-lg); border: none; background: var(--bg-tertiary); color: var(--text-secondary); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s ease; font-weight: 600; } .audio-tabs .tab-btn:hover { background: var(--bg-card); color: var(--text-primary); } .audio-tabs .tab-btn.active { background: var(--bg-card); color: var(--color-primary); border-bottom-color: var(--color-primary); } .audio-count { font-size: var(--font-sm); color: var(--text-secondary); font-weight: 500; } .audio-gallery { display: none; /* Hide galleries by default */ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); max-height: 400px; overflow-y: auto; padding: var(--space-lg); border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); } .audio-gallery.active { display: grid; /* Show active gallery as grid */ } .audio-item { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-primary); transition: all 0.3s ease; padding: var(--space-lg); } .audio-item:hover { transform: translateY(-2px); box-shadow: var(--glow-primary); border-color: var(--border-accent); } .audio-item.selected { border: 3px solid var(--color-primary); transform: scale(0.98); background: var(--bg-tertiary); box-shadow: var(--glow-primary); } .audio-icon { font-size: 2.5em; text-align: center; margin-bottom: var(--space-sm); color: var(--color-primary); } .audio-title { font-size: var(--font-sm); color: var(--text-primary); margin-bottom: var(--space-sm); font-weight: 600; word-break: break-word; text-align: center; } .audio-filename { font-size: var(--font-xs); color: var(--text-secondary); margin-bottom: var(--space-sm); text-align: center; word-break: break-word; } .audio-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } .audio-preview-btn { background: #28a745; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.8em; transition: background 0.3s ease; } .audio-preview-btn:hover { background: #218838; } .audio-checkbox { margin: 0; } .audio-status { font-size: 0.7em; padding: 2px 6px; border-radius: 4px; font-weight: bold; } .audio-enabled { background: #d4edda; color: #155724; } .audio-disabled { background: #f8d7da; color: #721c24; } .audio-preview-section { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin: 20px 0; } .audio-preview-section h4 { margin-bottom: 15px; color: #333; } .preview-controls { display: flex; flex-direction: column; gap: 10px; } .preview-info { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } .preview-info span { font-size: 0.9em; color: #6c757d; font-weight: 500; } .no-audio { text-align: center; padding: 40px; color: var(--text-secondary); font-style: italic; background: var(--bg-card); border-radius: 8px; border: 2px dashed var(--border-color); } /* Audio category icons */ .audio-item[data-category="background"] .audio-icon::before { content: "🎵"; } .audio-item[data-category="ambient"] .audio-icon::before { content: "🌿"; } .audio-item[data-category="effects"] .audio-icon::before { content: "🔊"; } /* =========================== RESPONSIVE DESIGN ENHANCEMENTS =========================== */ /* Large screens - take advantage of extra space */ @media (min-width: 1200px) { .game-container { width: 90%; max-width: 1400px; } .game-header h1 { font-size: 6rem; } /* Make better use of horizontal space */ .main-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 20px; } .main-actions .btn { width: auto; min-width: 200px; max-width: 250px; margin: 0; } /* Multi-column layouts for management screens */ .image-gallery, .audio-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); } /* Game mode selection in columns */ .game-mode-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } } /* Medium screens - balanced layout */ @media (min-width: 900px) and (max-width: 1199px) { .game-container { width: 95%; } .main-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; } .main-actions .btn { width: auto; min-width: 180px; max-width: 220px; margin: 0; } } /* Small screens - compact layout */ @media (max-width: 899px) { .game-container { width: 98%; margin: 5px auto; border-radius: 10px; min-width: 760px; /* Ensure minimum usability */ } .game-header { padding: 15px; } .game-header h1 { font-size: 3.5rem; } .main-actions { flex-direction: column; gap: 12px; } .main-actions .btn { width: 100%; max-width: 280px; } /* Compact game mode selection */ .game-mode-selection { padding: 15px; } .game-mode-option label { padding: 12px; } /* Adjust image and audio galleries */ .image-gallery, .audio-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-sm); } } /* Handle very wide screens */ @media (min-width: 1600px) { .game-container { max-width: 1600px; } .game-content { padding: 30px; } /* Use more columns for galleries on wide screens */ .image-gallery, .audio-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } } /* Ensure game screen task display scales well */ @media (min-width: 1400px) { .task-display { max-width: 900px; margin: 0 auto; } .task-image { max-height: min(75vh, 900px); /* Much larger images on very large screens */ max-width: min(85vw, 1400px); /* Can be much wider on large screens */ } .task-image-container { min-height: max(300px, 35vh); /* Taller container for larger images */ } } @media (min-width: 1000px) and (max-width: 1399px) { .task-display { max-width: 700px; margin: 0 auto; } .task-image { max-height: min(65vh, 700px); /* Bigger images for medium-large screens */ max-width: min(88vw, 1000px); /* More width utilization */ } } /* Compact sizing for smaller windows */ @media (max-width: 999px) { .task-image { max-height: min(55vh, 500px); /* Still quite large on compact screens */ max-width: min(92vw, 600px); /* Take up most of the width */ min-height: max(180px, 18vh); /* Smaller minimum height */ } .task-image-container { min-height: max(180px, 20vh); /* Compact container */ margin-bottom: 15px; } } /* Very small windows - still allow decent image size */ @media (max-width: 800px) { .task-image { max-height: min(50vh, 400px); /* Half the viewport height on small windows */ max-width: min(95vw, 500px); /* Nearly full width */ min-height: max(150px, 15vh); /* Smaller minimum */ min-width: 200px; /* Smaller minimum width */ } .task-image-container { min-height: max(150px, 18vh); margin-bottom: 10px; } } /* High DPI / Retina display adjustments */ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) { .game-container { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); } .btn { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } } /* =========================== DYNAMIC WINDOW SIZE CLASSES =========================== */ /* Extra fine-tuning based on JavaScript window size detection */ .game-container.window-xl .task-image { max-width: min(85vw, 1500px); /* Huge images on ultra-wide screens */ max-height: min(80vh, 1000px); /* Take up most of the vertical space */ min-height: max(400px, 30vh); /* Large minimum size */ } .game-container.window-large .task-image { max-width: min(88vw, 1200px); /* Very large images */ max-height: min(75vh, 800px); /* Most of the screen height */ min-height: max(300px, 25vh); /* Good minimum size */ } .game-container.window-medium .task-image { max-width: min(90vw, 800px); /* Large images on medium screens */ max-height: min(65vh, 600px); /* Good portion of screen height */ min-height: max(250px, 22vh); /* Reasonable minimum */ } .game-container.window-small .task-image { max-width: min(95vw, 500px); /* Nearly full width on small screens */ max-height: min(55vh, 400px); /* More than half the screen height */ min-height: max(200px, 20vh); /* Decent minimum size */ min-width: 180px; } /* Smooth transitions between window size changes */ .task-image { transition: max-width 0.3s ease, max-height 0.3s ease, min-height 0.3s ease; } .task-image-container { transition: min-height 0.3s ease; } /* =========================== FLASH MESSAGE SYSTEM =========================== */ /* Flash message overlay */ .flash-message-overlay { position: fixed; display: none; pointer-events: none; /* Don't block clicks */ font-family: 'Arial', sans-serif; user-select: none; /* Prevent text selection */ opacity: 0; transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; } /* Flash message animations */ @keyframes flashBounceIn { 0% { opacity: 0; transform: scale(0.3) translate(-50%, -50%); } 50% { opacity: 1; transform: scale(1.05) translate(-50%, -50%); } 70% { transform: scale(0.9) translate(-50%, -50%); } 100% { opacity: 1; transform: scale(1) translate(-50%, -50%); } } @keyframes flashPulseIn { 0% { opacity: 0; transform: scale(1) translate(-50%, -50%); } 20% { opacity: 0.8; transform: scale(1.1) translate(-50%, -50%); } 40% { opacity: 1; transform: scale(0.95) translate(-50%, -50%); } 60% { opacity: 1; transform: scale(1.05) translate(-50%, -50%); } 80% { opacity: 1; transform: scale(0.98) translate(-50%, -50%); } 100% { opacity: 1; transform: scale(1) translate(-50%, -50%); } } @keyframes flashFadeOut { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.95); } } /* Flash message responsive styles */ @media (max-width: 768px) { .flash-message-overlay { max-width: 90% !important; padding: 15px 20px !important; font-size: 18px !important; } } @media (max-width: 480px) { .flash-message-overlay { max-width: 95% !important; padding: 12px 16px !important; font-size: 16px !important; border-radius: 10px !important; } } /* =========================== ANNOYANCE MANAGEMENT SCREEN =========================== */ /* Tab Navigation */ .annoyance-tabs { display: flex; gap: 2px; margin-bottom: 20px; background: #e9ecef; border-radius: 8px; padding: 4px; } .annoyance-tab { flex: 1; background: transparent; border: none; padding: 12px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; color: #666; } .annoyance-tab:hover { background: #dee2e6; color: #333; } .annoyance-tab.active { background: #007bff; color: white; box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3); } /* Tab Content */ .annoyance-tab-content { display: none; } .annoyance-tab-content.active { display: block; animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Section Styling */ .annoyance-section { background: #f8f9fa; border-radius: 10px; padding: 20px; margin-bottom: 20px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; } .header-controls { display: flex; align-items: center; gap: 15px; } /* Message Editor */ .message-editor { background: white; border: 2px solid #007bff; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1); } .editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e9ecef; } .editor-header h4 { margin: 0; color: #007bff; } .editor-form { display: flex; flex-direction: column; gap: 15px; } .form-group { display: flex; flex-direction: column; gap: var(--space-xs); } .form-group label { font-weight: 600; color: var(--text-primary); } .form-group textarea { padding: var(--space-sm); border: 2px solid #ddd; border-radius: 6px; font-size: var(--font-sm); resize: vertical; min-height: 80px; transition: border-color 0.2s; } .form-group textarea:focus { border-color: var(--color-primary); outline: none; } .form-group select { padding: var(--space-sm) var(--space-md); border: 2px solid #ddd; border-radius: 6px; background: white; font-size: var(--font-sm); cursor: pointer; transition: border-color 0.2s; } .form-group select:focus { border-color: var(--color-primary); outline: none; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); } .char-counter { font-size: var(--font-xs); color: #666; text-align: right; } .char-counter.warning { color: #ffc107; } .char-counter.error { color: #dc3545; } .editor-actions { display: flex; gap: 10px; justify-content: flex-start; } /* Message List */ .message-list-section { background: white; border-radius: 8px; overflow: hidden; } .list-header { background: #f8f9fa; padding: var(--space-md) var(--space-xl); border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); } .list-filters { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; } .list-filters label { font-size: 14px; color: #666; display: flex; align-items: center; gap: var(--space-xs); } .list-filters select { padding: var(--space-xs) var(--space-sm); border: 1px solid #ddd; border-radius: 4px; background: white; font-size: 13px; } .list-stats { font-size: 14px; color: #666; font-weight: 500; } .message-list { max-height: 400px; overflow-y: auto; } .message-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f1f3f4; transition: background-color 0.2s; } .message-item:hover { background-color: #f8f9fa; } .message-item.disabled { opacity: 0.6; background-color: #f8f9fa; } .message-content { flex: 1; display: flex; flex-direction: column; gap: 5px; } .message-text { font-size: 14px; color: #333; line-height: 1.4; } .message-meta { display: flex; gap: 15px; font-size: 12px; color: #666; } .message-category { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; background: #e9ecef; border-radius: 12px; font-size: 11px; font-weight: 500; } .message-category.motivational { background: #d4edda; color: #155724; } .message-category.encouraging { background: #d1ecf1; color: #0c5460; } .message-category.achievement { background: #fff3cd; color: #856404; } .message-category.persistence { background: #f8d7da; color: #721c24; } .message-category.custom { background: #e2e3e5; color: #383d41; } .message-actions { display: flex; gap: 8px; align-items: center; } .message-toggle { width: 40px; height: 20px; background: #ccc; border-radius: 10px; position: relative; cursor: pointer; transition: background-color 0.3s; } .message-toggle.enabled { background: #28a745; } .message-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: transform 0.3s; } .message-toggle.enabled::after { transform: translateX(20px); } /* Control Layouts */ .control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .control-group { display: flex; flex-direction: column; gap: var(--space-sm); } .control-group label { font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-sm); } .control-group input[type="range"] { width: 100%; height: 6px; border-radius: 3px; background: #ddd; outline: none; opacity: 0.7; transition: opacity 0.2s; cursor: pointer; } .control-group input[type="range"]:hover { opacity: 1; } .control-group input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #007bff; cursor: pointer; transition: background 0.2s; } .control-group input[type="range"]::-webkit-slider-thumb:hover { background: #0056b3; } /* Focus video player volume slider override */ .focus-volume-slider { width: 60px !important; max-width: 60px !important; min-width: 60px !important; height: 3px !important; background: #666 !important; } /* Performance optimizations for large video galleries */ .video-galleries-container { height: 60vh; max-height: 800px; overflow-y: auto; overflow-x: hidden; } #unified-video-gallery { height: 60vh; max-height: 800px; } .video-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; padding: 15px; } .video-item { transform: translateZ(0); /* Force hardware acceleration */ will-change: transform; /* Hint to browser for optimization */ contain: layout style paint; /* CSS containment for better performance */ } .lazy-thumbnail { background: #2a2a2a; border-radius: 4px; } .thumbnail-placeholder { font-size: 24px; transition: opacity 0.3s ease; } /* Virtual scrolling optimization */ .video-gallery.active { contain: strict; /* Strict containment for performance */ } .control-group input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; } .control-group input[type="color"] { width: 60px; height: 40px; border: 2px solid #ddd; border-radius: 6px; cursor: pointer; transition: border-color 0.2s; } .control-group input[type="color"]:focus { border-color: #007bff; outline: none; } .help-text { font-size: var(--font-xs); color: #666; font-style: italic; margin-top: 2px; } .help-text.danger { color: #dc3545; } /* Import/Export Sections */ .control-section { background: var(--bg-tertiary); border-radius: 12px; padding: var(--space-xl); margin-bottom: var(--space-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-primary); } .control-section h4 { margin: 0 0 var(--space-md) 0; color: var(--text-primary); font-size: var(--font-lg); font-weight: 600; } .export-options, .import-options, .reset-options { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-lg); } /* Enhanced button styling for modal actions */ .export-options .btn, .import-options .btn, .reset-options .btn { padding: var(--space-md) var(--space-xl); font-size: var(--font-base); min-width: 140px; min-height: 44px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; } .export-options .btn:hover, .import-options .btn:hover, .reset-options .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3); } .import-mode { margin-top: var(--space-md); padding: var(--space-md); background: rgba(138, 43, 226, 0.1); border-radius: 8px; border: 1px solid var(--border-accent); } .radio-group { display: flex; gap: var(--space-lg); margin-top: var(--space-sm); } .radio-group label { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--font-sm); color: var(--text-primary); cursor: pointer; padding: var(--space-sm); border-radius: 6px; transition: background-color 0.3s ease; } .radio-group label:hover { background: rgba(138, 43, 226, 0.1); } .radio-group input[type="radio"] { width: 16px; height: 16px; accent-color: var(--color-primary); } /* Responsive Design */ @media (max-width: 768px) { .annoyance-tabs { flex-direction: column; } .section-header { flex-direction: column; align-items: flex-start; gap: 10px; } .form-row, .control-row { grid-template-columns: 1fr; gap: 10px; } .list-header { flex-direction: column; align-items: flex-start; } .message-item { flex-direction: column; align-items: flex-start; gap: 10px; } .message-actions { align-self: stretch; justify-content: space-between; } .export-options, .import-options, .reset-options { flex-direction: column; } .annoyance-section { padding: 15px; } } /* ====================================== Punishment Popup System Styles ====================================== */ /* Background blur for punishment popups */ .punishment-popup-blur { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(3px); z-index: 9999; pointer-events: none; } /* Individual punishment popup */ .punishment-popup { position: fixed; z-index: 10000; background: white; border: 3px solid #dc3545; border-radius: 10px; box-shadow: 0 8px 32px rgba(220, 53, 69, 0.4); overflow: hidden; display: flex; flex-direction: column; font-family: var(--font-family); min-width: 200px; min-height: 150px; max-width: 500px; max-height: 400px; } /* Popup header with timer and title */ .punishment-popup-header { background: #dc3545; color: white; padding: 8px 12px; font-size: 12px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; user-select: none; } .punishment-popup-timer { background: rgba(255, 255, 255, 0.2); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 11px; min-width: 30px; text-align: center; } /* Image container within popup */ .punishment-popup img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; } /* Popup Images Tab specific styles */ .range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-sm); } .range-inputs > div { display: flex; flex-direction: column; gap: var(--space-xs); } .range-inputs input[type="number"] { padding: var(--space-md); border: 1px solid var(--border-color); border-radius: 8px; font-size: var(--font-base); background: var(--bg-tertiary); color: var(--text-primary); min-height: 40px; transition: all 0.3s ease; } .range-inputs input[type="number"]:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 8px rgba(138, 43, 226, 0.3); } /* Enhanced input styling for better comfort */ input[type="number"], input[type="text"], select { padding: var(--space-md); border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-tertiary); color: var(--text-primary); font-size: var(--font-base); min-height: 40px; transition: all 0.3s ease; } input[type="number"]:focus, input[type="text"]:focus, select:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 8px rgba(138, 43, 226, 0.3); color: var(--text-primary); } .range-inputs input[type="number"]:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); } .warning-text { background: #fff3cd; color: #856404; padding: var(--space-sm); border: 1px solid #ffeaa7; border-radius: 5px; margin-top: var(--space-sm); font-size: var(--font-sm); font-weight: 500; } .test-buttons { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-sm); } .test-buttons .btn { flex: 1; min-width: 120px; padding: var(--space-sm) var(--space-md); font-size: var(--font-sm); font-weight: 500; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; text-align: center; } .test-buttons .btn-info { background: #17a2b8; color: white; } .test-buttons .btn-info:hover { background: #138496; transform: translateY(-1px); } .test-buttons .btn-primary { background: #007bff; color: white; } .test-buttons .btn-primary:hover { background: #0056b3; transform: translateY(-1px); } .test-buttons .btn-danger { background: #dc3545; color: white; } .test-buttons .btn-danger:hover { background: #c82333; transform: translateY(-1px); } .info-display { background: var(--bg-card); padding: 15px; border-radius: 8px; border-left: 4px solid var(--color-primary); border: 1px solid var(--border-color); margin-top: 10px; box-shadow: var(--shadow-primary); } .info-item { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); } .info-item:last-child { border-bottom: none; } .info-label { font-weight: 500; color: #495057; } .info-item span:last-child { font-weight: bold; color: #007bff; background: rgba(0, 123, 255, 0.1); padding: 2px 8px; border-radius: 12px; font-size: 12px; min-width: 30px; text-align: center; } /* Responsive styles for popup images tab */ @media (max-width: 768px) { .range-inputs { grid-template-columns: 1fr; gap: 10px; } .test-buttons { flex-direction: column; } .test-buttons .btn { min-width: 100%; } .punishment-popup { max-width: 90vw; max-height: 80vh; } .info-item { flex-direction: column; align-items: flex-start; gap: 5px; } .info-item span:last-child { align-self: flex-end; } } /* Animation for popup appearance */ @keyframes popupFadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } } @keyframes popupFadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.9); } } .punishment-popup { animation: popupFadeIn 0.3s ease-out; } .punishment-popup.fade-out { animation: popupFadeOut 0.3s ease-in; } /* ====================================== AI Tasks Tab Styles ====================================== */ .ai-status-display { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; border-left: 4px solid #17a2b8; } .status-item { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); } .status-item:last-child { border-bottom: none; } .status-label { font-weight: 500; color: #495057; } .status-value { font-weight: bold; padding: 2px 8px; border-radius: 12px; font-size: 12px; background: rgba(23, 162, 184, 0.1); color: #17a2b8; } .status-value.connected { background: rgba(40, 167, 69, 0.1); color: #28a745; } .status-value.disconnected { background: rgba(220, 53, 69, 0.1); color: #dc3545; } .ai-test-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; } .ai-test-buttons .btn { flex: 1; min-width: 120px; padding: 10px 15px; font-size: 14px; font-weight: 500; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; } .task-preview { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; min-height: 100px; max-height: 200px; overflow-y: auto; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; line-height: 1.5; color: #495057; white-space: pre-wrap; margin-top: 10px; } .task-preview.generating { background: #fff3cd; color: #856404; display: flex; align-items: center; justify-content: center; } .task-preview.error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; } .help-content { background: #e7f3ff; padding: 15px; border-radius: 8px; border-left: 4px solid #007bff; } .help-content ol { margin: 10px 0; padding-left: 20px; } .help-content ul { margin: 5px 0; padding-left: 20px; } .help-content code { background: rgba(0, 0, 0, 0.1); padding: 2px 5px; border-radius: 3px; font-family: 'Courier New', monospace; font-size: 12px; } .help-content a { color: #007bff; text-decoration: none; } .help-content a:hover { text-decoration: underline; } /* Responsive styles for AI tab */ @media (max-width: 768px) { .ai-test-buttons { flex-direction: column; } .ai-test-buttons .btn { min-width: 100%; } .status-item { flex-direction: column; align-items: flex-start; gap: 5px; } .status-value { align-self: flex-end; } } /* Audio Controls Styling */ .audio-controls { border-top: 1px solid var(--border-color); padding-top: var(--space-md); margin-top: var(--space-md); } .audio-control-header { margin-bottom: var(--space-md); } .audio-control-group { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); } .audio-control { display: flex; align-items: center; gap: var(--space-sm); font-size: 12px; } .audio-control label { min-width: 100px; font-weight: 500; } .volume-slider { flex: 1; height: 4px; background: var(--border-color); border-radius: 2px; outline: none; -webkit-appearance: none; } .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: var(--primary-color); border-radius: 50%; cursor: pointer; transition: transform 0.2s; } .volume-slider::-webkit-slider-thumb:hover { transform: scale(1.1); } .volume-slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--primary-color); border-radius: 50%; cursor: pointer; border: none; } .audio-control span { min-width: 35px; text-align: right; font-weight: 500; color: var(--primary-color); } .btn-mini { padding: 2px 6px; font-size: 10px; min-width: 24px; height: 20px; line-height: 1; } .btn-danger { background-color: #dc3545; color: white; border-color: #dc3545; } .btn-danger:hover { background-color: #c82333; border-color: #bd2130; } .debug-controls { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color-light); } .debug-controls .option-label { color: #ff6b6b; font-weight: bold; } .audio-toggles { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--border-color-light); } .audio-toggles label { display: flex; align-items: center; gap: 6px; font-size: 11px; cursor: pointer; } .audio-toggles input[type="checkbox"] { margin: 0; } /* ===== INTERACTIVE TASK STYLES ===== */ /* Interactive Task Container */ .interactive-task-container { margin: 20px 0; padding: 20px; background: var(--bg-card); border-radius: 12px; border: 2px solid var(--border-color); color: var(--text-primary); box-shadow: var(--shadow-primary); } .interactive-controls { margin-top: 15px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .interactive-feedback { margin-top: 15px; padding: 12px; border-radius: 8px; text-align: center; font-weight: bold; display: none; animation: feedback-slide-in 0.3s ease-out; } @keyframes feedback-slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .feedback-success { background: rgba(40, 167, 69, 0.9); color: white; } .feedback-error { background: rgba(220, 53, 69, 0.9); color: white; } .feedback-warning { background: rgba(255, 193, 7, 0.9); color: #856404; } .feedback-info { background: rgba(23, 162, 184, 0.9); color: white; } /* ===== RHYTHM TASK STYLES ===== */ .rhythm-task { text-align: center; } .rhythm-task h4 { color: rgba(255, 255, 255, 0.9); margin-bottom: 10px; } .rhythm-task p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; } .rhythm-display { margin: 20px 0; } .beat-indicator { width: 100px; height: 100px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.1s ease; border: 3px solid rgba(255, 255, 255, 0.5); } .beat-indicator.beat-flash { background: rgba(255, 107, 107, 0.8); transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); border-color: rgba(255, 107, 107, 0.9); } .rhythm-progress { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; overflow: hidden; margin-bottom: 20px; } .progress-bar { height: 100%; background: linear-gradient(90deg, #ff6b6b, #ee5a24); width: 0%; transition: width 0.2s ease; } .rhythm-tap-btn { width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); border: 3px solid rgba(255, 255, 255, 0.3); color: white; font-size: 20px; font-weight: bold; cursor: pointer; transition: all 0.1s ease; margin: 20px 0; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); } .rhythm-tap-btn:hover { background: linear-gradient(135deg, #764ba2, #667eea); transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); } .rhythm-tap-btn:active, .rhythm-tap-btn.tapped { background: linear-gradient(135deg, #ff6b6b, #ee5a24); transform: scale(0.95); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .rhythm-stats { display: flex; justify-content: space-around; margin-top: 15px; font-size: 16px; font-weight: bold; } .rhythm-stats span { color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.1); padding: 8px 12px; border-radius: 6px; } /* ===== SCENARIO BUILDER STYLES ===== */ .scenario-task { text-align: left; max-width: 100%; } .scenario-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border-color); box-shadow: var(--shadow-primary); } .scenario-header h4 { color: var(--text-primary); margin: 0; font-size: 18px; } .scenario-progress { color: var(--text-secondary); font-size: 14px; background: var(--bg-tertiary); padding: 5px 10px; border-radius: 12px; } .scenario-content { margin-bottom: 20px; } .scenario-story { margin-bottom: 20px; } .story-text { background: var(--bg-secondary); padding: 20px; border-radius: 10px; border-left: 4px solid var(--color-primary); color: var(--text-primary); line-height: 1.6; font-size: 16px; } .story-text.seductive { border-left-color: #ff6b6b; background: rgba(255, 107, 107, 0.1); } .story-text.intense { border-left-color: #ee5a24; background: rgba(238, 90, 36, 0.1); } .story-text.playful { border-left-color: #667eea; background: rgba(102, 126, 234, 0.1); } .story-text.dominant { border-left-color: #764ba2; background: rgba(118, 75, 162, 0.1); } .scenario-choices { display: flex; flex-direction: column; gap: 12px; } .scenario-choice { background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 10px; padding: 15px; color: var(--text-primary); cursor: pointer; transition: all 0.3s ease; text-align: left; min-height: auto; width: 100%; box-shadow: var(--shadow-primary); } .scenario-choice:hover:not(.disabled) { background: var(--bg-tertiary); border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--glow-primary); } .scenario-choice.disabled { opacity: 0.5; cursor: not-allowed; background: var(--bg-secondary); } .scenario-choice.submissive { border-color: rgba(255, 107, 107, 0.5); background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1)); } .scenario-choice.dominant { border-color: rgba(118, 75, 162, 0.5); background: linear-gradient(135deg, rgba(118, 75, 162, 0.2), rgba(118, 75, 162, 0.1)); } .scenario-choice.risky { border-color: rgba(238, 90, 36, 0.5); background: linear-gradient(135deg, rgba(238, 90, 36, 0.2), rgba(238, 90, 36, 0.1)); } .choice-text { font-size: var(--font-md); font-weight: bold; margin-bottom: var(--space-xs); color: var(--text-primary); } .choice-preview { font-size: var(--font-sm); color: var(--text-secondary); font-style: italic; margin-bottom: var(--space-xs); } .choice-requirements { font-size: 12px; color: rgba(255, 193, 7, 0.8); background: rgba(255, 193, 7, 0.1); padding: 4px 8px; border-radius: 4px; display: inline-block; } .scenario-action { background: linear-gradient(135deg, #667eea, #764ba2); border: none; border-radius: 10px; padding: 20px; color: white; cursor: pointer; transition: all 0.3s ease; width: 100%; font-size: 16px; font-weight: bold; } .scenario-action:hover { background: linear-gradient(135deg, #764ba2, #667eea); transform: scale(1.02); } .scenario-action.active { background: linear-gradient(135deg, #ff6b6b, #ee5a24); animation: pulse 1s infinite; } .scenario-action.completed { background: linear-gradient(135deg, #28a745, #20c997); cursor: default; } .action-text { font-size: 18px; margin-bottom: 10px; } .action-timer { font-size: 24px; font-weight: bold; color: rgba(255, 255, 255, 0.9); } .scenario-ending { text-align: center; padding: 20px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; } .ending-text { font-size: 16px; color: rgba(255, 255, 255, 0.9); margin-bottom: 15px; line-height: 1.6; } .ending-outcome { font-size: 18px; font-weight: bold; padding: 10px; border-radius: 8px; } .ending-outcome.success { background: rgba(40, 167, 69, 0.2); color: #28a745; } .ending-outcome.failure { background: rgba(220, 53, 69, 0.2); color: #dc3545; } .ending-outcome.reward { background: rgba(255, 193, 7, 0.2); color: #ffc107; } .scenario-status { margin-top: 20px; padding: 15px; background: rgba(0, 0, 0, 0.2); border-radius: 8px; } .scenario-stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; } .scenario-stats .stat { background: rgba(255, 255, 255, 0.1); padding: 8px 12px; border-radius: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.9); text-align: center; min-width: 80px; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } /* =========================================== INTERLUDE INTERFACE STYLING (Webcam Mirror, Focus Session, etc.) =========================================== */ /* Interlude Modal Overlay */ #mirror-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background: var(--interlude-overlay) !important; display: flex !important; justify-content: center !important; align-items: center !important; z-index: 10000 !important; } /* Interlude Container Base */ .mirror-container, .focus-task, .mirror-task-container { background: var(--interlude-bg) !important; border: 2px solid var(--interlude-border) !important; border-radius: 15px !important; padding: var(--space-xl) !important; margin: var(--space-md) 0 !important; text-align: center !important; box-shadow: var(--interlude-shadow) !important; color: var(--interlude-text-primary) !important; } .mirror-container { max-width: 800px !important; max-height: 90vh !important; overflow-y: auto !important; } /* Interlude Headers */ .mirror-header h3, .mirror-task-header h3, .mirror-task-header h4, .focus-task h3 { color: var(--interlude-text-primary) !important; font-size: var(--font-xl) !important; margin-bottom: var(--space-md) !important; text-shadow: none !important; } .mirror-header p, .mirror-task-header p, .focus-task p { color: var(--interlude-text-secondary) !important; font-size: var(--font-base) !important; margin-bottom: var(--space-lg) !important; line-height: 1.6 !important; } /* Interlude Video Elements */ #mirror-video { width: 100% !important; max-width: 640px !important; height: auto !important; border-radius: 10px !important; transform: scaleX(-1) !important; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important; border: 2px solid var(--interlude-border) !important; margin: var(--space-lg) 0 !important; } /* Interlude Content Areas */ .mirror-instructions, .mirror-task-text, .mirror-task-details { color: var(--interlude-text-primary) !important; font-size: var(--font-base) !important; margin: var(--space-md) 0 !important; padding: var(--space-md) !important; background: rgba(255, 255, 255, 0.1) !important; border-radius: 8px !important; border-left: 4px solid var(--interlude-accent) !important; } .mirror-task-text, .mirror-task-details { color: var(--interlude-text-secondary) !important; font-size: var(--font-sm) !important; margin-top: var(--space-lg) !important; font-style: italic !important; padding: var(--space-sm) !important; background: rgba(255, 255, 255, 0.05) !important; } /* Interlude Timers and Progress */ .mirror-timer, .focus-progress { background: rgba(255, 255, 255, 0.1) !important; border-radius: 8px !important; padding: var(--space-md) !important; margin: var(--space-md) 0 !important; color: var(--interlude-text-primary) !important; text-align: center !important; } .focus-timer-display { font-size: 48px !important; font-weight: bold !important; color: var(--interlude-accent) !important; margin: var(--space-lg) 0 !important; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important; } .mirror-progress, .focus-progress .progress-bar { width: 100% !important; background: rgba(255, 255, 255, 0.1) !important; border-radius: 4px !important; margin: var(--space-sm) 0 !important; height: 8px !important; overflow: hidden !important; } .progress-bar { height: 100% !important; background: linear-gradient(90deg, var(--interlude-accent), #9c27b0) !important; border-radius: 4px !important; transition: width 1s ease !important; } .timer-text, .progress-text, .video-info { color: var(--interlude-text-primary) !important; font-size: var(--font-sm) !important; font-weight: 600 !important; margin-top: var(--space-sm) !important; text-align: center !important; } .video-info { color: var(--interlude-text-secondary) !important; font-size: var(--font-xs) !important; } /* Interlude Button Controls */ .mirror-controls { margin-top: var(--space-lg) !important; display: flex !important; gap: var(--space-md) !important; justify-content: center !important; flex-wrap: wrap !important; } /* =========================================== INTERLUDE BUTTON STYLING =========================================== */ /* Universal Interlude Button Styling */ .interlude-btn, #start-focus-btn, #scenario-mirror-btn, #start-mirror-btn, .mirror-start-btn, button#scenario-mirror-btn.btn.btn-primary, button#start-mirror-btn.btn.btn-primary, button#scenario-mirror-btn.btn, button#start-mirror-btn.btn, .mirror-start-btn.btn.btn-primary, .mirror-start-btn.btn, #scenario-mirror-btn.btn.btn-primary, #start-mirror-btn.btn.btn-primary, #scenario-mirror-btn.btn, #start-mirror-btn.btn, button#scenario-mirror-btn, button#start-mirror-btn { background: var(--interlude-button-gradient) !important; color: white !important; border: none !important; padding: var(--space-md) var(--space-xl) !important; font-size: var(--font-lg) !important; border-radius: 8px !important; cursor: pointer !important; margin: var(--space-lg) 0 !important; font-weight: 600 !important; transition: all 0.3s ease !important; min-width: 200px !important; box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3) !important; opacity: 1 !important; } .interlude-btn:hover, #start-focus-btn:hover, #scenario-mirror-btn:hover, #start-mirror-btn:hover, .mirror-start-btn:hover, button#scenario-mirror-btn.btn.btn-primary:hover, button#start-mirror-btn.btn.btn-primary:hover, button#scenario-mirror-btn.btn:hover, button#start-mirror-btn.btn:hover, .mirror-start-btn.btn.btn-primary:hover, .mirror-start-btn.btn:hover, #scenario-mirror-btn.btn.btn-primary:hover, #start-mirror-btn.btn.btn-primary:hover, #scenario-mirror-btn.btn:hover, #start-mirror-btn.btn:hover, button#scenario-mirror-btn:hover, button#start-mirror-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4) !important; background: var(--interlude-button-gradient) !important; opacity: 1 !important; } .interlude-btn:disabled, #start-focus-btn:disabled, #scenario-mirror-btn:disabled, #start-mirror-btn:disabled, .mirror-start-btn:disabled, button#scenario-mirror-btn.btn.btn-primary:disabled, button#start-mirror-btn.btn.btn-primary:disabled, button#scenario-mirror-btn.btn:disabled, button#start-mirror-btn.btn:disabled, .mirror-start-btn.btn.btn-primary:disabled, .mirror-start-btn.btn:disabled, #scenario-mirror-btn.btn.btn-primary:disabled, #start-mirror-btn.btn.btn-primary:disabled, #scenario-mirror-btn.btn:disabled, #start-mirror-btn.btn:disabled, button#scenario-mirror-btn:disabled, button#start-mirror-btn:disabled { background: linear-gradient(135deg, #666666, #555555) !important; cursor: not-allowed !important; opacity: 0.7 !important; transform: none !important; } /* Interlude Control Buttons (inside modals) */ .mirror-controls .btn { padding: var(--space-sm) var(--space-lg) !important; font-size: var(--font-base) !important; font-weight: 600 !important; border: none !important; border-radius: 8px !important; cursor: pointer !important; transition: all 0.3s ease !important; min-width: 140px !important; }