/*#region Menu structure */
/* https://www.w3schools.com/howto/howto_css_dropdown_navbar.asp */

.menu-heading
{
  display: block;
  padding: 8px 16px;
  /* font-weight: bold; */
  text-align: left;
  text-decoration: underline;
  color: white;
  cursor: default;
}

.navbar /* Bar across the page */
{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:var(--navbar_height);
  display: flex;
  z-index: 100;
  padding: 0 10px;
  box-sizing: border-box;

  overflow: visible;
  background-color: var(--menu_background);
  /* background-color:firebrick; */
  justify-content: center;
  align-items: center;
  text-align: center; 
}

.navbar a  /* All a inside the top bar and descendents */
{
  font-size: 16px;
  font-weight:normal;
  color: white;
  text-align: center;
  padding: 8px 8px;
  text-decoration: none;
  border: 2px solid var(--menu_background);
  border-radius: 8px;
  /* Border colour the same as background to prevent jumping on hover */
}

.dropdown /* div inside the top bar */
{
  display: block;
  overflow: visible;
  width:fit-content;
  /* width: 130px; */
  padding: 0px 8px;
  z-index: 2000;
  /* border: none; */
}

.dropdown-divider
{
    height: 1px;                 /* line thickness */
    background-color: white;     /* line color */
    margin: 6px 16px;               /* spacing above/below */
    pointer-events: none;        /* non-selectable / non-clickable */
}

.dropdown .dropbtn/* Buttons inside divs in top row */
{
  font-size: 16px;
  font-weight:normal;
  border: 2px solid var(--menu_background);
  /* Border colour the same as background to prevent jumping on hover */
  outline: none;
  margin: 0 1px;
  color: white;
  padding: 8px 8px;
  background-color: inherit;
  font-family: inherit;
  /* width: 150px; */
  overflow: visible;
  box-sizing: border-box;
  white-space: nowrap;
}

.navbar a:hover,
.dropdown:hover .dropbtn:hover 
{
  border: 2px solid white;
  border-radius: 6px;
  background-color: var(--menu_background);
}

.dropdown-content 
{
  display: none;
  position: absolute;
  background-color: var(--menu_background);
  /* min-width: 150px; */
  box-shadow: 0px 8px 16px 4px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  white-space: nowrap;
  overflow:visible;
  /* border-radius: 10px; */
  /* padding: 28px 0px 28px 0px; */
}

.dropdown-content a,
.dropdown-content font 
{
  /* float: none; */
  color: white;
  padding: 6px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover 
{
  background-color: var(--menu_background);
  /* var(--dark_colour); */
}

.dropdown:hover .dropdown-content 
{
  /* border: 1px solid white; */
  border-radius: 8px;
  display: block;
}

/* Create a right-aligned (split) link inside the navigation bar */
.navbar a.split 
{
  /* float: right; */
  background-color: var(--border_colour);
  color: white;
}



.submenu
{
    position: relative;
}

.submenu-title
{
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.submenu-arrow
{
    margin-left: auto;
}

.submenu-content
{
    display: none;
    position: absolute;
    top: 0;
    left: 100%;

    background-color: var(--menu_background);
    min-width: 160px;
    white-space: nowrap;

    box-shadow: 0px 8px 16px 4px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    z-index: 4000;
}

.submenu:hover .submenu-content
{
    display: block;
}
