/* Add a black background color to the top navigation */
.topnav {
  background: var(--black-color);
  overflow: hidden;
  margin: 0px auto;
  color: var(--text-light);
  
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 999;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  align-self: center;
  padding: 0.55rem 1rem;
  margin: 5px;
}

/* Add an active class to highlight the current page */
a.active {
  color: var(--contrast-color);
  text-decoration: underline;
  /*font-family: 'Great Vibes', normal;
  font-size: xx-large;
  padding: 0rem 0rem;
  margin: 0px;*/
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  border: none;
  outline: none;
  color: var(--text-light);
  margin: auto;
  padding: 0.55rem 1rem;
  border-radius: 5px;
  background-color: inherit;
  font-family: inherit;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: fixed;
  top: 3.5rem;

  background-color: var(--light-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background: var(--dark-color);
  color: var(--text-light);
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: var(--normal-color);
  color: var(--text-light);
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

.topnav img {
  height: 1.5rem;
}

/* When the screen is less than 750 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: 750px) {
  /*.topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }*/
  .topnav a, .dropdown .dropbtn {
    display: none;
  }

  .topnav {
    position: sticky;
    top:0;
    display: block;
  }
  
  .nav_head {
    display: block;
    float: none;
    text-align: center;

  }
  .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: 750px) {
  .topnav.responsive {
    position: sticky;
    top: 0;
    display: block;
  }

  .topnav a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
  }

  .topnav.responsive .dropdown {
    float: none;
  }

  .topnav.responsive .dropdown-content {
    display: none;
    position: relative;
    margin: 5px;
    padding: 1px 0px;
    border-radius: 5px;
    text-align: center;
    top: 0rem;
  }
  .topnav a.active {
    display: block;
    color: var(--contrast-color);
    /*font-family: 'Great Vibes', normal;
    font-size: xx-large;*/
    /*padding: 0rem 0rem;
    margin: 0px auto;*/
    float: none;
    text-align: center;
  }
  

  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: calc(100% - 10px);
    text-align: center;
  }

  .topnav {
    height: auto;
  }

  .nav_head
}