nav {
    background: linear-gradient(hsl(70, 8%, 15%), hsl(55, 11%, 22%));
    /*border-top: 1px dotted blue;*/
    /*border-bottom: 2px groove blue;*/
    padding: 0.5em;
    padding-bottom: 1.2em;
    top: 0; /* NOTE: consider using https://wicky.nillia.ms/headroom.js/ on this to hide/show it while scrolling */
}

@media screen and (min-width: 1024px) {
    nav {
        position: sticky;
    }
}

nav section {
    display: inline-block;
    margin: 0; /* NOTE: we can't use margin-left: auto; and margin-right: auto; here because we are not setting the width - so we use translate instead */
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

#nav-logo {
    text-align: left;
    /*position: absolute;*/
    /*float: left;*/
    display: inline-flex;
    flex: auto;
    font-size: 1.5em;
    transition: opacity 1s;
    opacity: 1.0;
}

#nav-logo.hidden {
    opacity: 0;
}

nav section li {
    text-align: center;
    list-style: none;
    display: inline-flex;
    flex: initial;
    vertical-align: middle;
    margin-left: 0.5em;
    margin-right: 0.5em;
    /*margin-top: 0.5em;*//*without this, when the browser is too narrow, they overlap */
}

.button {
    text-decoration: none;
    font-weight: bold;
    background-color: #538fbe;
    border: 1px solid #2d6898;
    background-image: linear-gradient(bottom, rgb(73,132,180) 0%, rgb(97,155,203) 100%);
    border-radius: 5px;
    text-shadow: 0px -1px 0px rgba(0,0,0,.5);
    box-shadow: 0px 6px 0px #2b638f, 0px 3px 15px rgba(0,0,0,.4), inset 0px 1px 0px rgba(255,255,255,.3), inset 0px 0px 3px rgba(255,255,255,.5);
    transition: all 0.5s ease-out;
}

.button:hover {
    border: 1px solid #538fbe;
    box-shadow: 0px 6px 0px #2b638fcc, 0px 3px 15px rgba(0,0,0,.4), inset 0px 1px 0px rgba(255,255,255,.5), inset 0px 0px 3px rgba(255,255,255,.8);
}

.button:active {
    background-image: linear-gradient(bottom, rgb(97,155,203) 0%, rgb(73,132,180) 100%); /* reverse gradient */
    box-shadow: 0px 6px 0px #2b638fcc, 0px 3px 10px rgba(0,0,0,.6), inset 0px 1px 0px rgba(255,255,255,.5), inset 0px 0px 3px rgba(255,255,255,.8); /* reduce bottom border/shadow size */
    transform: translate(0, 4px); /* move button down like it is being clicked */
}

nav section li a {
    /* ensure that the link extends the full size of the li container for hoverability and clickability to be consistent */
    display: block;
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    /*font-family: 'Slackey', cursive;*/
    text-decoration: none;
    position: relative;
    transition: color 0.5s ease-in-out;
    color: white;
}

nav section li a:hover {
    color: yellow;
}

.current a {
    color: #cccccc;
}

.current a:hover {
    color: #ccffcc;
}

.current a::before {
    content: '(';
}

.current a::after {
    content: ')';
}

.current:hover {
    background: linear-gradient(bottom, rgb(97,155,203) 0%, rgb(73,132,180) 100%);
}
