* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
   html.dark-mode {
        background: #1a1a1a;
    }

    body {
        font-family: 'Courier New', Courier, monospace;
        background: #c0c0c0;
        color: #000000;
        line-height: 1.6;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    header {
        background: linear-gradient(to bottom, #000080, #0000cd);
        color: #ffffff;
        padding: 25px 20px;
        text-align: center;
        border: 3px outset #ffffff;
        box-shadow: 5px 5px 0 #000000;
        margin: 20px;
    }

    header h1 {
        font-size: 2.5em;
        text-shadow: 3px 3px #000000;
        letter-spacing: 3px;
        margin-bottom: 10px;
        animation: glow 2s ease-in-out infinite alternate;
    }

    @keyframes glow {
        from {
            text-shadow: 3px 3px #000000, 0 0 10px #00ffff;
        }
        to {
            text-shadow: 3px 3px #000000, 0 0 20px #00ffff, 0 0 30px #00ffff;
        }
    }

    header p {
        font-size: 0.9em;
        margin-top: 5px;
    }

    .header-links {
        margin-top: 15px;
        font-size: 1.1em;
    }

    .header-links a {
        color: #00ffff;
        text-decoration: none;
        margin: 0 5px;
        transition: color 0.3s;
    }

    .header-links a:hover {
        color: #ffff00;
        text-decoration: underline;
    }
    
    body.dark-mode {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    body.dark-mode header {
        background: linear-gradient(to bottom, #1a1a2e, #16213e);
    }
    
    body.dark-mode .sidebar-section,
    body.dark-mode .article-header {
        background: #2a2a2a;
        border-color: #444444;
    }
    
    body.dark-mode .content-header {
        background: #2a2a2a;
        border-color: #444444;
        box-shadow: 4px 4px 0 #000000; /* Keep shadow in dark mode */
    }
    
    body.dark-mode .sidebar-section h2 {
        background: linear-gradient(to bottom, #1a1a2e, #16213e);
    }
    
    body.dark-mode .blog-article,
    body.dark-mode .no-results {
        background: #2a2a2a;
        border-color: #444444;
    }
    
    body.dark-mode .article-content p {
        color: #d0d0d0;
    }
    
    body.dark-mode .filter-toggle,
    body.dark-mode .clear-filters,
    body.dark-mode .article-btn {
        background: #3a3a3a;
        border-color: #555555;
        color: #e0e0e0;
    }
    
    body.dark-mode .tag-checkboxes {
        background: #2a2a2a;
    }
    
    body.dark-mode .tag-checkbox:hover {
        background: #3a3a3a;
    }
    
    body.dark-mode footer {
        background: #0a0a0a;
    }
    
    /* Dark mode toggle button */
    .dark-mode-toggle {
        position: fixed;
        bottom: 130px;
        right: 20px;
        padding: 12px 20px;
        background: #c0c0c0;
        border: 2px outset #ffffff;
        font-family: 'Courier New', monospace;
        cursor: pointer;
        font-size: 1.2em;
        z-index: 1000;
        box-shadow: 4px 4px 0 #000000;
    }
    
    body.dark-mode .dark-mode-toggle {
        background: #3a3a3a;
        border-color: #555555;
        color: #e0e0e0;
    }
    
    .dark-mode-toggle:hover {
        transform: translateY(-2px);
    }
    
    .dark-mode-toggle:active {
        border-style: inset;
    }

    .container {
        margin: 0 auto; /* This centers it */
        width: calc(100% - 40px); /* or a fixed max-width */
        max-width: 1400px; /* Maximum width before centering kicks in */
        display: flex;
        gap: 20px;
        padding: 0 20px 20px;
        flex: 1;
        align-items: flex-start;
    }

    .sidebar {
        flex: 0 0 300px;
        width: 300px;
        position: sticky;
        top: 20px;
        align-self: flex-start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .sidebar-section {
        background: #d4d0c8;
        border: 3px outset #ffffff;
        margin-bottom: 20px;
        box-shadow: 4px 4px 0 #000000;
    }

    .sidebar-section h2 {
        background: linear-gradient(to bottom, #000080, #0000cd);
        color: #ffffff;
        padding: 10px;
        font-size: 1.1em;
        border-bottom: 2px solid #ffffff;
        text-shadow: 1px 1px #000000;
    }

    .filter-container {
        padding: 15px;
    }

    .filter-toggle {
        width: 100%;
        padding: 10px;
        background: #ffffff;
        border: 2px outset #ffffff;
        font-family: 'Courier New', monospace;
        font-size: 1em;
        cursor: pointer;
        font-weight: bold;
        text-align: left;
    }

    .filter-toggle:active {
        border-style: inset;
    }

    .tag-checkboxes {
        margin-top: 0px;
        padding: 0px;
        background: #ffffff;
        border: 0px inset #808080;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .tag-checkboxes.open {
        max-height: 300px;
        overflow-y: auto;
    }

    .tag-checkbox {
        display: flex;
        align-items: center;
        padding: 5px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .tag-checkbox:hover {
        background: #e0e0e0;
    }

    .tag-checkbox input[type="checkbox"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .tag-checkbox span {
        color: #0000cd;
        font-weight: bold;
    }

    .clear-filters {
        width: 100%;
        margin-top: 10px;
        padding: 8px;
        background: #c0c0c0;
        border: 2px outset #ffffff;
        font-family: 'Courier New', monospace;
        cursor: pointer;
        font-size: 0.9em;
    }

    .clear-filters:hover {
        background: #d0d0d0;
    }

    .clear-filters:active {
        border-style: inset;
    }

    .archive-list {
        padding: 15px;
    }

    .archive-year {
        margin-bottom: 15px;
    }

    .year-header {
        font-weight: bold;
        font-size: 1.1em;
        color: #000080;
        cursor: pointer;
        padding: 5px;
        border: 2px solid transparent;
        transition: all 0.2s;
    }

    .year-header:hover {
        background: #e0e0e0;
        border: 2px outset #ffffff;
    }

    .month-list {
        margin-left: 15px;
        margin-top: 8px;
        max-height: 500px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .month-list.collapsed {
        max-height: 0;
    }

    .month-link {
        display: block;
        padding: 5px 10px;
        color: #0000cd;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all 0.2s;
        cursor: pointer;
    }

    .month-link:hover {
        background: #ffffcc;
        border-left: 3px solid #ff0000;
        padding-left: 15px;
    }

    .link-list {
        padding: 15px;
    }

    .retro-link {
        display: block;
        color: #0000cd;
        text-decoration: none;
        padding: 5px;
        margin-bottom: 5px;
        transition: all 0.2s;
    }

    .retro-link:hover {
        background: #ffff00;
        padding-left: 10px;
    }

    .visitor-counter {
        padding: 15px;
        text-align: center;
    }

    .visitor-counter p {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .counter-digits {
        background: #000000;
        color: #00ff00;
        font-family: 'Courier New', monospace;
        font-size: 1.5em;
        font-weight: bold;
        padding: 10px;
        border: 2px inset #808080;
        letter-spacing: 3px;
        display: inline-block;
    }

    marquee {
        background: #000000;
        color: #00ff00;
        padding: 8px;
        font-size: 0.9em;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        width: calc(100% - 320px);
        max-width: 900px;
        min-height: 600px; /* Prevent content area from collapsing */
    }

    .content-header {
        background: #d4d0c8;
        border: 3px outset #ffffff;
        padding: 15px;
        margin-bottom: 20px;
        box-shadow: 4px 4px 0 #000000;
    }

    .content-header h2 {
        color: #000080;
        font-size: 1.8em;
        text-shadow: 1px 1px #ffffff;
    }

    .active-filters {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .active-filters:empty {
        display: none;
    }

    .active-filter {
        background: #ffff00;
        border: 2px outset #ffffff;
        padding: 5px 10px;
        font-size: 0.85em;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .active-filter .remove {
        cursor: pointer;
        font-weight: bold;
        color: #ff0000;
    }

    .blog-article {
        background: #ffffff;
        border: 3px outset #ffffff;
        margin-bottom: 20px;
        box-shadow: 4px 4px 0 #000000;
        transition: transform 0.2s;
    }

    .blog-article:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0 #000000;
    }

    .article-header {
        background: #d4d0c8;
        padding: 15px;
        border-bottom: 2px solid #808080;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .article-header-left {
        flex: 1;
        min-width: 0;
    }

    .article-header h3 a {
    color: #000080;
    font-size: 1.4em;
    text-decoration: none;
    }
    
    .article-header h3 a:visited {
        color: #000080;
    }
    
    .article-header h3 a:hover {
        color: #0000cd;
        text-decoration: underline;
    }
    
    .article-header h3 a:active {
        color: #000080;
    }

    .article-meta {
        display: flex;
        gap: 10px;
        font-size: 0.9em;
        flex-wrap: wrap;
    }

    .article-date {
        color: #666666;
    }

    .article-tags {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }

    .tag {
        background: #0000cd;
        color: #ffffff;
        padding: 3px 8px;
        font-size: 0.85em;
        border: 1px solid #000080;
        white-space: nowrap;
    }

    .article-header-right {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .article-btn {
        background: #c0c0c0;
        border: 2px outset #ffffff;
        padding: 5px 12px;
        font-family: 'Courier New', monospace;
        cursor: pointer;
        font-size: 0.85em;
        white-space: nowrap;
    }

    .article-btn:hover {
        background: #d0d0d0;
    }

    .article-btn:active {
        border-style: inset;
    }

    .article-content {
        padding: 20px;
    }

    .article-content p {
        margin-bottom: 15px;
        color: #333333;
        white-space: pre-wrap;
    }

    .article-content .full-content {
        display: none;
    }

    .article-content.expanded .excerpt {
        display: none;
    }

    .article-content.expanded .full-content {
        display: block;
    }

    .no-results {
        background: #ffffff;
        border: 3px outset #ffffff;
        padding: 40px;
        text-align: center;
        box-shadow: 4px 4px 0 #000000;
    }

    .no-results p {
        font-size: 1.2em;
        margin-bottom: 20px;
        color: #666666;
    }

    .no-results button {
        padding: 10px 20px;
        background: #c0c0c0;
        border: 2px outset #ffffff;
        font-family: 'Courier New', monospace;
        font-size: 1em;
        cursor: pointer;
    }

    .no-results button:hover {
        background: #d0d0d0;
    }

    .no-results button:active {
        border-style: inset;
    }

    footer {
        background: #000000;
        color: #00ff00;
        text-align: center;
        padding: 20px;
        margin: 20px;
        border: 3px outset #ffffff;
        box-shadow: 5px 5px 0 #000000;
        font-size: 0.9em;
    }

    footer a {
        color: #00ffff;
        text-decoration: none;
    }

    footer a:hover {
        color: #ffff00;
        text-decoration: underline;
    }

    footer p {
        margin: 5px 0;
    }

    @media (max-width: 968px) {
        .container {
            flex-direction: column;
        }
        
        .sidebar {
            flex: 1 1 auto;
            position: static;
            max-width: 100%;
        }
        
        header h1 {
            font-size: 2em;
        }
    }

    @media (max-width: 600px) {
        header {
            margin: 10px;
            padding: 15px 10px;
        }
        
        header h1 {
            font-size: 1.5em;
            letter-spacing: 1px;
        }
        
        .container {
            padding: 0 10px 10px;
        }
        
        footer {
            margin: 10px;
            padding: 15px;
        }
    }

    ::-webkit-scrollbar {
        width: 16px;
    }

    ::-webkit-scrollbar-track {
        background: #d4d0c8;
        border: 2px inset #ffffff;
    }

    ::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border: 2px outset #ffffff;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

    .loading {
        text-align: center;
        padding: 40px;
        font-size: 1.2em;
        color: #000080;
    }
    
    .sidebar-section,
    .filter-toggle,
    .clear-filters,
    .year-header,
    .month-link,
    .retro-link,
    .article-btn,
    .active-filter,
    .content-header,
    .no-results button {
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .sidebar-section:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0 #000000;
    }
    
    .filter-toggle:hover,
    .clear-filters:hover,
    .article-btn:hover,
    .no-results button:hover {
        transform: translateY(-1px);
    }
    
    .year-header:hover,
    .month-link:hover,
    .retro-link:hover {
        transform: translateX(3px);
    }
    
    .active-filter:hover {
        transform: translateY(-1px);
        box-shadow: 3px 3px 0 #000000;
    }
    
    .content-header:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0 #000000;
    }
    
    header:hover {
        transform: translateY(-2px);
        box-shadow: 7px 7px 0 #000000;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    footer:hover {
        transform: translateY(-2px);
        box-shadow: 7px 7px 0 #000000;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .read-more-link {
        color: #0000cd;
        cursor: pointer;
        font-weight: bold;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
    }
    
    .read-more-link:hover {
        text-decoration: underline;
        color: #ff0000;
    }
    
    .article-content.expanded .read-more-text {
        display: none;
    }
    
    .article-content.expanded .read-enough-text {
        display: inline;
    }
    
    .article-comments {
    border-top: 2px solid #c0c0c0;
    padding: 15px;
    background: #e8e8e8;
}

.comments-toggle-btn {
    width: 100%;
    padding: 8px;
    background: #c0c0c0;
    border: 2px outset #ffffff;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    font-weight: bold;
    text-align: left;
}

.comments-list {
    margin-top: 15px;
}

.leave-comment-btn {
    width: 100%;
    padding: 10px;
    background: #0000cd;
    color: #ffffff;
    border: 2px outset #ffffff;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* Dark mode */
body.dark-mode .article-comments {
    background: #2a2a2a;
    border-color: #444444;
}

body.dark-mode .comments-toggle-btn {
    background: #3a3a3a;
    border-color: #555555;
    color: #e0e0e0;
}

body.dark-mode .leave-comment-btn {
    background: #16213e;
    border-color: #555555;
}


