/* CEHStudy — Shared Stylesheet */ /* Reference: index.html (target style) */ /* === CSS Custom Properties === */ :root { --bg: #151515; --bg2: #1e1e1e; --bg3: #2c2c2c; --text: #d1d0c5; --text2: #646669; --accent: #39ff88; --accent2: #2ed673; --border: #2c2c2c; --green: #39ff88; --orange: #e2b714; --red: #ca4754; } /* === Reset & Base === */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, monospace; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } /* === Progress Bar === */ .progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); transition: width .2s ease; z-index: 500; width: 0%; } /* === Header === */ header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; justify-content: center; align-items: center; z-index: 200; } .header-row { display: flex; justify-content: center; align-items: center; gap: 24px; width: 100%; } .logo { color: var(--accent); font-size: 1.3rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em; text-shadow: 0 0 8px rgba(57, 255, 136, 0.4); transition: text-shadow .2s ease; } .logo:hover { text-shadow: 0 0 14px rgba(57, 255, 136, 0.7); } .logo-block { display: flex; flex-direction: column; align-items: center; gap: 2px; } .logo-tagline { font-size: 0.7rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 1.5px; animation: cursor-blink 1s step-end infinite; } .logo-tagline::after { content: " _"; animation: cursor-blink 1s step-end infinite; } @keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } .select-modules-btn { background: none; border: 1px solid var(--border); color: var(--text2); font-size: .9rem; padding: 6px 14px; border-radius: 20px; cursor: pointer; font-family: inherit; transition: color .15s, border-color .15s, background .15s; } .select-modules-btn:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); } /* === Slide Menu === */ .menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .6); z-index: 300; display: none; } .menu-overlay.open { display: block; } .slide-menu { position: fixed; top: 0; left: -380px; width: 360px; max-width: 85vw; height: 100%; background: var(--bg2); border-right: 1px solid var(--border); z-index: 400; transition: left .25s ease; display: flex; flex-direction: column; } .slide-menu.open { left: 0; } .menu-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .menu-header h3 { color: var(--text); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; } .menu-close { background: none; border: none; color: var(--text2); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; line-height: 1; } .menu-close:hover { color: var(--text); } .menu-list { flex: 1; overflow-y: auto; padding: 8px 0; } .menu-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .88rem; } .menu-item:last-child { border-bottom: none; } .menu-item-label { color: var(--text); flex: 1; padding-right: 12px; font-family: 'JetBrains Mono', monospace; } .toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; margin-left: 8px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg3); border-radius: 22px; transition: .2s; } .toggle-slider:before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; } .toggle-switch input:checked + .toggle-slider { background: var(--accent); } .toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); } /* === Flashcard App === */ .flashcard-area { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; position: relative; min-height: calc(100vh - 56px); } .reviewed-badge { color: var(--text2); font-size: .82rem; margin-bottom: 14px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 4px; } .reviewed-label { color: var(--text2); font-weight: 600; transition: color .15s ease; } .reviewed-label.fire-active { color: var(--accent) !important; } @keyframes green-flash { 0% { opacity: 1; color: var(--accent); } 50% { opacity: .8; color: #7fff00; } 100% { opacity: 1; color: var(--accent); } } .reviewed-label.fire-active { animation: green-flash .6s ease; } .reviewed-count { color: var(--text2); font-weight: 600; transition: color .15s ease; } .reviewed-count.fire-active { color: var(--accent) !important; } @keyframes green-flash-num { 0% { opacity: 1; color: var(--accent); } 50% { opacity: .8; color: #7fff00; } 100% { opacity: 1; color: var(--accent); } } .reviewed-count.fire-active { animation: green-flash-num .6s ease; } /* Flame container for cycling flame emojis */ #flameContainer { font-size: 1rem; opacity: 0; transition: opacity .6s ease; display: inline-block; transform: scale(0.8); margin-left: 2px; } #flameContainer.fire-active { opacity: 1; animation: flame-pop .5s ease; } @keyframes flame-pop { 0% { transform: scale(0.4); } 40% { transform: scale(1.3); } 70% { transform: scale(0.95); } 100% { transform: scale(1); } } .chevron-nav { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 700px; gap: 0; } .chevron-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: transparent; border: none; color: var(--text2); cursor: pointer; padding: 0; line-height: 1; transition: background .15s ease, color .15s ease, transform .1s ease; user-select: none; } .chevron-btn:hover:not(:disabled) { background: var(--bg3); color: var(--accent); transform: none; } .chevron-btn:active:not(:disabled) { transform: scale(0.92); } .chevron-btn:disabled { color: var(--bg3); cursor: not-allowed; } .fc-card { border: none; background: var(--bg2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); border-radius: 6px; padding: 40px 50px; text-align: center; min-height: 280px; max-width: 700px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0 60px; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; } .fc-card:hover { border-color: transparent; box-shadow: 0 4px 20px rgba(0, 0, 0, .35); } .fc-card.card-enter { opacity: 0; transform: translateY(6px); } .fc-module-label { font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; } .fc-title { font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 20px; line-height: 1.5; } .fc-info { font-size: 1.1rem; color: var(--green); padding: 18px; background: var(--bg); border-radius: 6px; width: 100%; max-height: 400px; overflow-y: auto; text-align: left; } .fc-hint { color: var(--orange); font-size: .82rem; margin-top: 16px; text-align: center; } .fc-counter { color: var(--text2); font-size: .85rem; margin-top: 10px; text-align: center; } .placeholder-card { text-align: center; padding: 40px; } .placeholder-card h2 { color: var(--text); margin-bottom: 16px; font-size: 1.4rem; } .placeholder-card p { color: var(--text2); font-size: .95rem; margin-bottom: 8px; } .placeholder-card .icon { font-size: 4rem; margin-bottom: 20px; display: block; } /* === SEO Content Sections === */ .seo-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; } .seo-content h1 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 16px; text-align: center; } .seo-content h2 { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin-top: 36px; margin-bottom: 12px; } .seo-content p { color: var(--text); margin-bottom: 14px; font-size: 0.92rem; } .seo-content ul { list-style-type: disc; list-style-color: var(--text); padding-left: 20px; margin-bottom: 14px; } .seo-content ul li { padding: 6px 0 6px 10px; font-size: 0.92rem; } .seo-content a { color: var(--accent); text-decoration: none; } .seo-content a:hover { text-decoration: underline; } .module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; } .module-link { display: block; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.85rem; text-decoration: none; transition: border-color .15s, background .15s; } .module-link:hover { border-color: var(--accent); background: var(--bg3); text-decoration: none; } .module-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 15px; transition: border-color .2s; } .module-card:hover { border-color: var(--accent); } .module-card h3 { margin: 0 0 8px; font-size: 1em; color: var(--accent); } .module-card p { margin: 0; font-size: .9em; color: var(--text2); } .disclaimer-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; margin: 20px 0; font-size: 0.85rem; color: var(--text2); } /* === Term Box (used on module content pages) === */ .term-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px; margin: 10px 0; } .term-box strong { color: var(--accent); } /* === Breadcrumb === */ .breadcrumb { font-size: .82rem; color: var(--text2); margin-bottom: 20px; } .breadcrumb a { color: var(--text2); text-decoration: none; } .breadcrumb a:hover { color: var(--accent); } /* === Flashcard Link (module pages) === */ .flashcard-link { display: inline-block; background: var(--accent); color: var(--bg); padding: 10px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; margin: 16px 0; font-size: .9rem; } .flashcard-link:hover { opacity: .85; text-decoration: none; } /* === Footer === */ .site-footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; } .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; } .footer-nav a { color: var(--text2); text-decoration: none; font-size: 0.82rem; } .footer-nav a:hover { color: var(--accent); text-decoration: underline; } .footer-copy { color: var(--text2); font-size: 0.78rem; } /* === Utility === */ .hidden { display: none !important; } .container { max-width: 800px; margin: 0 auto; padding: 30px 20px; flex: 1; } /* === Inline code === */ code { background: var(--bg3); padding: 2px 6px; border-radius: 3px; font-size: .85rem; } pre { background: var(--bg3); padding: 12px; border-radius: 6px; overflow-x: auto; margin: 12px 0; } pre code { background: none; padding: 0; } blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin: 12px 0; color: var(--text2); font-style: italic; } /* === Page Content Styles (module/study/practice pages) === */ .page-title { font-size: 1.5rem; color: var(--accent); margin-bottom: 16px; } .section-heading { font-size: 1.2rem; color: var(--accent); margin-top: 32px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); } .content-text { margin-bottom: 14px; font-size: .92rem; } .content-list { list-style-type: disc; list-style-color: var(--text); padding-left: 20px; margin-bottom: 14px; } .content-list li { padding: 5px 0 5px 10px; font-size: .92rem; } /* === Table Styles (Study Guide / Practice Questions) === */ .schedule-table { width: 100%; border-collapse: collapse; margin: 20px 0; } .schedule-table th, .schedule-table td { text-align: left; padding: 10px 15px; border: 1px solid var(--border); } .schedule-table th { background: var(--bg3); color: var(--text); font-weight: 600; } .schedule-table tr:nth-child(even) { background: var(--bg2); } /* === Tip Box === */ .tip-box { background: var(--bg2); border-left: 4px solid var(--accent); padding: 15px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; } .tip-box h3 { color: var(--accent); margin-top: 0; } /* === CTA Section === */ .cta-section { background: linear-gradient(135deg, var(--bg2) 0%, #1c192b 100%); border: 1px solid var(--border); border-radius: 12px; padding: 30px; margin: 35px 0; text-align: center; } .cta-section h2 { margin-top: 0; color: var(--text); } .cta-button { display: inline-block; background: var(--accent); color: var(--bg); padding: 12px 30px; border-radius: 8px; font-size: 1.1em; font-weight: 600; text-decoration: none; margin-top: 15px; transition: background .2s; } .cta-button:hover { background: var(--accent2); color: var(--bg); text-decoration: none; } /* === FAQ Items === */ .faq-item { border-bottom: 1px solid var(--border); padding: 15px 0; } .faq-item h3 { margin-top: 0; color: var(--text); } /* === Practice Question UI === */ .category-header { background: var(--bg2); padding: 12px 20px; border-left: 4px solid var(--accent); margin: 30px 0 15px; border-radius: 0 8px 8px 0; } .category-header h2 { margin: 0; color: var(--text); font-size: 1.3em; } .question-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin: 20px 0; } .question-card h3 { color: var(--accent); margin-top: 0; font-size: 1.05em; } .options { margin: 12px 0; } .options label { display: block; padding: 8px 12px; margin: 4px 0; border-radius: 4px; cursor: pointer; transition: background .15s; } .options label:hover { background: var(--bg3); } .options input[type="radio"] { margin-right: 10px; } .explanation { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 15px; margin-top: 12px; display: none; } .explanation.show { display: block; } .explanation strong { color: var(--accent); } .btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-size: .95em; cursor: pointer; border: none; transition: background .2s; font-family: inherit; } .btn-primary { background: var(--accent); color: var(--bg); } .btn-primary:hover { background: var(--accent2); color: var(--bg); } .btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border); } .progress-bar-questions { background: var(--bg3); border-radius: 10px; height: 8px; margin: 15px 0; overflow: hidden; } .progress-fill { background: var(--accent); height: 100%; width: 0%; transition: width .3s; border-radius: 10px; } .score-display { text-align: center; font-size: 1.2em; padding: 15px; color: var(--text); display: none; } /* === Non-flashcard Header (study guide, practice questions) === */ .header-sticky { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 15px 0; position: sticky; top: 0; z-index: 200; } .header-nav-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; } .header-nav-logo { font-size: 1.3em; font-weight: bold; color: var(--text); text-decoration: none; } .header-nav-links { display: flex; gap: 20px; } .header-nav-links a { color: var(--text2); font-size: .95em; text-decoration: none; } .header-nav-links a:hover { color: var(--accent); } /* === Responsive === */ @media (max-width: 600px) { .fc-card { padding: 30px 24px; margin: 0 7px; min-height: 220px; } .fc-title { font-size: 1.15rem; } .fc-info { font-size: .98rem; padding: 14px; } .chevron-btn { width: 44px; height: 44px; font-size: 1.6rem; } .header-row { gap: 12px; } .seo-content { padding: 24px 16px; } .module-grid { grid-template-columns: 1fr; } .page-title { font-size: 1.25rem; } .header-nav-inner { flex-direction: column; gap: 10px; } .header-nav-links { gap: 10px; } .header-nav-links a { font-size: .85em; } .schedule-table { font-size: .85em; } .cta-section { padding: 20px; } } /* === Stats Dashboard === */ .stats-toggle-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); font-size: .8rem; padding: 6px 14px; border-radius: 20px; cursor: pointer; font-family: inherit; transition: color .15s, border-color .15s, background .15s; position: absolute; top: -40px; right: 0; } .stats-toggle-btn:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); color: var(--bg); } .stats-panel { position: fixed; top: 0; right: -480px; width: 460px; max-width: 90vw; height: 100%; background: var(--bg2); border-left: 1px solid var(--border); z-index: 400; transition: right .25s ease; overflow-y: auto; padding: 20px; box-shadow: -4px 0 20px rgba(0, 0, 0, .4); } .stats-panel.open { right: 0; } .stats-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); } .stats-header h3 { color: var(--accent); font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; } .stats-close { background: none; border: none; color: var(--text2); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; line-height: 1; } .stats-close:hover { color: var(--text); } .stats-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; } .stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; } .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1.2; } .stat-label { font-size: .75rem; color: var(--text2); margin-top: 4px; text-transform: uppercase; letter-spacing: .3px; } .stats-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .8rem; } .stats-table thead th { background: var(--bg3); color: var(--text); padding: 8px 10px; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid var(--border); } .stats-table tbody td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; } .stats-module-row.inactive td { color: var(--text2); opacity: .5; } .stats-bar { background: var(--bg); border-radius: 4px; height: 8px; overflow: hidden; min-width: 60px; } .stats-bar-fill { background: var(--accent); height: 100%; border-radius: 4px; transition: width .3s; } .stats-reset-module, .stats-reset-all { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); font-size: .75rem; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-family: inherit; transition: color .15s, border-color .15s, background .15s; } .stats-reset-module:hover, .stats-reset-all:hover { color: var(--red); border-color: var(--red); background: transparent; } .stats-footer { text-align: center; padding-top: 12px; border-top: 1px solid var(--border); } .stats-reset-all { width: 100%; padding: 10px; font-weight: 600; } @media (max-width: 600px) { .stats-panel { width: 100vw; right: -100vw; } .stats-overview { grid-template-columns: 1fr; } .stat-value { font-size: 1.4rem; } .stats-toggle-btn { position: static; margin-bottom: 10px; } .reviewed-badge { white-space: nowrap; } }  /* === Unified header + hamburger nav (2026-09-24) === */ .header-row.unified-header { justify-content: space-between; } .hamburger-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 9px; cursor: pointer; display: inline-flex; flex-direction: column; gap: 4px; align-items: center; transition: border-color .15s ease; } .hamburger-btn:hover { border-color: var(--accent); } .hamburger-btn span { display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; }