:root {
    --icon-demos-tf: url('inline://images/logo.svg');
    --icon-steam: url('inline://images/steam_login.svg');
}

header {
    width: 100%;
    white-space: nowrap;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgb(183, 183, 183);
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    text-transform: uppercase;

    & a, & a:visited {
        color: var(--text-secondary);
        cursor: pointer;
        padding: .5em 1em;
        text-decoration: none;
        display: block;
        line-height: 24px;
    }

    .main a {
        background: var(--icon-demos-tf) no-repeat 0;
        background-size: 30px;
        padding-left: 35px;
        margin-left: 5px;
    }

    & > span {
        left: 0;
        top: 0;
        z-index: 3;
        padding: 0;
        float: left;
        max-width: 220px;
        position: relative;

        &.beta {
            margin-right: 20px;

            &:after {
                content: 'beta';
                color: var(--highlight-primary);
                text-transform: uppercase;
                font-size: 12px;
                position: absolute;
                right: -15px;
                top: 2px;
                font-weight: bold;
            }
        }
    }

    & > ul {
        top: 0;
        float: right;
    }

    @media (max-width: 550px) {
        .main a {
            width: 0;
            overflow: hidden;
            padding-right: 0;
        }
    }

    @media (max-width: 650px) {
        .upload {
            display: none;
        }
    }

    & .right {
        text-transform: none;
    }
}

a.steam-login:before {
    content: '';
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.05);
    height: inherit;
    width: 41px;
    background-size: 30px 30px;
    background: rgba(255, 255, 255, 0.08) var(--icon-steam) no-repeat 0;
    bottom: 0;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
}

a.steam-login, a.steam-login:visited {
    display: inline-block;
    height: 41px;
    margin: -1px 0;
    background-color: #5A8E27;
    color: white;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.25);
    line-height: 22px;
    position: relative;
    padding-left: 50px;
}
