/* Navbar
====================================== */

.header {
    z-index: 6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    line-height: $nav-height;
    color: #fff;
    overflow: visible;
    background: $header;
    box-shadow: 0 0 5px rgba(#000, 0.5);

    a { color: #fff; }
}

.menu-title {
    display: inline-block;
    vertical-align: top;
    padding: 0 $small;

    span {
        display: inline-block;
        margin-top: -0.3rem;
        vertical-align: middle;
        line-height: 1;
    }

    &:hover span {
        text-decoration: underline;
    }
}

.header-title {
    padding: $x-small $medium;
}

.register-link {
    margin-left: $small;
}

.profile-link {
    display: inline-block;
    vertical-align: top;

    &:hover .username {
        text-decoration: underline;
    }
}

.profile-pic,
.username {
    display: inline-block;
    margin-top: -0.3rem;
    vertical-align: middle;
    line-height: 1;
}

.profile-pic {
    width: $medium;
    height: $medium;
    margin-left: 0.8rem;
    border-radius: 50%;

    @media screen and (max-width: 600px) {
        display: none;
    }
}

.newpost-link {
    position: relative;
    display: inline-block;
    height: $nav-height;
    width: 64px;
    vertical-align: top;
    margin-left: 0.5rem;
    padding: 0 1rem;
    font-size: 2em;
    cursor: pointer;

    svg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        fill: #fff;
    }
}