.topnav {
  width: 100%;
  position: fixed;
  top:0;
  padding-top: 1.5em;
  overflow: hidden;
  background-color: rgba(0,0,0,0.8);

  border-bottom: 2px solid red;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.topnav a {
  float: left;
  color: #ebba91;   /*for gold color fonts*/
  text-align: center;
  margin-left: 0.8em;
  margin-right: 0.8em; 
  padding: 1em;
  border-radius: 1.6em;
  text-decoration: none;
  font-size: 1.2em;
}

.topnav a:hover {
  background-color: #720;
  color: white;
}

.topnav a.active {
  background-color: red;
  color: white;
}

.topnav-centered img{
  float: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: red;
}

.topnav-right {
  float: right;
}

/* Responsive navigation menu (for mobile devices) */

@media screen and (max-width: 1000px) {
  .topnav-right {
    margin-top: 2em;
  }

  .topnav-centered img{
     padding: 1em;
     margin-top: 1em;
  }

}




@media screen and (max-width: 600px) {
  .topnav{
    position: relative;
  }

  .topnav a, .topnav-right {
    float: none;
    display: block;
  }
  
  .topnav-centered img{
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }
}