.logo img {
  height: 20px;
}

.logo img:hover {
  -webkit-filter: invert(1);
   filter: invert(1);
}

/* Navbar styles */
.topnav {
  background-color: rgba(51, 51, 119, 0.9);
  box-shadow: 0 5px 2px rgba(51, 51, 255, 0.2);
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topnav #myLinks {
  display: none; /* Hidden by default for mobile view */
}

.topnav a {
  color: white;
  padding: 14px 16px;
  margin: 0 60px 0 0;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

.topnav .icon {
  background: #333;
  box-shadow: 2px 5px 2px rgba(48, 48, 48, 0.2);
  display: block;
  position: absolute;
  margin: 0;
  top: 0;
  right: 0;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  color: white;
  font-weight: bold;
  max-width: none;
  background-color: rgba(51, 51, 119, 0.7);
}

.subpage {
background-color: rgba(100, 100, 160, 0.5);
font-style: italic;
}

.subpage.active{
  background-color: rgba(130, 130, 160, 0.6);
  font-style: italic;
}

#subnav {
 top: 3em;
 width: 100%;
 height: 2em;
 background-color: rgba(130, 130, 160, 1);
 position: fixed;
 display: flex;
 align-items: center;
 justify-content: center;
}

#subnav a {
 background-color: rgba(130, 130, 160, 1); 
 line-height: 2em;
 color: white;
 text-decoration: none;
 padding: 0 0.5em;
}

#subnav .active {
  background-color: rgba(100, 100, 100, 1);
  font-weight: bold;
}

#subnav a:hover {
 background-color: rgba(80, 80, 80, 1);   
}

@media (min-width: 900px) {
  .topnav {
    padding: 0;
  }
  
  .topnav #myLinks {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
  }

  .topnav a.icon {
    display: none;
  }

  .topnav a {
    padding: 14px;
    display: inline-block;
    margin: 0;
  }
}

@media (min-width: 900px) {
  #subnav {
    top: 3em;
    width: 100%;
    height: 2em;
    background-color: rgba(130, 130, 160, 0.8);
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
  }  
}
