.navmain {
position: sticky;
top: 0;
z-index: 1000;
}

.navmainlinks {
display: flex;
list-style: none;
margin: 0;
padding: 0;
background: #191919;
}

.navmainlinks li {  flex: 1;  }

.navmain a {
display: flex;
justify-content: center;
align-items: center;
color: #f2f2f2;
padding: 14px;
text-align: center;
text-decoration: none;
transition: background 0.3s, color 0.3s;
border-right: 3px solid #39FF14;
}

.navmainlinks li:last-child a { border-right: none; }

.navmain a:hover {
color: #000000;
background-color: #009933;
}

.navmain a.active {
font-style: italic;
font-weight: bold;
}