header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 0px 64px;
    min-height: 64px;
    gap: 0px 32px;
}

header .left {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
}

header .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0px 20px;

    flex-wrap: wrap;
    flex-shrink: 1;
    flex-basis: auto;
    flex-grow: 0;
}

header #logo {
    height: 30px;
    margin-right: 16px;
}

header .menu-line {
    display: flex;
}

header .menu-item {
    position: absolute; /* this item will make flex ignore it */
    color: white;
    text-decoration: none;
    padding: 16px 0px 16px 0px;
}

header .menu-item:hover, header .menu-item.selected {
    font-weight: bold;
    letter-spacing: -0.75px;
}

header .menu-line .menu-item.hidden {
    display: inline-block;
    position: relative;     /* restore normal flow */
    font-weight: bold;      /* reserve space for the bold state */
    visibility: hidden;    /* invisible but takes up width */
    pointer-events: none;   /* make sure it's not clickable */
}

@media screen and (max-width: 769px) {
    header {
        flex-direction: column;
    }

    header .left {
        margin-top: 8px;
        margin-bottom: 16px;
    };

    header .right {
        flex-direction: column;
        justify-content: center;
        margin: 16px 0;
    }

    header .menu-line a {
        padding: 6px 16px;
        margin: 0;
    }
}