
        @import url('https://fonts.googleapis.com/css2?family=Asimovian&family=Dancing+Script:wght@400..700&family=Michroma&family=Orbitron:wght@400..900&family=Shadows+Into+Light+Two&display=swap');
        
        /* Start of: Font reference */

        /* .asimovian-regular {
            font-family: "Asimovian", sans-serif;
            font-weight: 400;
            font-style: normal;
        }

        .michroma-regular {
            font-family: "Michroma", sans-serif;
            font-weight: 400;
            font-style: normal;
        }

        .shadows-into-light-two-regular {
            font-family: "Shadows Into Light Two", cursive;
            font-weight: 400;
            font-style: normal;
        }

        .dancing-script {
            font-family: "Dancing Script", cursive;
            font-optical-sizing: auto;
            font-weight: <weight>;
            font-style: normal;
        }

        .orbitron{
            font-family: "Orbitron", sans-serif;
            font-optical-sizing: auto;
            font-weight: <weight>;
            font-style: normal;
            } */


        /* End of: Font Reference */
        /* CSS Reset based on modern best practices by Josh W Comeau*/

        /* 1. Use a more-intuitive box-sizing model */
        *, *::before, *::after {
                box-sizing: border-box;
        }
        /* 2. Remove default margin */
        * {
             margin: 0;
        }
    /* 3. Enable keyword animations */
        @media (prefers-reduced-motion: no-preference) {
                html {
                    interpolate-size: allow-keywords;
                }
        }
        body {
        /* 4. Add accessible line-height */
        line-height: 1.5;
        /* 5. Improve text rendering */
        -webkit-font-smoothing: antialiased;
        }
        /* 6. Improve media defaults */
        img, picture, video, canvas, svg {
        display: block;
        max-width: 100%;
        }
        /* 7. Inherit fonts for form controls */
        input, button, textarea, select {
        font: inherit;
        }
        /* 8. Avoid text overflows */
        p, h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
        }
        /* 9. Improve line wrapping */
        p {
        text-wrap: pretty;
        }
        h1, h2, h3, h4, h5, h6 {
        text-wrap: balance;
        }
        /*
        10. Create a root stacking context
        */
        #root, #__next {
        isolation: isolate;
        }

        /* Start of: Custom Colors and Styles */
        :root {
            --dark:#000000;
            --light:#FFFFFF;

            --primary:#4ade80;
            --secondary:#fb923c;
            --accent:#9740e9;
            --purplehaze:#781bcf;
            --orangedream:#f97316;
            --goldenhoney:#ee9701;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: #fff;
            padding: 20px;
            min-height: 100vh;
            text-align: center;
        
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        h1 {
            text-align: center;
            font-size: 2.5em;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #4ade80, #fb923c, #a855f7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            text-align: center;
            color: #94a3b8;
            margin-bottom: 30px;
            font-size: 1.1em;
        }

        .category {
            margin-bottom: 40px;
        }

        .category-title {
            position: relative;
            left:50%;
            /* left:51.5%; */
            transform:translateX(-50%);
            max-width: 100%;
            text-align: center;
            font-size: 1.8em;
            padding: 10px 20px;                  /* tighter padding */
            margin-bottom: 15px;
            padding: 10px 15px;
            background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
            font-size: 1.8em;
            padding: 12px 24px;
            background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
            margin: 0 auto 30px auto;
            max-width: calc(100% - 40px);   
        }
     

        .copy-card-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(255,255,255,0.15);
            border: none;
            font-size: 0.7em;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .symbol-card:hover .copy-card-btn { opacity: 1; }

   

        /* === FIXED LATEX SECTION === */
        .latex {
            font-size: 0.85em;
            color: #a0a0a0;
            margin: 10px 0 6px 0;
            font-family: 'Courier New', monospace;
            
            /* ONE single rule â€” no conflicts */
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 36px;
            flex-wrap: wrap;
            gap: 10px;
            padding: 4px 0;
        }

        .latex code {
            background: rgba(255,255,255,0.1);
            padding: 2px 6px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        /* LaTeX label styling (if you want the word "LaTeX:" orange) */
        
        .latex .latex-label {
            color: #f97316;
        }
        .latex .latex-label:hover {
            text-decoration: underline;
            color: #cbd5e1;
        }

        /* FIXED: Use CLASS selector, not ID! */
        .copy-LaTeX-btn {
            padding: 4px 8px;
            font-size: 0.75em;
            border: none;
            border-radius: 4px;
            background: #7c3aed;
            color: white;
            cursor: pointer;
            border: 1px solid var(--light);
            font-family: "Orbitron", sans-serif;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .copy-LaTeX-btn:hover {
            background: #1f1f1f;
            color: var(--goldenhoney);
        }

        /* Optional: force all cards to same height */
        .symbol-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 200px;   /* tweak this number until perfect */
            padding-bottom: 8px;
        }

       .latex {
            font-size: 0.85em;
            color: #a0a0a0;
            margin-top: 8px;
            font-family: 'Courier New', monospace;
            }

        .latex { min-height: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
        .latex code {
            background: rgba(255,255,255,0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }
        #LaTeX {
            color: #f97316;
            text-decoration: none;
        }
        #LaTeX:hover {
            text-decoration: underline;
            color:#cbd5e1;
        }

        #copy-LaTeX-btn{
            margin-left: 10px;
            padding: 4px 8px;
            font-size: 0.75em;
            border: none;
            border-radius: 4px;
            background: #7c3aed;
            color: white;
            cursor: pointer;
            border:1px solid var(--light);
            font-family: "Orbitron", sans-serif;
        }
         #copy-LaTeX-btn:hover {
            background: #1f1f1f;
            color:var(--goldenhoney);
         }  


         /* End of: Problematic LaTeX Styles  */
      
  
        .symbols-grid {
                display: grid;
                gap: 24px;
                /* Base: mobile */
                grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
                max-width: 1600px;          /* â† prevents insane stretching */
                margin: 0 auto;             /* â† centers the whole grid */
                padding: 0 20px;            /* â† nice side gutters */
            }

        .symbol-card {
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 15px;
            transition: all 0.3s ease;
        }

        .symbol-card:hover {
            transform: translateY(-3px);
            border-color: #a855f7;
            box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
        }

        .symbol {
            font-size: 2.2em;
            text-align: center;
            margin-bottom: 10px;
            color: #fb923c;
        }

        .symbol-name {
            font-weight: bold;
            font-size: 1em;
            margin-bottom: 8px;
            color: #4ade80;
        }

        .symbol-meaning {
            color: #cbd5e1;
            line-height: 1.4;
            margin-bottom: 10px;
        }

        .symbol-link {
            display: inline-block;
            padding: 6px 12px;
            background: linear-gradient(45deg, #a855f7, #7c3aed);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 0.9em;
            transition: all 0.3s ease;
        }

        .symbol-link:hover {
            background: linear-gradient(45deg, #7c3aed, #6d28d9);
            box-shadow: 0 4px 15px rgba(168, 85, 247, 0.5);
        }

        /* Start of: Search Field */
        .search-wrapper {
            position:relative;
            width: 100%;
            padding-bottom:-100px;
            max-width: 800px;       /* same as your .container */
            margin: 0 auto 50px auto; /* centers it + space below */
            padding: 0 0px;          /* matches your page padding */
            box-sizing: border-box;
        }
        .search-container {
            position: relative;
            width:100%;
        }

        .search-box {
            width: 100%;
            padding: 16px 56px 16px 20px;   /* ← plenty of room for the × */
            font-size: 1.1em;
            border: 2px solid #a855f7;
            border-radius: 12px;
            background: rgba(255,255,255,0.08);
            color: white;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }

        .search-box:focus {
            outline: none;
            border-color: #4ade80;
            box-shadow: 0 0 15px rgba(74,222,128,0.3);
        }

        /* THE × – always visible, always on top */
        #clearSearch {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2em;          /* big and bold */
            font-weight: bold;
            color: #ff6b6b;          /* your color – change if you want */
            cursor: pointer;
            user-select: none;
            line-height: 1;
            opacity: 0.7;
            transition: all 0.2s ease;
            pointer-events: all;     /* always clickable */
        }

        #clearSearch:hover {
            opacity: 1;
            transform: translateY(-50%) scale(1.2);
            color: #ff4757;
        }

        /* End of: Search Field */

        /* Light/Dark Mode Toggle */
        .toggle-container {
            text-align: center;
            margin-bottom: 20px;
        }

        .toggle-button {
            padding: 10px 20px;
            font-size: 1em;
            border: 2px solid #a855f7;
            border-radius: 10px;
            background: #1a1a2e;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .toggle-button:hover {
            background: #22c55e;
        }

        /* Dark Mode Styles */
        body.dark {
            background: #0f0f0f;
            color: #e0e0e0;
        }

        body.dark .category-title {
            background: linear-gradient(90deg, #22c55e 0%, #16213e 100%);
        }

        body.dark .symbol-card {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.05);
        }

        body.dark .symbol-link {
            background: linear-gradient(45deg, #6d28d9, #7c3aed);
        }

        body.dark .symbol-link:hover {
            background: linear-gradient(45deg, #6d28d9, #6d28d9);
        }


        /* ================== FOOTER STYLES ================== */
        footer {
            margin-top: 120px;
            padding: 60px 20px 40px;
            text-align: center;
            color: #94a3b8;
            font-size: 0.95em;
            line-height: 1.8;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(to bottom, transparent, rgba(10, 10, 20, 0.4));
        }

        footer a {
            color: #a855f7;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        a:hover {
            color: #4ade80;
            text-decoration: underline;
        }

        footer a:hover {
            color: #4ade80;
            text-decoration: underline;
        }

        footer strong {
            color: #ffffff;
            font-weight: 600;
        }

        footer p {
            margin: 14px 0;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        footer p:first-of-type {
            font-size: 1.1em;
            color: #e2e8f0;
            margin-bottom: 20px;
        }

        footer p:last-of-type {
            margin-top: 40px;
            font-size: 0.82em;
            opacity: 0.7;
            font-style: italic;
        }

        /* Subtle glow on hover for the GitHub / source link */
        footer a[href*="github"] {
            color: #4ade80;
            font-weight: 600;
        }
        footer a[href*="github"]:hover {
            color: #22c55e;
        }

        /* Start of: Animations */


        /* End of: Animations */

        /* Start of: Mobile Responsiveness  */
        /* Tablet (iPad, etc.) â€” 3 cards */
        @media (min-width: 640px) {
            .symbols-grid {
                grid-template-columns: repeat(3, minmax(220px, 1fr));
            }
        }

        /* Laptop â€” 4 cards */
        @media (min-width: 1024px) {
            .symbols-grid {
                grid-template-columns: repeat(4, minmax(220px, 1fr));
            }
        }

        /* Large desktop â€” 5 cards */
        @media (min-width: 1400px) {
            .symbols-grid {
                grid-template-columns: repeat(5, minmax(220px, 1fr));
            }
        }
         /* End 