@font-face {
    font-family: neodgm;
    src: url('../fonts/neodgm.woff2') format('woff2'),
         url('../fonts/neodgm.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #fefee1;
    color: black;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.container {
    max-width: 800px; /* Constrain width for better readability */
    margin: 0 auto; /* Center the container */
    padding: 0 1em; /* Add padding to the sides for spacing */
}

h1, h2 {
    background-color: #fefee1;
    color: black;
    font-family: "neodgm", sans-serif;
    margin: 1em 0; /* Consistent vertical spacing */
    padding: 0.2em; /* Adds a bit of inner spacing */
    text-align: left;
}

p {
    margin: 0.3em 0; /* Reduced vertical spacing */
    padding: 0.1em; /* Reduced inner spacing */
    line-height: 1.4; /* Increased line spacing for paragraphs only */
}

/* Microblog specific styles */
.container ul, .container ol {
    margin: 0.3em 0;
    padding-left: 1.5em;
}

.container li {
    margin: 0.1em 0;
}

.container pre {
    margin: 0.3em 0;
    padding: 0.5em;
    background-color: #f5f5f5;
    border-radius: 3px;
    overflow-x: auto;
}

.container blockquote {
    margin: 0.3em 0;
    padding-left: 1em;
    border-left: 3px solid #ccc;
    color: #666;
}

.container hr {
    margin: 0.5em 0;
    border: none;
    border-top: 1px solid #ccc;
}

img {
    max-width: 100%; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
    max-height: 400px; /* Limit maximum height */
    display: block; /* Center the image */
    margin: 1em auto; /* Center horizontally with some vertical spacing */
}

.h2_sidebar {
    color: black;
    font-family: "neodgm", sans-serif;
    font-weight: bold;
    font-size: 20px;
    display: block;
    margin: 0; /* Align with container */
}

/* Navigation Styles */
.main-nav {
    background-color: #e1e1fe;
    border-bottom: 2px solid #d0d0d0;
    margin-bottom: 1em;
    padding: 0.5em 0;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    font-family: "neodgm", sans-serif;
    font-size: 14px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #d0d0d0;
    color: #000;
}

.nav-link.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-link.disabled:hover {
    background-color: transparent;
}

footer {
    text-align: center;
    background-color: #e1e1fe;
    color: grey;
    padding: 5px 0;
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
    font-family: "neodgm", sans-serif;
    margin: 0;
    font-size: 10px;
    line-height: 1.0;
}

footer img {
    display: inline;
    margin: 0;
    max-height: none;
}

display_title {
    font-family: "neodgm", sans-serif;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 1em 0; /* Consistent spacing with headings */
}

@media (max-width: 768px) {
    h1, h2 {
        font-size: 1.5em; /* Adjust font size for smaller screens */
    }

    footer {
        font-size: 12px;
        padding: 8px 0;
    }

    body {
        line-height: 1.4;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.25em;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75em 1em;
        font-size: 16px;
    }
}
