/* thread.css */
body {
    background-color: #121212; /* Dark background */
    color: #ffffff; /* Light text color */
}

.thread-container .breadcrumb {
    background-color: #1e1e1e !important; /* Use !important as a last resort */
    padding: 10px;
    margin: 20px auto 1rem;
    width: 100%;
    max-width: 100%;
}


.thread-title {
    border: 1px solid #007bff; /* Title border */
    padding: 10px;
    margin-bottom: 20px;
    background-color: #23272a; /* Darker background for title */
    color: #ffffff; /* Contrast text color */
    font-size: 1em; /* Larger font size */
}

.post-info {
    display: flex;
    margin-bottom: 15px;
}

.profile-box {
    width: 20%;
    padding: 10px;
    border: 1px solid #575757; /* Light border */
    border-radius: 5px;
    background-color: #23272a; /* Dark background */
    margin-right: 20px;
    text-align: center;
}

.profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px; /* Space below picture */
}

.username {
    font-weight: bold;
    color: #ffffff; /* White text for usernames */
    text-align: center;
}

.content-box {
    width: 80%;
    padding: 10px;
    border: 1px solid #575757;
    border-radius: 5px;
    background-color: #23272a; /* Darker background */
    color: #ffffff; /* White text */
    overflow-wrap: break-word; /* Handle long words */
    word-wrap: break-word; /* Older browsers */
    white-space: normal;
    position: relative;
}

.content-box img, video {
    max-width: 100%;
    height: auto;
}

.posted-date {
    font-size: 0.9em;
    color: #99aab5; /* Light gray text for dates */
    text-align: center;
    margin-top: 20px;
}

