/* Navbar CSS */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--theme-white);
    width: 100%;
    z-index: 1;
    /* background-color: var(--theme-dark-purple); */
}

.navbar.opaque {
    background-color: var(--theme-dark-purple);
}

.logo {
    margin: 0.5rem 0.5rem 0.5rem 2.5rem;
    /* width: 100%; */
    /* margin: 0.5rem; */
    z-index: 5;
}

.logo>a>img {
    width: 6rem;
}

.navbar_items {
    position: relative;
    margin-right: 2rem;
    z-index: 2;
    /* transition: height 200ms ease; */
}

.navbar_items ul {
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar_items li {
    list-style: none;
}

.navbar_items li>div>a {
    text-decoration: none;
    color: #ccc;
    transition: color 150ms ease-in-out;
    padding: 1.2rem;
    display: block;
    font-size: 1.35rem;
}

.toggle-button {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    margin: 1.5rem 0.5rem 0.5rem 2.5rem;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

@media (max-width: 940px) {
    .toggle-button {
        display: flex;
    }
    .navbar_items {
        position: absolute;
        top: -100vh;
        display: flex;
        width: 100%;
        transition: top 400ms ease-in;
        background-color: var(--theme-dark-purple);
        z-index: 0;
    }
    .navbar_items.active {
        top: 7em;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar_items ul {
        width: 100%;
        flex-direction: column;
        margin-left: 1.7rem;
    }
    .active-btn {
        top: 3.2rem;
        display: flex;
    }
}

.dropdown {
    position: relative;
    color: #333;
}

.dropdown a {
    font-family: var(--spartan-font);
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
    z-index: 1;
}

.dropdown-menu.left {
    left: 0;
}

.dropdown-menu.right {
    right: 0;
}

.dropdown>.link {
    color: var(--theme-orange);
    filter: opacity(0.7);
    transition: filter 150ms ease;
}

.dropdown.active>.link,
.dropdown:hover>.link {
    filter: opacity(1.0);
}

.dropdown.active>.link+.dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu {
    width: 150px;
}

.dropdown-menu div {
    display: flex;
    flex-direction: column;
}

a.dropdown-link {
    margin: 0;
    padding: 10% 2%;
    border-bottom: 0.5px solid #e6e6e6;
    font-size: 1rem;
    color: var(--theme-light-purple);
    transition: color 200ms ease-in-out;
    text-decoration: none;
    text-align: left;
    font-family: var(--spartan-font);
    font-weight: 500;
}

a.dropdown-link:hover {
    color: var(--theme-dark-purple);
}

a.dropdown-link:last-child {
    border-bottom: none;
}

/* Navbar CSS ends here */