<style>
* {box-sizing: border-box}
body {font-family: Arial, Helvetica, sans-serif;}

.navbar {
  width: 100%;
  background-color: black;
  overflow: auto;
  left: 0;
  top: 0;
  position: fixed;
}

.navbar a {
  float: left;
  padding: 4px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  width: 20; /* Divide links of equal widths */
  text-align: center;
}

.navbar a:hover {
  background-color: red;
}

.navbar a.active {
  background-color: red;
}



@media screen and (max-width: 500px) {
  .navbar a {
    float: none;
    display: block;
    width: 100%;
    text-align: left;
  }
}
</style>
</body>
