/* HEADER */
header {
    background-color: #008080;        /*linear-gradient(to bottom, #4e89ae, #43658b);*/
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header h1 {
    margin: 0;
}

header h1 a {
    text-decoration: none;
    color: #fff;
}


/* LOGO */
.logo {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 2.3rem;
    color: white;
    text-transform: none;
    font-family: "Rowdies", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* HEADER NAV */
nav {
    z-index: 999;
    display: flex;
    align-items: center;
    flex-grow: 2;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #007373;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
    position: relative;         /*dropdown*/
}

nav ul li a {
    color: rgb(241, 232, 232);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #005959;
    color: white;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;           /* transition for background and text color */
}

.dropdown-content a:hover {
    background-color: #4f8c8c;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*HEADER RIGHT*/
.header-right {
    display: flex;
    align-items: center;
}

/* SEARCH BAR */
.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 25px;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#search-icon img {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

.search-container input {
    border: none;
    font-family: "Lato", sans-serif;
    outline: none;
    padding: 10px;
    border-radius: 25px;
    width: 200px;
}

.search-container #search-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    margin-left: 10px;
}

.suggestions {
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.suggestions a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
}

.suggestions a:hover {
    background-color: #f1f1f1;
}

.login-btn {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-left: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: rgb(21, 21, 21);
}