/* General styles for the page */
html,
body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1b;
    color: #d7dadc;
    margin: 0;
    padding: 0;
}

/* Container for centering content */
.container {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
}

/* Styles for each post */
.post {
    background-color: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Styles for the post title */
.post-title {
    font-weight: 500;
    font-size: 1.125em;
    color: #d7dadc;
    margin-bottom: 10px;
}

/* Styles for the post selftext */
.post-selftext {

    /* Example font, change to desired */
    color: #9e9e9e;
    /* Muted grey color */
    font-size: 0.845em;
    margin-top: 10px;
    font-style: italic;
}

/* General styles for text and links inside posts */
.summary,
.post-text,
.post a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.summary {
    margin-bottom: 20px;
    background-color: #272729;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 0.9em;
    color: #d7dadc;
}

/* Styles for timestamps, usernames, subreddits */
.timestamp,
.username,
.subreddit,
.post-header,
.post-stats {
    font-size: 0.875em;
    margin-bottom: 5px;
}

.subreddit {
    color: #D7B75B;
}

/* Styles for images within posts */
.thumbnail-img,
.post img {
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}

/* Styles for post statistics */
.post-stats {
    font-size: 0.875em;
    color: #818384;
}

.post-stats a {
    color: inherit;
    text-decoration: none;
    margin-left: 5px;
}

/* Footer styles */
footer {
    text-align: center;
    font-size: smaller;
    padding: 15px;
    color: #828282;
    background-color: #1a1a1b;
}

/* Navbar styles */
.navbar {
    background-color: #1a1a1b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #D7B75B !important;
}

.nav-link {
    color: #D7B75B !important;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Styles for the YouTube video wrapper */
.youtube-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    padding-top: 30px;
    /* adjust as needed */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: black;
    margin-top: 15px;
    border-radius: 5px;
}

.youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timestamp {
        margin-top: 5px;
    }
}