/* * style.css * © 2025 TeacherToybox.com. All Rights Reserved. * * This stylesheet is the intellectual property of TeacherToybox.com. */ :root { --accent-color: #3862C4; --accent-color-rgb: 56, 142, 255; --accent-hover: #58a6ff; --bg-color: #1c1c1e; --sidebar-bg: #2c2c2e; --window-bg: rgba(44, 44, 46, 0.9); --border-color: rgba(88, 88, 91, 0.5); --text-primary: #f2f2f7; --text-secondary: #aeb0b4; --danger-color: #ff453a; --success-color: #28a745; --success-hover: #218838; --sidebar-width: clamp(50px, 5vw, 80px); --btn-size: 50px; --dragbar-height: 32px; --theme-icon-light: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%233862C4' d='M12 17a5 5 0 100-10 5 5 0 000 10zm0-12a1 1 0 011 1v2a1 1 0 11-2 0V6a1 1 0 011-1zm0 14a1 1 0 011 1v2a1 1 0 11-2 0v-2a1 1 0 011-1zM4.929 4.929a1 1 0 011.414 0l1.414 1.414a1 1 0 11-1.414 1.414L4.929 6.343a1 1 0 010-1.414zm14.142 14.142a1 1 0 011.414 0l1.414 1.414a1 1 0 01-1.414 1.414l-1.414-1.414a1 1 0 010-1.414zM1 12a1 1 0 011-1h2a1 1 0 110 2H2a1 1 0 01-1-1zm20 0a1 1 0 011-1h2a1 1 0 110 2h-2a1 1 0 01-1-1zM4.929 19.071a1 1 0 010-1.414l1.414-1.414a1 1 0 111.414 1.414l-1.414 1.414a1 1 0 01-1.414 0zm14.142-14.142a1 1 0 010-1.414l1.414-1.414a1 1 0 111.414 1.414l-1.414 1.414a1 1 0 01-1.414 0z'/%3e%3c/svg%3e"); } *, *::before, *::after { box-sizing: border-box; } body { margin: 0; height: 100vh; overflow: hidden; background-color: var(--bg-color); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3e%3cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3e%3c/svg%3e"); font-family: 'Inter', sans-serif; position: relative; color: var(--text-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body.no-grid { background-image: none; } body.light-mode.no-grid { background-image: none; } #site-title { position: absolute; top: 15px; left: 20px; z-index: 1; pointer-events: none; display: flex; flex-direction: column; } .title-line { display: flex; align-items: center; gap: 12px; } .title-line span { font-size: 28px; font-weight: 500; color: var(--text-primary); text-shadow: 0 1px 4px rgba(0,0,0,0.7); } #site-logo-desktop { height: 72px; position: relative; top: 2mm; } #site-subtitle { font-size: 14px; opacity: 0.8; color: var(--text-primary); text-shadow: 0 1px 4px rgba(0,0,0,0.7); padding-left: calc(84px + 1mm); margin-top: -5mm; } #sidebar { position: absolute; top: 0; right: 0; bottom: 0; width: var(--sidebar-width); background: var(--sidebar-bg); border-left: 1px solid var(--border-color); z-index: 1999; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 15px 0; gap: 15px; } #sidebar-main-controls { width: 100%; flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 5mm; min-height: 0; } .btn { position: relative; width: var(--btn-size); height: var(--btn-size); background-color: var(--accent-color); border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-primary); cursor: pointer; z-index: 2000; font-size: calc(var(--btn-size) * 0.45); font-weight: 500; transition: background-color 0.4s ease, transform 0.1s ease, border-color 0.2s ease; } .btn:hover { background-color: var(--accent-hover); } .btn:active { transform: scale(0.95); } #laserButton.active { background: var(--danger-color); } /* New Clock Styles */ #clockButton { background-color: transparent; border: 2px solid var(--border-color); } #clockButton:hover { border-color: var(--accent-color); } #clockButton.active { background-color: var(--accent-color); border-color: var(--accent-color); } .analog-clock { width: 80%; height: 80%; } .clock-face { stroke: var(--border-color); stroke-width: 4; fill: black; } .hour-hand, .minute-hand, .second-hand { stroke: white; stroke-linecap: round; transform-origin: center; transition: transform 0.5s cubic-bezier(0.4, 1.3, 0.6, 1); } .hour-hand { stroke-width: 6; } .minute-hand { stroke-width: 4; } .second-hand { stroke-width: 2; stroke: var(--danger-color); } .hand-cap { fill: white; stroke: none; } #clockButton .static-icon { display: none; } #clockButton .analog-clock { display: block; } #clockButton.active .static-icon { display: block; } #clockButton.active .analog-clock { display: none; } #digital-clock-bar { position: fixed; top: 0; right: 0; transform: translateX(100%); width: auto; padding: 8px 16px; background: var(--sidebar-bg); border: 1px solid var(--border-color); border-right: none; border-radius: 12px 0 0 12px; box-shadow: -10px 0 30px rgba(0,0,0,0.2); font-family: 'monospace'; font-size: calc(var(--btn-size) * 0.45); font-weight: 700; text-align: center; color: var(--text-primary); z-index: 1998; transition: transform 0.5s ease-in-out, width 0.3s ease-in-out; display: flex; align-items: center; justify-content: center; } #digital-clock-bar.open { transform: translateX(calc(var(--sidebar-width) * -1)); width: calc(5 * var(--btn-size) + 48px); } .hotkey-label { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 4px); font-size: 10px; color: var(--text-secondary); background: rgba(192,192,192,0.3); padding: 1px 4px; border-radius: 4px; display: none; } #refreshButton { background-color: var(--success-color); } #refreshButton:hover { background-color: var(--success-hover); } #extra-tools-container, #layout-tools-container { position: relative; } #extra-tools-bar, #layout-bar { position: absolute; right: 100%; top: 50%; transform: translateY(-50%) translateX(20px); width: auto; background: var(--sidebar-bg); border: 1px solid var(--border-color); border-right: none; padding: 8px; margin-right: 8px; border-radius: 8px 0 0 8px; display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; z-index: 2001; } #extra-tools-bar.open, #layout-bar.open { transform: translateY(-50%) translateX(0); opacity: 1; pointer-events: auto; } #extra-tools-bar .btn, #layout-bar .btn { flex-shrink: 0; } .floating { position: absolute; background: var(--window-bg); backdrop-filter: blur(16px) saturate(180%); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: opacity 0.4s ease-in-out; } .floating.active-window { border: 2px solid var(--accent-color); z-index: 1001; } .floating.hidden { opacity: 0; pointer-events: none; } .drag-bar { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.2); cursor: move; height: var(--dragbar-height); padding: 0 4px 0 4px; flex-shrink: 0; } .resize-btn, .close-btn { background: none; border: none; color: var(--text-secondary); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background-color 0.2s ease, color 0.2s ease; } .resize-btn:hover, .close-btn:hover { background: rgba(255,255,255,0.1); } .close-btn:hover { background: var(--danger-color); color: white; } .win-body { display: flex; flex-direction: row; height: calc(100% - 32px); flex-grow: 1; } .win-main-area { flex-grow: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: auto; padding: 16px; } .win-sidebar { width: 40px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 10px 0; background: rgba(0, 0, 0, 0.2); border-left: 1px solid var(--border-color); justify-content: space-evenly; } .win-sidebar .icon-btn { width: 22px; height: 22px; font-size: 10px; border-radius: 5px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .win-sidebar .reset-content-btn { background-color: var(--success-color); } .win-sidebar .reset-content-btn:hover { background-color: var(--success-hover); } .icon-btn { position: relative; width: 60px; height: 60px; background: var(--accent-color); border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; cursor: pointer; transition: background-color 0.4s ease, transform 0.1s ease; } .icon-btn:hover { background-color: var(--accent-hover); } .icon-btn:active { transform: scale(0.95); } .overlay-number { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 25vh; color: var(--accent-color); opacity: 1; z-index: 3000; transition: opacity 2s ease-out, transform 2s ease-out, color 0.4s ease; text-shadow: 0 0 20px rgba(0,0,0,0.5); } #laserDot { position: absolute; width: 20px; height: 20px; background: radial-gradient(circle, white, transparent); border: 2px solid var(--danger-color); border-radius: 50%; pointer-events: none; z-index: 2001; transform-origin: center center; transition: transform 0.05s ease-out; box-shadow: 0 0 15px var(--danger-color), inset 0 0 5px var(--danger-color); } .content-fill { width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; } .content-fill > img, .content-fill > video, .content-fill > audio, .content-fill > iframe, .content-fill > canvas { width: 100%; height: 100%; display: block; border: none; } div[contenteditable] { flex: 1; width: 100%; padding: 16px; font-size: 18px; color: var(--text-primary); background: transparent; outline: none; caret-color: var(--accent-color); } .tool-controls { display: flex; align-items: center; gap: 4px; position: relative; } .tool-controls button, .tool-controls .color-swatch { background: rgba(255,255,255,0.1); border: none; color: var(--text-secondary); width: 24px; height: 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; transition: background-color 0.2s, color 0.2s, border-color 0.2s; } .tool-controls button:hover { background: rgba(255,255,255,0.2); } .tool-controls .color-swatch { width: 20px; height: 20px; border: 2px solid transparent; } .tool-controls .color-swatch.active { border-color: white; } .tool-controls .pen-btn.active { background-color: var(--accent-color); color: white; } .tool-controls .custom-color-palette { position: absolute; top: 110%; left: 0; background: var(--sidebar-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; z-index: 1002; box-shadow: 0 5px 15px rgba(0,0,0,0.3); } .tool-controls .custom-color-palette.hidden { display: none; } .tool-controls .custom-color-swatch { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; transition: transform 0.1s ease, border 0.2s ease; border: 2px solid transparent; } .tool-controls .custom-color-swatch:hover { transform: scale(1.15); border: 2px solid white; } .window-management-controls { display: flex; align-items: center; gap: 2px; } #feedbackButton { background-color: #fdd835; /* Match coffee button */ color: black; /* Black icon */ } #feedbackButton:hover { background-color: #ffee58; /* Lighter yellow hover */ } .buyme-button { background-color: #fdd835; color: black; } .buyme-button:hover { background-color: #ffee58; } canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } .blur-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 20000; opacity: 1; transition: opacity 0.5s ease; } footer { position: fixed; bottom: 8px; left: 12px; z-index: 1; transition: z-index 0.5s step-end; } footer p { margin: 0; color: var(--text-secondary); opacity: 0.5; font-size: 12px; font-weight: 500; } .for-against-panel { width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: white; text-align: center; border: 10px solid rgba(255, 255, 255, 0.2); } .for-against-panel h2 { margin: 0; font-weight: 500; opacity: 0.8; } .for-against-display { flex-grow: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; } .for-against-controls { display: flex; } .for-against-controls button { border-radius: 50%; border: none; background-color: rgba(255, 255, 255, 0.2); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, transform 0.1s ease; } .for-against-controls button:hover { background-color: rgba(255, 255, 255, 0.3); } .for-against-controls button:active { transform: scale(0.95); } .drop-zone { width: 90%; height: 90%; max-width: 400px; max-height: 250px; border: 3px dashed var(--border-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-secondary); transition: all 0.2s ease-in-out; pointer-events: none; padding: 16px; } .drop-zone-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; } .drop-zone-icon { font-size: clamp(32px, 5vw, 48px); } .drop-zone-file-types { display: flex; gap: 16px; font-size: clamp(18px, 2.5vw, 22px); opacity: 0.7; } body.is-dragging .drop-zone { transform: scale(1.05); border-color: var(--accent-color); background: rgba(var(--accent-color-rgb), 0.1); color: var(--accent-hover); } .draw-controls-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(0, 0, 0, 0.25); flex-shrink: 0; height: 38px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); } .draw-controls-bar button, .draw-controls-bar .color-swatch, .draw-controls-bar input[type="range"] { background: rgba(255, 255, 255, 0.1); border: none; color: var(--text-secondary); width: 24px; height: 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; } .draw-controls-bar button:hover { background: rgba(255, 255, 255, 0.2); } .draw-controls-bar .color-swatch { border: 2px solid transparent; } .draw-controls-bar .color-swatch.active { border-color: white; } .draw-buttons-bar input[type="range"] { height: 10px; padding: 0; } .floating[data-tool="draw"] .win-body { height: calc(100% - var(--dragbar-height) - 38px); } .opacity-slider { -webkit-appearance: none; appearance: none; width: 50px; /* Halved from 100px */ height: 8px; background: rgba(255, 255, 255, 0.2); border-radius: 5px; outline: none; cursor: pointer; margin-left: auto; margin-right: 8px; } .opacity-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: var(--text-primary); border-radius: 50%; border: 2px solid var(--sidebar-bg); } .opacity-slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--text-primary); border-radius: 50%; border: 2px solid var(--sidebar-bg); } .win-sidebar .icon-btn:hover { transform: scale(1.2); z-index: 10; } .win-sidebar .icon-btn .tooltip { position: absolute; right: 110%; top: 50%; transform: translateY(-50%); background-color: var(--sidebar-bg); color: var(--text-primary); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid var(--border-color); opacity: 0; pointer-events: none; transition: opacity 0.2s ease 0.1s; z-index: 99; } .win-sidebar .icon-btn:hover .tooltip { opacity: 1; transition-delay: 0.3s; } .floating.snapped-window { border: 2px solid #FFC300; } #date-display { position: absolute; top: 20px; right: calc(var(--sidebar-width) + 20px); left: auto; color: var(--text-secondary); font-size: 18px; font-weight: 500; z-index: 100; pointer-events: auto; cursor: pointer; transform: translate(0, 0); transition: all 0.4s ease-in-out; } #date-display.date-enlarged { top: 50%; left: 0; width: 100%; text-align: center; transform: translateY(-50%); font-size: clamp(32px, 8vw, 96px); color: var(--text-primary); z-index: 20003; text-shadow: 0 5px 25px rgba(0,0,0,0.5); white-space: nowrap; } .date-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 20002; opacity: 0; transition: opacity 0.4s ease-in-out; } .win-sidebar .upload-btn { background-color: #fdd835; /* Yellow */ color: black; } .win-sidebar .upload-btn:hover { background-color: #ffee58; /* Lighter yellow */ } /* --- Carousel Tool Styles --- */ .carousel-container { flex-grow: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; } .carousel-image { width: 100%; height: 100%; object-fit: contain; display: none; /* Hidden by default */ } .carousel-placeholder { color: var(--text-secondary); font-size: 1.2rem; } .carousel-controls { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px; background: rgba(0, 0, 0, 0.25); flex-shrink: 0; width: 100%; } .carousel-btn { background: var(--sidebar-bg); border: 1px solid var(--border-color); color: var(--text-primary); width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; } .carousel-btn:hover:not(:disabled) { background-color: var(--accent-color); border-color: var(--accent-color); } .carousel-btn:disabled { cursor: not-allowed; opacity: 0.5; } /* --- Annotation Tool Styles --- */ .annotation-canvas { position: absolute; top: 0; left: 0; z-index: 10; cursor: crosshair; touch-action: none; } /* --- Tablet Edition Button Styling --- */ #tabletLinkButton { display: flex !important; visibility: visible !important; opacity: 1 !important; align-items: center; justify-content: center; flex-shrink: 0; text-align: center; text-decoration: none; line-height: 1; font-weight: 500; padding: 0 2px; border-radius: 8px; width: 90% !important; height: var(--btn-size) !important; font-size: 11px !important; /* Matching mobile.html's .desktop-btn */ background-color: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); transition: all 0.2s ease; } #tabletLinkButton:hover { background-color: var(--accent-color); color: var(--text-primary); border-color: var(--accent-color); } /* --- Calculator Tool Styles --- */ .calculator-grid { width: 100%; height: 100%; display: flex; flex-direction: column; background-color: #222; font-family: 'monospace'; } .calculator-display { flex: 0 0 auto; padding: 10px; background-color: #1a1a1a; text-align: right; color: var(--text-primary); border-bottom: 1px solid var(--border-color); } #calc-expression { min-height: 20px; color: var(--text-secondary); word-break: break-all; font-size: 24px; } #calc-input { min-height: 36px; font-weight: 700; word-break: break-all; font-size: 48px; } .calculator-buttons { flex-grow: 1; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); gap: 1px; background-color: var(--border-color); } .calc-btn { background-color: var(--sidebar-bg); border: none; color: var(--text-primary); cursor: pointer; transition: background-color 0.2s ease; display: flex; align-items: center; justify-content: center; font-size: 1.65rem; } .calc-btn:hover { background-color: var(--window-bg); } .calc-btn.operator { background-color: #3a3a3c; } .calc-btn.function { background-color: #4a4a4c; font-size: 1.5rem; } .calc-btn.equals { background-color: var(--accent-color); grid-row: span 2; } .calc-btn.equals:hover { background-color: var(--accent-hover); } .calc-btn.ac { background-color: var(--danger-color); } /* --- Splash Screen Styles --- */ #splash-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-color); display: flex; align-items: center; justify-content: center; z-index: 99999; transition: opacity 0.5s ease; } #splash-screen img { height: 110px; /* ~Facebook splash logo size */ width: auto; } /* Demo video modal */ .demo-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 20000; } .demo-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 75vw; height: 75vh; display: flex; align-items: center; justify-content: center; z-index: 20001; } .demo-modal video { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; } /* --- Share Modal Styles --- */ .share-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 25000; opacity: 0; transition: opacity 0.3s ease; } .share-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9); width: 90%; max-width: 500px; background: var(--sidebar-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 25001; padding: 24px; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; color: var(--text-primary); } .share-modal h3 { margin: 0 0 8px; text-align: center; font-size: 1.5rem; color: var(--text-primary); } .share-modal .share-intro-text { text-align: center; margin: 0 0 24px; color: var(--text-secondary); } .share-modal .close-modal-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; color: var(--text-secondary); cursor: pointer; line-height: 1; padding: 5px; } .share-modal .close-modal-btn:hover { color: var(--text-primary); } .share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; } .share-grid-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: white; font-weight: 500; transition: opacity 0.2s; } .share-grid-btn:hover { opacity: 0.85; } .share-grid-btn .fab, .share-grid-btn .fas { font-size: 1.2em; } /* Social Media Colors */ .share-grid-btn.facebook { background-color: #1877F2; } .share-grid-btn.twitter { background-color: #1DA1F2; } .share-grid-btn.linkedin { background-color: #0A66C2; } .share-grid-btn.whatsapp { background-color: #25D366; } .share-grid-btn.reddit { background-color: #FF4500; } .share-grid-btn.email { background-color: #777; } .copy-link-heading { text-align: center; font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 8px; } .copy-link-area { display: flex; gap: 8px; } .copy-link-area input { flex-grow: 1; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); padding: 8px 12px; font-family: 'monospace'; } .copy-link-area button { background-color: var(--accent-color); color: white; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 500; cursor: pointer; transition: background-color 0.2s; } .copy-link-area button:hover { background-color: var(--accent-hover); } /* --- CLEANED UP AND CORRECTED STYLES --- */ #lang-picker-wrap { position: fixed !important; /* Position in the bottom right */ bottom: 20px !important; right: calc(var(--sidebar-width) + 10px) !important; margin: 0 !important; z-index: 3000 !important; display: flex; gap: 8px; align-items: center; } #langSelect { font-family: inherit; background: var(--sidebar-bg); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 6px; line-height: 1.1 !important; padding: 2px 6px !important; font-size: 0.8em !important; height: auto !important; min-height: 0 !important; width: 90px !important; min-width: 70px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Allow clicking on the site title area */ #site-title { pointer-events: auto; } /* --- Light Mode Theme --- */ body.light-mode { --bg-color: #f0f2f5; --sidebar-bg: #ffffff; --window-bg: rgba(255, 255, 255, 0.85); --border-color: rgba(0, 0, 0, 0.15); --text-primary: #1d1d1f; --text-secondary: #5f6368; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3e%3cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(0,0,0,0.04)' stroke-width='1'/%3e%3c/svg%3e"); } /* --- Component Adjustments for Light Mode --- */ body.light-mode #site-title .title-line span, body.light-mode #site-subtitle { text-shadow: none; } body.light-mode .floating { box-shadow: 0 10px 30px rgba(0,0,0,0.12); } body.light-mode .clock-face { fill: #fdfdfd; stroke: var(--text-primary); } body.light-mode .hour-hand, body.light-mode .minute-hand, body.light-mode .hand-cap { stroke: var(--text-primary); fill: var(--text-primary); } /* --- Theme Switch Styles --- */ .theme-switch-wrapper { display: flex; align-items: center; justify-content: center; padding: 15px 0; } .theme-switch { position: relative; display: inline-block; width: 40px; height: 22px; } .theme-switch input { opacity: 0; width: 0; height: 0; } .slider.round { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #4a4a4c; transition: .4s; border-radius: 22px; } .slider.round:before { position: absolute; content: ''; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: .4s; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%232c2c2e' d='M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 19.449l-7.416 4.014 1.48-8.279-6.064-5.828 8.332-1.151z'/%3e%3c/svg%3e"); background-size: 10px 10px; background-repeat: no-repeat; background-position: center; } input:checked + .slider.round { background-color: var(--accent-color); } input:checked + .slider.round:before { transform: translateX(18px); background-image: var(--theme-icon-light); } body.light-mode .slider.round { background-color: #ccc; } body.light-mode input:checked + .slider.round { background-color: var(--accent-color); } /* --- Light Mode UI Text & Icon Color Fix --- */ body.light-mode #sidebar-main-controls .btn { color: #ffffff; } body.light-mode #langSelect { background-color: var(--accent-color); color: #ffffff; border-color: var(--accent-color); } body.light-mode #feedbackButton, body.light-mode .buyme-button { color: #000000; } body.light-mode #tabletLinkButton { color: var(--text-secondary); } body.light-mode #tabletLinkButton:hover { color: #ffffff; } body.light-mode .opacity-slider { background: #d3d3d3; } body.light-mode .opacity-slider::-webkit-slider-thumb { border-color: #ffffff; } body.light-mode .opacity-slider::-moz-range-thumb { border-color: #ffffff; } /* --- Consistent Light Mode Window Skin --- */ body.light-mode .drag-bar, body.light-mode .win-sidebar { background: #f0f2f5; } body.light-mode .drag-bar { border-bottom: 1px solid var(--border-color); } body.light-mode [data-tool="draw"] .content-fill, body.light-mode .carousel-container { background: #ffffff !important; border: 1px solid var(--border-color); border-radius: 4px; margin: 12px; width: calc(100% - 24px); height: calc(100% - 24px); box-sizing: border-box; } body.light-mode .stopwatch-display, body.light-mode .floating[class*="timer-is-running"] .win-main-area > div > div[style] { color: var(--text-primary) !important; } body.light-mode .calculator-grid { background: #f0f2f5; } body.light-mode .calculator-display { background-color: #ffffff; color: var(--text-primary); } body.light-mode #calc-expression { color: var(--text-secondary); } body.light-mode .calculator-buttons { background-color: #e0e2e7; } body.light-mode .calc-btn { background-color: #f7f8fa; } body.light-mode .calc-btn:hover { background-color: #ffffff; border: 1px solid var(--border-color); } body.light-mode .calc-btn.operator, body.light-mode .calc-btn.function { background-color: #f0f2f5; } body.light-mode .calc-btn.equals, body.light-mode .calc-btn.ac { background-color: var(--accent-color); color: white; } body.light-mode .calc-btn.equals:hover, body.light-mode .calc-btn.ac:hover { background-color: var(--accent-hover); } body.light-mode .die { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); } /* --- Animation Keyframes --- */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* --- Tool-Specific UI Adjustments --- */ .floating[data-tool="draw"] .drag-bar .tool-controls { display: none; } .floating[data-tool="draw"] .drag-bar { justify-content: flex-end; }