
/* main nav menu */

navbar {
    display: block;
    height: 60px;
}

navbar a {
    float: right;
    padding-right: 30px;
    color: var(--background-color);
    text-decoration: none;
    font-size: 1.08em;
    font-weight: 600;
}

navbar a:first-child {
    padding-right: 50px;
}



/* hamburger menu */

nav {
    width: 200px;
    background-color: var(--text-color);
    color: var(--background-color);
    -webkit-clip-path: circle(24px at 30px 24px);
    clip-path: circle(24px at 32px 24px);
    -webkit-transition: -webkit-clip-path 0.5625s, clip-path 0.375s;
    transition: -webkit-clip-path 0.5625s, clip-path 0.375s;
    border-radius: 20px;
    position: absolute; /* fixed absolute */
    float:left;
    left: 20px;
    top: 20px;
    z-index: 99;
}


nav:hover {
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    -webkit-transition-duration: 0.75s;
    transition-duration: 0.75s;
    -webkit-clip-path: circle(720px at 225px 24px);
    clip-path: circle(720px at 150px 24px);
}

nav a {
    display: block;
    line-height: 50px;
    padding: 0px 20px;
    color: inherit;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: 100;
}

/* hide last spacer menu item. to work with menu outline  */
nav a:last-child {
    visibility: hidden;
    height: 30px;
}

nav a:hover {
    background: var(--background-color);
    color: var(--text-color);
}

.navicon {
    padding: 23px 20px;
    cursor: pointer;
    -webkit-transform-origin: 32px 24px;
    -ms-transform-origin: 32px 24px;
    transform-origin: 32px 24px;
}

.navicon div {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--background-color);
}

.navicon div:before,
.navicon div:after {
    display: block;
    content: "";
    width: 20px;
    height: 2px;
    background: var(--background-color);
    position: absolute;
}

.navicon div:before {
    top: -7px;

}

.navicon div:after {
    top: 7px;
}



/* back-to-top navigation */

.navTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: solid 2px var(--background-color);
    outline: none;
    background-color: var(--text-color);
    color: var(--background-color);
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 50%;
    font-size: 14px;
    font-family: var(--body-font-family);
    font-weight: 500;
}

.navTop a::before {
    content: "top";
    text-transform: lowercase;
}

.navTop a {
    text-decoration: none;
    color: var(--background-color);
}

.navTop:hover {
    background-color: var(--background-color);
    border-color: var(--text-color);
}

.navTop a:hover {
    color: var(--text-color);
}
