/*
 * Copyright (c) 2022.  BraveGrumpy.
 * Do not reproduce contents without express written permission from the author.
 * You can get permission by cloning the repository https://github.com/robin-zollner/bravegrumpy.website.git, and creating a new branch.
 * Otherwise, you can email seacrestskylar@gmail.com, or join the discord server, linked within each page.
 * The purpose of this website, is to practice responsive web design, and to publish creative writing.
 */

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--second-bg);
}

li {
  float: left;
  border-right: 1px solid var(--emp-color);
}
li:last-child {
  border-right: none;
}

li a,
.dropdown-button {
  display: inline-block;
  color: var(--text-color);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover,
.dropdown:hover .dropdown-button {
  background-color: mediumaquamarine;
  color: darkblue;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--main-bg);
  min-width: 160px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--second-bg);
  color: var(--emp-color);
}

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

.active {
  background-color: var(--emp-color);
  color: var(--main-bg);
}

a.active {
  color: var(--main-bg);
}
