* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;  /* Dark background */
    color: #ffffff;  /* Light text */
}

.feed-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.post {
    background-color: #1e1e1e;  /* Dark post background */
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #333333;  /* Subtle border */
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.user-info {
    flex-grow: 1;
}

.username {
    font-weight: bold;
    color: #ffffff;  /* Bright white for username */
}

.timestamp {
    font-size: 0.8em;
    color: #888888;  /* Muted gray for timestamp */
}

.post-content {
    margin-bottom: 12px;
    color: #e0e0e0;  /* Slightly muted white for content */
    line-height: 1.4;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #ffffff;
}

.loading {
    text-align: center;
    padding: 60px 24px;
    display: block;
    font-size: 1.35rem;
    line-height: 1.9;
    color: #555;
    max-width: 540px;
    margin: 0 auto;
}

.post-metrics {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.9em;
    display: flex;
    gap: 20px;
}

.post-metrics span {
    display: inline-block;
}


.logo {
    position: sticky;
    top: 0;
    font-size: 28px;
    font-weight: bold;
    padding: 20px 20px 40px 20px;
    margin: -20px -20px 0 -20px;
    background: linear-gradient(to bottom, #121212 60%, rgba(18, 18, 18, 0) 100%);
    z-index: 100;
}


/* Add media query for mobile devices */
@media (max-width: 1024px) {

    
    .feed-container {
        margin-left: auto; /* Reset margin on smaller screens */
    }
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}





/* Side by side layout on wider screens */
@media (min-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        margin-left: 0;
        max-width: 800px;
    }
}

/* Ensure posts align left */
#posts {
    text-align: left;
}

@media (min-width: 769px) {
    .feed-container {
        padding: 20px;
        margin: 0 auto; /* Center the feed */
    }
}


.post-source {
    margin-left: auto;
    font-size: 0.8em;
    color: #555555;
    text-decoration: none;
}

.post-source:hover {
    color: #888888;
}

.post-caption {
    font-size: 0.75em;
    color: #666666;
    margin-top: -8px;
    margin-bottom: 10px;
    padding-left: 2px;
}