:root {
    --background-color: #171717;
}


/* Set html and body to full height and remove default margins and paddings */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Base styles for body */
body {
    display: flex;
    flex-direction: column;
    background-color: #171717;
    color: #B4B4B4;
    font-family: sans-serif;
    font-size: 18px; /* Set default text font size to 14px */
}

/* Anchor tags */
a {
    color: #e6aace; /* Purple accent color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   2. Layout Components
   =========================== */

/* Wrapper to take up remaining space */
.wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Content area */
.content {
    flex: 1;
}

/* Container for main content */
.container {
    width: 90%;
    max-width: 800px; /* Lowered from 1200px to 800px for better readability */
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   3. Navbar Styles
   =========================== */

/* Navbar remains unaffected */
.navbar {
    background-color: #262626;
    width: 100%;
}

.navbar .navbar-content {
    max-width: 1200px; /* Maintains original width */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
}

.nav-left a,
.nav-right a {
    padding: 0 10px;
}

/* ===========================
   4. Footer Styles
   =========================== */

footer {
    background-color: #262626;
    width: 100%;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: #e6aace;
}

/* ===========================
   5. Typography
   =========================== */

/* Headings within container */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6 {
    color: #F7F1DE;
    margin-top: 50px;
    /* Adjust font sizes for headings */
    font-family: inherit; /* Use the same font as the body */
}

/* Post title */
.post-title {
    text-align: center;
    margin-top: 20px;
    font-size: 1.75em;
}

/* Post meta information */
.post-meta {
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 0.875em;
}

/* Post content */
.post-content {
    line-height: 1.6;
    font-size: 1em;
}

.post-content p {
    margin-bottom: 1em;
}

/* ===========================
   6. Image Styles
   =========================== */

/* Set images within container to have max-width 100% and center them */
.container img {
    max-width: 100%; /* Ensure images do not exceed container width */
    height: auto;    /* Maintain aspect ratio */
    display: block;
    margin: 0 auto;  /* Center images */
}

/* ===========================
   7. MathML Styles
   =========================== */

/* Increase MathML font size and align with text */
math {
    vertical-align: middle; /* Align vertically with surrounding text */
}

a.footnote-ref::before {
    content: "[";
}

a.footnote-ref::after {
    content: "]";
}

code {
    font-family: "Courier New";
}