#menuWrapper {
    top: 0;
    position: relative;
    height: 50px;
    width: 100%;
    z-index: 1000;
}

#menu {
    padding-left: 10px;
    padding-right: 10px;

    overflow: hidden;
    height: 100%;

    background-color: #303030;
}

#menuWrapper.fancy {
    position: fixed;
}

#menuWrapper.fancy > #menu {
    background-color: rgba(50, 50, 50, 0);
    transition: background-color 0.3s ease, color 1s ease;
}

#menuWrapper.fancy > #menu.fixed {
    background-color: #303030;
}

#menuWrapper.fancy > #menu:not(.fixed) a {
    color: #2b2b2b;
}

#menu a {
    position: relative;
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    margin: 14px;
    text-decoration: none;
}

#menuWrapper.fancy > #menu:not(.fixed) a:before {
    background-color: #2b2b2b;
}

#menuWrapper.fancy > #menu.fixed a:before {
    background-color: #f2f2f2;
}

#menuWrapper:not(.fancy) > #menu a:before {
    background-color: #f2f2f2;
}

/* Fancy underline on links */
#menu a:before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 1.5px;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform  0.3s ease-in-out 0s;
}

/* Hover underline on menu links */
#menu a:hover:before {
    visibility: visible;
    transform: scaleX(1);
}

#menu a.currentSection:before {
    transform: scaleX(1);
}

.menuItem {
    font-family: Helvetica, "Trebuchet MS", Verdana, sans-serif;
    font-weight: normal;
}

/* Move anchors to account for the menu being at the top of the page. */
.anchor {
    display: block;
    position: relative;
    width: 0;
    height: 0;
    z-index: -1;
    top: -50px;
    left: 0;
    visibility: hidden;
}
