:root {
    /* PHPNuke-inspired Web 1.0 colors */
    --page-background: #6b8eb5;
    --content-background: #e8f0f8;
    --block-background: #d8e8f5;
    --block-title-bg: linear-gradient(to bottom, #5c8ab8, #3a6a94);
    --block-border: #2a5a84;
    --header-bg: linear-gradient(to bottom, #4a7ba7, #2d5a84);
    --link-color: #0066cc;
    --link-hover: #003366;
    --text-color: #000000;
    --white: #ffffff;
    --border-light: #99ccff;
    --border-dark: #336699;
}

html {
    box-sizing: border-box;
    font-size: 14px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: var(--page-background);
}

body {
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

body {
    line-height: 1.6;
}

/* PHPNuke-style header */
.navbar {
    background: var(--header-bg);
    color: var(--white);
    padding: 15px 20px;
    border: 2px solid var(--block-border);
    border-bottom: 3px solid var(--block-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* for internal links: */
article > h2, h3 {
    scroll-margin-top: 20px;
}

.navbar-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.navbar-links {
    display: flex;
    gap: 5px;
}

.navbar-links a {
    padding: 6px 12px;
    text-decoration: none;
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
}

.navbar-links a:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* PHPNuke-style layout with sidebars */
.page-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
    padding: 0 10px;
}

/* Left and right sidebar block style */
.sidebar,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.block {
    background: var(--block-background);
    border: 2px solid var(--block-border);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.block-title {
    background: var(--block-title-bg);
    color: var(--white);
    padding: 6px 10px;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 2px solid var(--block-border);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.block-content {
    padding: 10px;
    font-size: 12px;
}

.block-content a {
    display: block;
    padding: 4px 6px;
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

.block-content a:hover {
    background: rgba(0,102,204,0.1);
    color: var(--link-hover);
}

.block-content p a {
    display: inline;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

/* Statistics styling */
.stats-item {
    padding: 6px;
    border-bottom: 1px dotted #ccc;
    font-size: 11px;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-label {
    color: #666;
}

.stats-value {
    font-weight: bold;
    color: var(--link-color);
    float: right;
}

.stats-notice {
    font-size: 9px;
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 8px 4px 4px 4px;
    border-top: 1px dotted #ccc;
    margin-top: 6px;
}

/* Sidebar quote styling */
.sidebar-quote {
    font-size: 11px;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding: 8px;
    border-left: 2px solid var(--block-border);
    background: #f9f9f9;
}

.quote-source {
    display: block;
    font-size: 10px;
    color: #666;
    text-align: right;
    margin-top: 8px;
    font-style: normal;
}

/* Swag box styling */
.swag-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--block-border);
    margin-bottom: 8px;
}

.swag-link {
    display: block;
    text-align: center;
    color: var(--link-color);
    font-weight: bold;
    text-decoration: none;
    padding: 8px;
    background: rgba(0,102,204,0.05);
    border: 1px solid var(--block-border);
    margin-top: 5px;
}

.swag-link:hover {
    background: rgba(0,102,204,0.15);
}

/* Badges styling */
.badge-item {
    text-align: center;
    margin-bottom: 10px;
}

.badge-item:last-child {
    margin-bottom: 0;
}

.badge-item img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--block-border);
}

.badge-item a {
    display: block;
}

/* Main content area */
.container {
    background: var(--content-background);
    border: 2px solid var(--block-border);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    padding: 0;
}


.container img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--block-border);
}

.footer {
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    font-size: 11px;
    background: var(--block-background);
    border: 2px solid var(--block-border);
    max-width: 1180px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.footer a {
    color: var(--link-color);
}

.profile {
    float: left;
    width: 150px;
    padding: 5px 15px 15px 0;
}

article {
    padding: 20px;
    background: var(--white);
    border-bottom: 2px solid var(--block-border);
}

article > * {
    margin-bottom: 15px !important;
}

article p {
    white-space: pre-line;
    line-height: 1.6;
}

article > p > code {
    line-break: anywhere;
}

article p code {
    background-color: #fff9e6;
    border: 1px solid #ddd;
    padding: 2px 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

article blockquote p a {
    line-break: anywhere;
}

article a {
    word-wrap: break-word;
    color: var(--link-color);
    font-weight: bold;
}

article a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.index-list li {
    margin-bottom: 15px;
}

details.toc-container {
    background-color: #ffffcc;
    padding: 10px;
    border: 2px solid var(--block-border);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
    margin-bottom: 15px;
}

details.toc-container summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    background: var(--block-title-bg);
    color: var(--white);
    margin: -10px -10px 10px -10px;
    border-bottom: 2px solid var(--block-border);
}

.table_of_contents li {
    list-style: none;
}

.table_of_contents-indent-2 {
    padding-left: 10px;
}

.table_of_contents-indent-3 {
    padding-left: 15px;
}

.table_of_contents ul {
    margin-top: 5px;
}

.post-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: bold;
    border-bottom: 2px solid var(--block-border);
    padding-bottom: 8px;
}

.post-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    background: #f5f5f5;
    padding: 8px;
    border: 1px solid #ddd;
}

article h1 {
    font-size: 1.8em;
    font-weight: bold;
    padding-bottom: 8px;
    color: var(--text-color);
    border-bottom: 2px solid var(--block-border);
}

article h2 {
    font-size: 1.5em;
    font-weight: bold;
    padding: 8px 0;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-dark);
    margin-top: 20px;
}

h3 {
    font-weight: bold;
    font-size: 1.2em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-color);
}

h4 {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color);
}

ul {
    padding-left: 25px;
}

ol {
    padding-left: 30px; /* Adjust the padding as desired */
    list-style-type: decimal; /* Change the list style type */
    padding-top: 5px;
    padding-bottom: 10px;
}

li {
    margin-bottom: 5px; /* Adjust the margin between list items */
}

blockquote {
    quotes: "\201C" "\201D" "\2018" "\2019";
    font-style: italic;
    border-left: 3px solid var(--block-border);
    padding-left: 15px;
    background: #f9f9f9;
    padding: 10px 10px 10px 15px;
    margin: 10px 0;
}

blockquote p {
    white-space: pre-wrap;
}

pre {
    background: #f5f5f5;
    border: 2px solid var(--block-border);
    padding: 12px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

code {
    font-family: 'Courier New', monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background-color: var(--white);
    border: 2px solid var(--block-border);
}

thead {
    background: var(--block-title-bg);
    color: var(--white);
}

thead th {
    padding: 8px;
    text-align: left;
    font-weight: bold;
    border: 1px solid var(--block-border);
    font-size: 12px;
}

tbody tr:nth-child(even) {
    background-color: #f0f8ff;
}

tbody td {
    padding: 8px;
    border: 1px solid var(--block-border);
    text-align: left;
    font-size: 12px;
}

tbody tr:hover {
    background-color: #e0f0ff;
}

/* Mobile responsiveness */
@media only screen and (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        padding: 5px;
    }

    .sidebar {
        order: 2;
    }

    .container {
        order: 1;
    }

    .sidebar-right {
        order: 3;
    }

    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    article {
        padding: 15px;
    }

    .profile {
        width: 100px;
        padding: 5px 10px 10px 0;
    }
}