 /* Navbar container - div and navbar */
div.top {
  position: fixed;
  top: 10px;
  left: 0;
  transform: translate(calc(50vw - 50%));
}

.navbar {
  overflow: hidden;
  margin: 0px;
  background: #FFFFCC;
  border: 2px solid #800000;
  border-radius: 5px;
  overflow-x: hidden;
  padding: 8px 0;
  -moz-border-radius: 5px;
  box-shadow: #E60000 2px 2px 5px;
}

/* Links inside the navbar */
.navbar a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 3px 16px;
  font-size: 12pt;
  text-decoration: underline;
  color: #0000ff;
}
*.navbar p {
  float: left;
  display: block;
  color: black;
  text-align: center;
  margin: 0 0 0 0;
  padding: 3px 16px 0px 16px;
  font-size: 12pt;
  text-decoration: none;
  color: #999999;
}

/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
  font-family: inherit;
  font-size: 12px;
  border: none;
  outline: none;
  color: black;
  padding: 3px 16px;
  background-color: inherit;
  margin: 0;
}

/* Add a transparent red background color to navigation links on hover */
.navbar a:hover, .subnav:hover .subnavbtn {
  color: red;
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  font-size: 12pt;
  display: none;
  width: 90%;
  text-align: center;
  position: absolute;
  left: -2px;
  background-color: #FFFFCC;
  width: 100%;
  z-index: 1;
  border: 2px solid #800000;
  border-radius: 5px;
  overflow-x: hidden;
  padding: 3px 0;
  -moz-border-radius: 5px;
  box-shadow: #E60000 2px 2px 5px;
}

/* Style the subnav links */
.subnav-content a {
  float:  left;
  color: black;
  display: block;
  text-align: center;
  padding: 3px 16px;
  font-size: 12pt;
  text-decoration: underline;
  color: #0000ff;
}
.subnav-content p {
  float:  left;
  color: black;
  display: block;
  text-align: center;
  margin: 0 0 0 0;
  padding: 3px 16px 0px 16px;
  font-size: 12pt;
  text-decoration: none;
  color: #999999;
}

/* Add a grey background color on hover */
.subnav-content a:hover {
  color: red;
}

/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
}