
/* header styles */

.header {
    isolation: isolate;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--color-text-inverted);
    background-color: var(--color-bg-inverted);
}

.header_wrapper {
    height: var(--header-height);
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_logo {
    font-size: var(--header-text-link);
    font-weight: var(--font-medium);
}

.header_content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}


.header_nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header_link {
    font-size: var(--header-text-link);
    color: var(--color-text-inverted);
    text-decoration: none;
}

.header_link:hover {
    text-decoration: underline;
    text-underline-offset: var(--space-1);
}

.header_link:visited {
    color: var(--color-text-inverted);
}

.header_link.selected {
    font-weight: var(--font-medium);
    text-decoration: underline;
    text-underline-offset: var(--space-1);
}

.header_open-button {
    display: none;
    stroke: var(--color-text);
}

.header_open-button.white {
    stroke: white;
}

.header_close-button {
    display: none;
}

@media screen and (width <= 820px) {
    .header_wrapper {
        padding-inline: 8px;
    }
}

@media screen and (width <= 639px) {
    .open {
        display: grid;
        text-align: center;
        place-content: center;
        gap: 1rem;
    }
}

.avatar {
    position: relative;
    color: white;
    font-weight: 600;
}

.avatar_icon {
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.avatar_dropdown {
    width: 150px;
    font-weight: 400;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-1);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background-color: var(--gray-100);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.avatar_dropdown.show {
    display: grid;
}

.avatar_dropdown_link {
    font-size: var(--header-text-link);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-1);
    padding-inline: var(--space-2);
}

.avatar_dropdown_link:hover {
    background-color: var(--gray-200);
}

.avatar_dropdown_link:visited {
    color: var(--color-text);
}

