body {
    font-family: "Verdana", "Roboto", sans-serif;
    background-color: #eef2ff;
    margin: 0;
    padding: 0;
    color: #000;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures the page takes full height of the screen */
}

.combine {
    display: inline-flex;
    background-color: #2d2d2d;
    width: 100%;

    font-style: italic;
}

.combine button {
    font-size: large;
}

.combine a {
    text-decoration: none;
    color: white;
}

.combine h1 {
    font-size: 1.5rem;
    color: white;
    padding: 10px;
    margin: 0;

    border-right: 1px solid #eef2ff;
    /* Adds a red line beneath the header */
}

a {
    color: #00f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.threads,
.posts {
    margin: 4px;
    text-align: left;

    flex-grow: 1;
    /* Allow the thread content to grow and take available space */
}

.thread,
.post {
    padding: 10px 5px;
    max-width: 100%;
}

.thread h2,
.post h2 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: #00f;
}


h2 .name {
    font-weight: bold;
    color: #1a9721;
}

h2 .date {
    font-size: 0.9rem;
    color: #000000;

}

h2 .post-id {
    font-size: 0.9rem;
    color: rgb(201, 43, 43);
    cursor: pointer;
}

h2 .post-id:hover {
    text-decoration: underline;
}

img.image {
    max-width: 200px;
    height: auto;
    display: block;
    margin-top: 5px;
    border: 1px solid #aaa;
    cursor: pointer;
}

img.full-size {
    cursor: zoom-out;
}

strong {
    color: #d9534f;
    font-weight: bold;
}

.reply-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

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

.backlink {
    font-size: 0.8rem;
    color: #007bff;
    margin-right: 5px;
}

.post-holder {
    display: flex;
    align-items: flex-start;
    /* Ensures the image aligns with the top of the post */
    margin-bottom: 10px;
    padding: 10px;
    /* Adjust padding for consistent spacing */
    padding-bottom: 4px;
    border-bottom: 1px solid #aaa;

    background-color: #bac4e7;

    width: fit-content;
    /* Automatically size the width based on content */
    max-width: 90%;
    /* Prevent posts from becoming too wide */
    min-width: 300px;
    /* Ensure smaller posts have a minimum width */
}

.post-holder.block {
    display: block;
}

.post-holder .image {
    max-width: 150px;
    /* Adjust the width of the image as necessary */
    margin-right: 10px;
    /* Adds spacing between the image and the post content */
    flex-shrink: 0;
    /* Prevent the image from shrinking */
    border: 1px solid #aaa;
    cursor: pointer;
}

.post-holder .post {
    flex: 1;
    /* Ensure the post content takes up available space */
    word-wrap: break-word;
    /* Break long words to avoid layout issues */
}

.greentext {
    color: green;
}

.redtext {
    color: red;
    font-weight: normal;
}

.reply-link {
    text-decoration: none;
}

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


form {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
}

textarea {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
}

button {
    background-color: #2d2d2d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.highlighted {
    background-color: #ffffcc;
    border: 1px solid #aaa;
}

/* Pagination at the bottom */
.pagination {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    position: sticky;
    bottom: 0;
}

/* Styling for the page selector dropdown */
select {
    padding: 8px 12px;
    font-size: 14px;
    margin-left: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
}

select:hover {
    background-color: #e9e9e9;
}

/* Pagination buttons */
.page-navigation a {
    text-decoration: none;
    color: #007BFF;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 4px;
}

.page-navigation a:hover {
    background-color: #e0e0e0;
}

/* Styling for page number information */
.page-navigation span {
    font-size: 16px;
    margin: 0 10px;
}

.threadbine {
    display: inline-flex;
    background-color: #4b4b4b;
    width: 100%;
    position: relative;
    text-align: center;
}

.threadbine button {
    font-size: large;
    background-color: #4b4b4b;
}

.threadbine a {
    text-decoration: none;
    color: white;
}

.threadbine h1 {
    font-size: 1rem;
    color: white;
    padding: 10px;
    margin: 0;

    border-left: 1px solid #eef2ff;
    /* Adds a red line beneath the header */

}

.backlinks {
    margin-left: 10px;
    font-size: 0.9em;
    color: gray;
}

.backlinks a {
    text-decoration: none;
    color: gray;
}

.backlinks a:hover {
    text-decoration: underline;
    color: red;
}

/* Add this to your CSS file or within the <style> tag */
.highlight {
    background-color: #f0c2c2;
}

.countdown{
    font-size: 1rem;
    color: white;
    padding: 10px;
    margin: 0;
    position: absolute; /* Position it absolutely within .threadbine */
    right: 10px; /* Adjust this to add space from the right edge */
    top: 50%; /* Vertically center it */
    transform: translateY(-50%); /* Align it exactly in the center */
}

