/* General styling for the homepage */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1.5rem 0 1.5rem;
    background-color: #f0f0f0; /* adjust as needed */
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-center h3,
.header-center h4 {
    margin: 0;
    line-height: 1.2;
}

/* Drop-down styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #333;
    color: white;
    padding: 14px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #555;
}

.auth-buttons {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

/* Styles for the login and register links */
.auth-buttons a {
    margin-left: 10px;
    padding: 6px 12px; 
    background-color: #333;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.auth-buttons a:hover {
    background-color: #555;
}

.logout-button {
    float: right;
    padding: 10px 20px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 20px;
}

.logout-button:hover {
    background-color: #e60000;
}

/* Float logout button to the right */
.logout-item {
    margin-left: auto; /* This pushes the logout button to the right */
}
