.header { position: sticky; top: 0; left: 0; width: 100%; height: 60px; display: block; background-color: white; z-index: 99; color: #151515; } .inner_header { display: flex; align-items: center; width: 60%; height: 100%; margin: 0 auto; } .logo_container { display: flex; justify-content: center; align-items: center; height: 100%; max-width: 150px; margin-right: auto; text-decoration: none; text-align: center; } .navbar { display: flex; flex-direction: row; flex-wrap: wrap; list-style: none; } .nav_item { position: relative; display: flex; justify-content: center; align-items: center; } .nav_item_inner { padding-left: 1rem; padding-right: 1rem; } .nav_item_inner:hover { color: var(--accent-colour-highlighted); } .OnPage { color: var(--accent-colour); } @media (min-width:1024px) and (max-width: 1550px) { .inner_header { width: 70%; } } @media (min-width:521px) and (max-width: 1024px) { .inner_header { width: 80%; } } @media (min-width:351px) and (max-width: 520px) { .inner_header { width: 90%; } }