header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5rem;
    width: 100%;
    transition: top 0.5s ease-in-out;
    padding: 1rem;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(0.625rem);
    z-index: 1000;
}

.hiddenHeader {
    top: -5rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.25rem;
    height: 3.0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 3rem;
    user-select: none;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-menu, .auth-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu {
    justify-content: flex-start;
}

.auth-menu {
    justify-content: flex-end;
}

nav li {
    list-style: none;
    margin-left: 1rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    position: relative;
}

nav a:hover {
    color: #cccccc;
    transform: scale(1.2);
}

nav a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: -0.5em;
    content: "";
    display: block;
    height: 0.125rem;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

nav a:hover:after {
    width: 100%;
    left: 0;
}

.main-menu li {
    margin: 0 0.5rem;
    position: relative;
}

.auth-menu li {
    margin-left: 1rem;
}

.dropdown-menu {
    background-color: rgba(26, 26, 26, 0.9);
    border-radius: 0.5rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding: 0 0;
    margin-top: 0.5rem;
    width: max-content;
    text-align: center;
}

.dropdown-menu li {
    margin: 1.2rem 0;
    padding: 0.5rem 1rem;
    text-align: center;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown > a::after {
    content: none;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.toggle-button {
    display: none;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
        width: 100%;
        display: none;
        position: absolute;
        top: 5rem;
        left: 0;
        background-color: rgba(26, 26, 26, 0.9);
    }

    .menu-container.active {
        display: flex;
    }

    .main-menu, .auth-menu {
        flex-direction: column;
        width: 100%;
    }

    .main-menu li, .auth-menu li {
        margin: 1rem 0;
    }

    .toggle-button {
        display: block;
    }

    .dropdown-menu {
        position: relative;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background-color: transparent;
    }

    .dropdown-menu li {
        margin: 0;
        padding: 0.5rem 1rem;
    }

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

    .dropdown:hover > a:after {
        transform: none;
    }
}
