@charset "UTF-8";

#Menu {
  color: #fff;
  display: block;
  font-size: 12pt;
  line-height: 1;
  margin: 0;
  padding: 0;
}

#Menu ul {
  justify-content: space-evenly;
  background-color: transparent;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

#Menu li {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
#Menu>ul>li {
  flex: 1;
  background-color: var(--theme-background-colour);
  position: relative;
  text-align: center;
}

#Menu a {
  border-radius: 0;
  color: var(--theme-text-colour);
  display: block;
  margin: 0px;
  padding: 10px 20px;
  transition: all 150ms;
  font-weight: bold;
}

#Menu li:hover>a {
  backdrop-filter: brightness(150%);
}

/* new changes */

#Menu li>a.special-link {
  background-color: var(--theme-highlight-colour);
  font-weight: bold;
}

#Menu li:hover>a.special-link {
  backdrop-filter: brightness(125%);
}


/* submenu*/
#Menu li > ul {
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
 display: flex;
 flex-direction: column;
 max-height: 0;
 overflow: hidden;
 position: absolute;
 transition: max-height 150ms linear 150ms;
 background-color: var(--theme-background-colour);
 white-space: nowrap;
 z-index: 2;
 width: auto;
 min-width:100%;
}

#Menu li:hover > ul {
  max-height: 20em; /* just greater than the tallest menu's height */
  transition: max-height 0.2s linear 0.2s;
  z-index: 3;
}

#Menu li ul > li {
  background-color: var(--theme-background-colour);
  width: 100%;
}
#Menu li ul > li:hover {
  backdrop-filter: brightness(125%);
}
