/* Add a black background color to the top navigation */
.topnav {
  background-color: #181825;
  overflow: hidden;
  transition: 0.2s;
}

.topnav button {
  border: none;
}
/* Style the links inside the navigation bar */
.topnav a, .topnav button {
  float: left;
  display: block;
  color: #cdd6f4;
  background-color: #313244;
  text-align: center;
  padding: 16px 16px;
  text-decoration: none;
  font-size: 16pt;
  transition: 0.2s;
}

.topnav a.right {
  float: right;
}

.topnav a.icon {
  background-color: #f38ba8;
  color: #1e1e2e;
}

/* Change the color of links on hover */
.topnav a:hover, .topnav button:hover {
  background-color: #cba6f7;
  color: #1e1e2e;
}
.navitem:hover img {
  filter: brightness(0.3);
}
.topnav a.active img {
  filter: saturate(3);
}

/* Add an active class to highlight the current page */
.topnav a.active, .topnav button.active {
  background-color: #74c7ec;
  color: #1e1e2e;
}

/* Active + hover */
.topnav a.active:hover, .topnav button.active:hover {
  background-color: #89b4fa;
  color: #1e1e2e;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
} 
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav div.dropdown {display:none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive div.dropdown {
    display: block;
    float: none;
    text-align: left;
  }
  .topnav.responsive button.dropbtn {
    display: block;
    float: none;
    text-align: left;
  }
} 

/* Dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: #cdd6f4;
  padding: 14px 16px;
  background-color: #9ca0b0;
  font-family: inherit;
  margin: 0;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ccd0da;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside dropdown */
.dropdown-content a {
  float: none;
  color: #cdd6f4;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}
