body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px;
}

footer {
    text-align: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Markdown-specific styles */
#blog-content {
    text-align: left;
    max-width: 800px; /* Optional for readability */
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    font-size: 1rem;
    background-color: #fff; /* Optional to contrast with the body */
    border-radius: 5px; /* Optional for a polished look */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional for subtle depth */
}

#blog-content h1, #blog-content h2, #blog-content h3, #blog-content h4, #blog-content h5, #blog-content h6 {
    font-weight: bold;
    margin: 20px 0 10px;
}

#blog-content h1 {
    font-size: 2rem;
}

#blog-content h2 {
    font-size: 1.75rem;
}

#blog-content h3 {
    font-size: 1.5rem;
}

#blog-content p {
    margin: 10px 0;
}

#blog-content ul, #blog-content ol {
    margin: 10px 0 10px 20px;
    padding: 0;
}

#blog-content li {
    margin-bottom: 5px;
}

#blog-content strong, #blog-content b {
    font-weight: bold;
}

#blog-content em, #blog-content i {
    font-style: italic;
}

#blog-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
}

#blog-content pre {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    padding: 10px;
    overflow-x: auto;
    border-radius: 3px;
}

#blog-content blockquote {
    margin: 10px 20px;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #ccc;
    font-style: italic;
}

#blog-content img {
    max-width: 100%;
    height: auto;
}

#blog-content a {
    color: #0066cc;
    text-decoration: none;
}

#blog-content a:hover {
    text-decoration: underline;
}

#blog-section {
    max-width: 800px;
    margin: 20px auto; /* Center the section */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional for subtle depth */
}

/* Responsive images - scale to fit screen */
img {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Homepage feed styles */
#recent-feed {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.feed-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feed-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f4f4f9;
    padding-bottom: 10px;
}

.feed-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f4f4f9;
}

.feed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feed-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.feed-item a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.feed-item a:hover {
    text-decoration: underline;
}

.feed-pictures {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.blog-preview {
    color: #666;
    font-size: 0.95rem;
    margin-top: 8px;
    line-height: 1.5;
}

/* Fullscreen image modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    #recent-feed {
        padding: 10px;
    }

    .feed-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}