@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

@font-face {
    font-family: 'WF Visual Sans';
    src: url('./font/WFVisualSansVF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'WF Visual Sans', Arial, sans-serif;
    background-color: #fff;
    color: black;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background-color: transparent; /* Initially transparent */
    border-bottom: none;          /* No border at top */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background-color: white;         /* White background on scroll */
    border-bottom: 1px solid black;   /* Border when scrolled */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.navbar-left {
    display: flex;
    align-items: center;
}

/* Remove text decoration and inherit original color for the home link */
.navbar-home-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 30px;
    margin-right: 5px;
}

.navbar-title {
    font-size: 24px;
    font-weight: 700;
    margin-right: 30px;
    font-family: 'Righteous', cursive;
    color: black;
}

.menu {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 400;
    color: black;
}

/* Let links inherit color from their parent */
.menu-item a {
    text-decoration: none;
    color: inherit;
}

.menu-item {
    position: relative;
    cursor: pointer;
}

.menu-item span {
    display: flex;
    align-items: center;
}

.menu-item .dropdown-icon {
    width: 15px;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown {
    position: absolute;
    top: calc(100% + 15px); /* moves dropdown 10px below the menu item */
    left: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    min-width: 170px;
    border: 1px solid black;
    display: none;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
}

.dropdown a:hover {
    background-color: #f2f2f2;
}

.navbar-right {
    display: flex;
    align-items: center;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007BFF;  /* Same blue as the sign-up button */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 110%;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid black; 
    min-width: 150px;
    display: none;
    z-index: 1001;
}


.profile-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
}

.profile-menu a:hover {
    background-color: #f2f2f2;
}

.search-icon {
    height: 18px;
    width: 18px;
    margin-right: 15px;
    cursor: pointer;
}

.login-text {
    margin-right: 20px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    color: black;
    text-decoration: none;
    border: none;
}

.signup-button {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    background-color: #007BFF;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    cursor: pointer;
}