.edit-delete-buttons {
    display: inline-block;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Reply Section */
.reply-section {
    margin-top: 30px;
    border-top: 1px solid #575757;
    padding-top: 20px;
}

.reply {
    display: flex;

    padding: 10px;
    border-radius: 5px;

    margin-bottom: 15px;
}

.reply .profile-box {
    width: 20%;
    margin-right: 20px;
}

.reply .content-box {
    width: 80%;
    position: relative;
    padding: 10px;
}

.reply-date {
    font-size: 0.9em;
    color: #99aab5;
    bottom: 30px; /* Increased from 10px to 30px */
    right: 10px;
    text-align: right;
}


/* Button Styles */
button, .edit-button, .delete-button, .lock-button, .unlock-button, .stick-button, .unstick-button {
    text-decoration: none;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Button Colors */
.edit-button {
    color: #007bff;
}

.delete-button {
    color: #dc3545;
}

.lock-button {
    color: #ffc107; /* Yellow */
}

.unlock-button {
    color: #28a745; /* Green */
}

.stick-button {
    color: #17a2b8; /* Light Blue */
}

.unstick-button {
    color: #6c757d; /* Gray */
}

/* Button Hover */
button:hover, .edit-button:hover, .delete-button:hover, .lock-button:hover, .unlock-button:hover, .stick-button:hover, .unstick-button:hover {
    background-color: #99aab5;
    border-color: #575757;
}

/* Button Active */
button:active, .edit-button:active, .delete-button:active, .lock-button:active, .unlock-button:active, .stick-button:active, .unstick-button:active {
    background-color: #d1ecf1; /* Lighter active background */
    border-color: #007bff;
}

/* Button Focus */
button:focus, .edit-button:focus, .delete-button:focus, .lock-button:focus, .unlock-button:focus, .stick-button:focus, .unstick-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Modal Styles */
.modal-content {
    background-color: #1e1e1e; /* Dark modal background */
    color: #ffffff;
}

.modal-header {
    background-color: #495057;
    border-bottom: 1px solid #6c757d;
}

.modal-footer {
    background-color: #495057;
    border-top: 1px solid #6c757d;
}

#editReplyModal .modal-dialog, #editThreadModal .modal-dialog {
    max-width: 900px;
    width: 100%;
}
/* Only these buttons will have white text */
.stick-button.btn, 
.unstick-button.btn {
    color: #17a2b8;
}



@media (max-width: 1000px) {

    body {
        background-color: #121212; /* Dark background */
        color: #ffffff; /* Light text color */
    }

    .thread-container {
        padding: 10px; /* Reduced padding for mobile */
        border-radius: 5px; /* Rounded corners */
    }

    .thread-title {
        border: 2px solid #007bff; /* Title border */
        padding: 8px; /* Reduced padding */
        margin-bottom: 15px; /* Reduced margin */
        background-color: #23272a; /* Darker background for title */
        color: #ffffff; /* Contrast text color */
        font-size: 1.3em; /* Adjusted font size */
    }

    .post-info {
        display: flex;
        margin-bottom: 10px; /* Reduced margin */
    }

    .profile-box {
        width: 25%; /* Adjusted width */
        padding: 5px; /* Reduced padding */
        border: 1px solid #575757; /* Light border */
        border-radius: 5px;
        background-color: #23272a; /* Dark background */
        margin-right: 10px; /* Reduced margin */
        text-align: center;
    }

    .profile-picture {
        width: 40px; /* Adjusted profile picture size */
        height: 40px; /* Adjusted profile picture size */
        border-radius: 50%; /* Circular profile pictures */
        margin-bottom: 5px; /* Space below picture */
    }

    .username {
        font-weight: bold;
        color: #ffffff; /* White text for usernames */
        text-align: center;
    }

    .content-box {
        width: 100%; /* Full width on mobile */
        padding: 5px; /* Reduced padding */
        border: 1px solid #575757; /* Border for content box */
        border-radius: 5px; /* Rounded corners */
        background-color: #23272a; /* Darker background */
        color: #ffffff; /* White text */
        overflow-wrap: break-word; /* Handle long words */
        word-wrap: break-word; /* Older browsers */
        white-space: normal;
        position: relative; /* Positioning for content */
    }

    .content-box img, 
    .content-box video,
    .content-box iframe { /* Added iframe for videos */
        max-width: 100%; /* Ensure images and videos don't exceed the container */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Ensure no extra space below images/videos */
        object-fit: cover; /* Ensure images cover the container properly */
    }

    /* Add a specific rule for YouTube iframes to maintain aspect ratio */
    .content-box iframe {
        width: 100%; /* Full width for iframes */
        height: 200px; /* Set a default height; adjust as needed */
    }

    .posted-date {
        font-size: 0.8em; /* Adjusted font size */
        color: #99aab5; /* Light gray text for dates */
        text-align: center;
        margin-top: 15px; /* Reduced margin */
    }

    .edit-delete-buttons {
        display: inline-block;
        justify-content: flex-end;
        margin-top: 5px; /* Reduced margin */
        margin-bottom: 10px; /* Reduced margin */
    }

    /* Reply Section */
    .reply-section {
        margin-top: 20px; /* Reduced margin */
        border-top: 1px solid #575757; /* Border for reply section */
        padding-top: 15px; /* Reduced padding */
    }

    .reply {
        display: flex;

        padding: 5px; /* Reduced padding */
        border-radius: 5px; /* Rounded corners */

        margin-bottom: 10px; /* Reduced margin */
    }

    .reply .profile-box {
        width: 25%; /* Adjusted width for replies */
        margin-right: 10px; /* Reduced margin */
    }

    .reply .content-box {
        width: 75%; /* Adjusted width for replies */
        position: relative; /* Positioning for content */
        padding: 5px; /* Reduced padding */
    }

    .reply-date {
        font-size: 0.8em; /* Adjusted font size */
        color: #99aab5; /* Light gray text for dates */
        bottom: 10px; /* Space from bottom */
        right: 10px; /* Space from right */
        text-align: right;
    }

    /* Button Styles */
    button, .edit-button, .delete-button, .lock-button, .unlock-button, .stick-button, .unstick-button {
        text-decoration: none;
        background: none;
        border: 1px solid transparent;
        cursor: pointer;
        padding: 6px 10px; /* Adjusted padding */
        border-radius: 5px;
        transition: background-color 0.3s, border-color 0.3s;
    }

    /* Button Colors */
    .edit-button {
        color: #007bff;
    }

    .delete-button {
        color: #dc3545;
    }

    .lock-button {
        color: #ffc107; /* Yellow */
    }

    .unlock-button {
        color: #28a745; /* Green */
    }

    .stick-button {
        color: #17a2b8; /* Light Blue */
    }

    .unstick-button {
        color: #6c757d; /* Gray */
    }

    /* Button Hover */
    button:hover, .edit-button:hover, .delete-button:hover, .lock-button:hover, .unlock-button:hover, .stick-button:hover, .unstick-button:hover {
        background-color: #99aab5;
        border-color: #575757;
    }

    /* Button Active */
    button:active, .edit-button:active, .delete-button:active, .lock-button:active, .unlock-button:active, .stick-button:active, .unstick-button:active {
        background-color: #d1ecf1; /* Lighter active background */
        border-color: #007bff;
    }

    /* Button Focus */
    button:focus, .edit-button:focus, .delete-button:focus, .lock-button:focus, .unlock-button:focus, .stick-button:focus, .unstick-button:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }

    /* Modal Styles */
    .modal-content {
        background-color: #1e1e1e; /* Dark modal background */
        color: #ffffff; /* Light text color */
    }

    .modal-header {
        background-color: #495057; /* Header background */
        border-bottom: 1px solid #6c757d; /* Border below header */
    }

    .modal-footer {
        background-color: #495057; /* Footer background */
        border-top: 1px solid #6c757d; /* Border above footer */
    }

    #editReplyModal .modal-dialog, #editThreadModal .modal-dialog {
        max-width: 100%; /* Full width for modals on mobile */
        width: 100%; /* Full width for modals */
    }

    /* Only these buttons will have white text */
    .stick-button.btn, 
    .unstick-button.btn {
        color: #17a2b8;
    }
}



