body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: darkslategray;
    color: white;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #222;
}

li {
    float: left;
    border-right: 1px solid #bbb;
}

li:last-child {
    border-right: none;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 1.5em 2em;
    text-decoration: none;
}

/* Change the link color to #111 (black) on hover */
li a:not(.active):hover {
    background-color: #111;
}

.active {
    background-color: #04AA6D;
}

/* Dropdown Button */
.dropbtn {
    display: block;
    color: white;
    text-align: center;
    padding: 1.5em 2em;
    text-decoration: none;  
    border-right: 1px solid #bbb;
    border-left: 1px solid #bbb;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0; /* Align to the right */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    left: auto; /* Reset the left position */
}

#threads-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.thread {
    border: 1px solid black;
    padding: 10px;
    width: 70%;
    margin-bottom: 20px;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.post-info {
    align-self: flex-end;
}

.post-time {
    align-self: flex-end;
    margin-top: auto;
}

.thread-title {
    margin: 0;
}

.posted-by {
    font-weight: bold;
}

.posted-at {
    font-size: smaller;
}

#searchFilter {
    width: 300px;
    padding: 5px;
    margin-bottom: 10px;
  }

@media screen and (max-width: 767px) {
    ul {
        display: flex;
        flex-direction: column;
    }

    li {
        float: none;
        border-right: none;
        border-bottom: 1px solid #bbb;
    }

    li a {
        text-align: left;
    }

    .column {
        flex: 100%;
        margin-bottom: 20px; 
        height: auto; 
    }
}
