section.menu {
    position: absolute;
    padding: 0;
    margin-top: 6.1rem;
    margin-left: -20rem;
    border-top: 1px solid black;
    background-color: white;
}

section.menu ul {
    margin-top: 0;
    padding-left: 1rem;
}

section.menu li {
    margin-left: 1rem;
    padding: 0;
    list-style-type: none;
    border-left: 1px solid black;
}

section.menu li.first {
    padding-top: 0.5rem;
}

section.menu li:last-child {
    border-left: 1px solid transparent;
}

section.menu li span {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0 0.3rem 1rem;
}

section.menu li span::before {
    position: absolute;
    top: 0;
    bottom: 50%;
    left: -1px;
    width: 1rem;
    content: '';
    border: 1px solid black;
    border-top: none;
    border-right: none;
}

section.menu li span a {
    display: inline-block;
    padding: 0 0.2rem;
    text-decoration: none;
    color: black;
    background-color: white;
    border: 0.1rem solid black;
    box-shadow: 0.2rem 0.2rem gray;
}

section.menu li span a.highlight {
    background-color: antiquewhite;
}

section.menu li span a:hover {
    color: white;
    background: black;

}

div.dropdown {
    display: none;
}

@media only screen and (max-width: 1250px) {
    div.dropdown {
        display: block;
        margin-top: 1rem;
        border: 0.1rem solid black;
        box-shadow: 0.2rem 0.2rem gray;
        padding: 0.3rem;
    }

    div.dropdown:hover {
        cursor: pointer;
    }

    div.dropdown.open {
        box-shadow: none;
        /* Offset for the box shadow position. */
        margin-top: 1.2rem;
        margin-left: 0.2rem;
        margin-bottom: -0.2rem;
    }

    .menu-wrap {
        /* Needed to give the menu element the correct width. */
        position: relative;
        margin-right: 0.4rem;
    }

    section.menu {
        position: absolute;
        width: 100%;
        display: block;
        margin-top: 2px;
        margin-left: 0.2rem;
        border: 0.1rem solid black;
    }

    section.menu.hidden {
        display: none;
    }

    .bars {
        display: inline-block;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 15px;
        height: 2px;
        background-color: #333;
        margin: 2px 0;
        transition: 0.4s;
    }

    /* Rotate first bar */
    .x .bar1 {
        transform: translate(0, 4px) rotate(-45deg);
    }

    /* Fade out the second bar */
    .x .bar2 {
        opacity: 0;
    }

    /* Rotate last bar */
    .x .bar3 {
        transform: translate(0, -4px) rotate(45deg);
    }
}