header {
    background-color: rgb(175, 38, 38);

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header * {
    color: white;

    display: inline-block;
}

header a:hover, a:focus {
    color: rgb(255, 255, 161);

    /* Override default link behavior */
    text-decoration: none;
}

header img {
    padding: 2em;
    padding-right: 1em;

    vertical-align: middle;

    max-width: 5em;
}

/* Desktop-first */
.slicknav_menu {
    display: none;
}

#nav_menu {
    float: right;

    padding: 2.3em 1em;

    font-size: 125%;
}

#nav_menu ul {
    list-style-type: none;

    text-align: left;
}

#nav_menu ul li {
    margin-top: .5em;

    /* This particular approximation works for borders between the items */
    padding: 0 .5em 0 .2em;

    font-weight: bold;

    border-right: 2px solid rgb(255, 255, 255);
}

#nav_menu #lastNavItem {
    border: none;
}

/* Highlight the current page's link */
.current {
    color: rgb(255, 213, 62);
}

/* Narrow desktop */
@media only screen and (max-width: 1024px) {
    header {
        text-align: center;
        font-size: 80%;
    }

    /* Fix for image pushing nav_menu down */
    header a {
        display: inline;
    }

    header img {
        display: block;
        float: left;

        padding-bottom: 0;
    }

    #nav_menu {
        padding-top: 0;
        padding-bottom: 1em;

        display: block;
        
        float: none;

        text-align: center;
    }
}

/* Mobile horizontal */
@media only screen and (max-width: 768px) {
    header {
        padding: 0;
    }
}

/* Fixes for collisions on mobile */
@media only screen and (max-width: 620px) {
    header h1 {
        padding: 0 1em;

        font-size: 150%;
    }

    header img {
        padding-top: 1em;
    }

    header li {
        font-size: 85%;
    }
}

/* Image collision */
@media only screen and (max-width: 425px) {
    header {
        font-size: 75%;
    }
    
    header img {
        display: none;
    }
}
