/* Style the navigation menu */
.topnav {
 overflow: hidden;
 width:100%;
 z-index: 2;
}

/* Hide the links inside the navigation menu (except for logo/home) */
#hiddenLinks {
 display: none;
 z-index: 20;
 position: absolute;
 height:100%;
 width:100%;
 top:0;
 left:0;
 background: rgba(0,0,0,0.5);
}

#hiddenLinks .menu {
  background:white;
  width: 75%;
  max-width: 450px;
  min-width: 300px;
  height:100%;
}

#hiddenLinks a, #hiddenLinks span {
  text-decoration: none;
  font-size: 0.9em;
  display: block;
  padding: 0.75em;
}

#hiddenLinks a:active {
  background: #fafafa;
  animation: pulse;
  animation-duration: 600ms;
}

#hiddenLinks .menu i {
  margin-right: 1em;
  color: var(--primary);
  display:inline-block;
  width:2em;
  text-align: center;
}

/* Style navigation menu links */
.topnav a, .topnav span {
 padding: 14px 16px;
 text-decoration: none;
 font-size: 17px;
 display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
 display: block;
 position: absolute;
 left: 0;
 top: 0;
 font-size:1em;
}

.topnav a.icon:hover {
  background: none;
}

#logo {
  background-image: url('../assets/logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position:right;
  width: 100%;
  height: 8vh;
  max-height: 100px;
}

.topnav .fa {
  margin-top:0.5em;
  font-size:1.5em;
}
.topnav .fa.fa-bars {
  color: #888 !important;
}

#hiddenLinks .username {
  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 1em;
}
#hiddenLinks .avatar-container {
  text-align: center;
}
#hiddenLinks .avatar {
  margin-top: 0.5em;
  text-align: center;
  height: 2em;
  width: 2em;
  line-height: 2em;
  font-size: 3em;
  background: var(--primary);
  display: inline-block;
  border-radius: 100%;
  color: white;
}
