body {
    background-color: #008080;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Sticky Header */
.site-header {
    position: sticky;
    top: -1px;
    z-index: 1000;
    background-color: #008080;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* New Header Icon Styles */
.header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1rem;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 70px; 
    text-align: center;
}

.icon-button img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.icon-button p {
    margin: 0;
    font-size: 11px;
    white-space: nowrap; 
}

.header-copyright {
    font-size: 11px;
}

.post-window {
    margin-bottom: 2rem;
}

.post-document {
    background: #d5d5d5; 
    padding: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

.post-content blockquote {
    border-left: 4px solid #adadad;
    padding-left: 1em;
    margin-left: 1em;
    color: #555;
    font-style: italic;
}

.post-content pre {
    background: #f4f4f4;
    padding: 12px;
    border: 1px solid #999;
    overflow-x: auto;
    margin: 1em 0;
}

.post-content pre code {
    font-family: monospace;
    background: none;
    padding: 0;
    color: inherit;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    font-family: "Pixelated MS Sans Serif", "Arial";
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.post-content h1 { font-size: 18px; }
.post-content h2 { font-size: 16px; }
.post-content h3 { font-size: 14px; }
.post-content h4, .post-content h5, .post-content h6 { font-size: 12px; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 2rem;
}

.status-bar-field a {
    color: inherit;
    text-decoration: none;
}

.status-bar-field a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    color: white;
    text-shadow: 1px 1px #000;
}

/* --- Mobile Breakpoint --- */
@media (max-width: 641px) {
	.body {
		margin: 4px;
	}
    .site-header {
        margin-bottom: 4px;
        padding: 0;
    }

    .main-container {
        padding: 0;
    }

    .window {
        border: none;
    }
    
    .post-window {
        margin-bottom: 0;
        border-bottom: 2px solid #008080;
    }

    .post-window .title-bar {
        display: none;
    }
    
    .window-body {
        padding: 0.5rem;
    }

    .post-document {
        padding: 0;
    }

    .post-content {
        padding: 1rem; 
    }

    .status-bar {
        border-top: 1px solid grey;
    }

    .header-buttons {
        gap: 0;
        justify-content: space-around;
        width: 100%;
    }

    .header-copyright {
        display: none; 
    }
}