/* Post Page Styles */
.post-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.post-author {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.2em;
    line-height: 1.6;
    padding: 0 20px;
    color: #333;
}

.post-thumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.post-container img {
    max-width: 256px;
    height: auto;
    margin: auto;
    padding-bottom: 20px;
    display: block;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination a {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #0056b3;
}

.pagination span {
    font-size: 1.2em;
    color: #666;
}

/* Comments Section Styling */
.comments-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.comments-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    margin-top: 15px;
    background-color: #e9e9e9;
    border-radius: 5px;
    position: relative;
}

.comment strong {
    color: #007BFF;
    font-size: 1.1em;
    margin-right: 10px; /* Adds space between the username and time ago */
    display: inline; /* Change display to inline to keep it on the same line */
}

.comment .time-ago {
    font-size: 0.9em;
    color: #666; /* A slightly lighter color for the time ago text */
}

.comment p {
    margin: 5px 0 0 0; /* Adjust the margin for the paragraph to give some space above it */
    font-size: 1em;
    color: #333;
}

/* Reply Comment Styling */
.comment.reply {
    margin-top: 15px;
    margin-left: 20px;
    padding: 10px;
    background-color: #f1f1f1;
    border-left: 3px solid #007BFF;
    border-radius: 5px;
}

.post-container .admin-owner, .comment .admin-owner {
    color: rgb(180, 2, 2) !important; /* Red color for owners and admins */
}

.post-container .editor-user, .comment .editor-user {
    color: #cd8d01 !important; /* Color for editors */
}

.post-container .regular-user, .comment .regular-user {
    color: #007BFF !important; /* Color for regular users */
}

.highlight {
    background-color: yellow;
    transition: background-color 0.3s ease;
}



/* Reply Form Styling */
.reply-form {
    margin-top: 10px;
}

.reply-form textarea {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.reply-form button {
    background-color: #007BFF;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reply-form button:hover {
    background-color: #0056b3;
}

/* Comment Form Styling */
.comment-form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.comment-form textarea {
    resize: none;
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.comment-form button {
    align-self: flex-end;
    background-color: #28a745;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background-color: #218838;
}

.post-voiceover {
    text-align: center;
    margin-bottom: 20px;
}

.post-voiceover audio {
    width: 300px;
}

/* Edit and Delete Button Styling */
.editComment, .deleteComment {
    background-color: #007BFF;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.6em;
    margin-right: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.editComment:hover, .deleteComment:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.deleteComment {
    background-color: #dc3545;
}

.deleteComment:hover {
    background-color: #c82333;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;  Ensures vertical centering */
    text-align: center; /* Centers inline-block children horizontally */
}

.image-container {
    background-color: #f0f0f0; /* Light grey background */
    padding: 20px;
    padding-bottom: 10px;
    border-radius: 8px; /* Rounded corners */
    display: inline-block; /* Adjust width as needed */
    /*margin: 20px auto; /* Center the container */
    text-align: center;
}

.caption {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.imgFloat {
    max-height: 600px !important; /* Ensures the height is prioritized */
    max-width: 100% !important;   /* Ensures the image width doesn't exceed container */
    padding-bottom: 10px !important;
    width: auto !important;       /* Maintains aspect ratio */
    height: auto !important;      /* Maintains aspect ratio */
    display: block;
}

.imgFloat2 {
    max-height: 300px !important; /* Ensures the height is prioritized */
    max-width: 100% !important;   /* Ensures the image width doesn't exceed container */
    padding-bottom: 10px !important;
    width: auto !important;       /* Maintains aspect ratio */
    height: auto !important;      /* Maintains aspect ratio */
    display: block;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-container img {
        padding: 10px 0;
    }

    .post-container {
        max-width: 85%;
        margin: 0 auto;
    }

    .post-title, .post-author {
        text-align: center;
    }

    .post-content {
        padding: 0;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pagination a, .pagination span {
        font-size: 1em;
    }

    .comments-section {
        margin: 10px;
        padding: 10px;
    }

    .comment {
        padding: 10px;
    }

    .comment strong {
        font-size: 1em;
    }

    .comment.reply {
        margin-left: 10px;
        padding: 8px;
    }

    .reply-form textarea {
        padding: 6px;
    }

    .reply-form button {
        padding: 6px 10px;
    }

    .comment-form textarea {
        padding: 8px;
    }

    .comment-form button {
        padding: 8px 10px;
    }

    .post-voiceover audio {
        width: 150px;
    }
}
