#menu, #menubackground {
  display: block;
  position: absolute;
  z-index: 1024;

  top: 0;
  width: 100%;
  height: 4.5em;
  border: 0;
}

#menubackground {
  position: relative;
  z-index: 1024;

  background-color: #ffffff;
}

#menu table#categories {
  position: absolute;

  left: 0;
  right: 0;
  margin: auto;
  margin-left: 2em;

  width: 70em;
  height: 100%;

  font-weight: 400;
  table-layout: fixed;
}

#menu table#categories tr {
  height:100%;
}

#menu table#categories tr td {
  height: 100%;
}

#menu table#categories tr td#logo {
  position: relative;
  width: 125%;
  height: 100%;
}

#menu table#categories tr td#logo a img, #menu #categoriesmobile img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  margin: auto;
  width: auto;
  height: 70%;
}

#menu table#categories tr td.category {
  position: relative;
  width: 100%;
  height: 100%;
}

#menu table#categories tr a {
  position: absolute;

  text-align: center;
  line-height: 4.5em;
  font-weight: 500;

  width: 100%;
  height: 100%;

  top: 0;
  bottom: 0;
  margin: auto;

  color: #b07000;
  text-decoration: none;
  transition: 0.1s;
}

#menu table#categories tr td.category:hover a {
  background-color: rgba(0, 0, 0, 0.07);
}

#menu table#categories tr td.category span {
  position: absolute;
  width: 100%;
  height: 0;
  margin: auto;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b07000;
  transition: 0.1s;
}

#menu table#categories tr td.category span.current {
  height: 0.3em;
}

#menu #seperator {
  position: absolute;
  display: none;
  z-index: -1;

  width: 80%;
  height: 0.1em;

  margin: auto;
  left: 0;
  right: 0;
  bottom: 0;

  background-color: #505050;
}

#menu #categoriesmobile {
  display: none;
}

#menu #categoriesmobile img {
  margin-left: 4.5em;
}

#menu #categoriesmobile #dropdownbutton {
  position: absolute;
  display: inline-block;
  margin: 0.5em 0;
  width: 3.5em;
  height: 3.5em;
  right: 4.5em;
  cursor: pointer;
  overflow: hidden;
}

#menu #categoriesmobile #dropdownbutton img.open, #menu #categoriesmobile #dropdownbutton img.close {
  display: block;
  position: relative;
  margin: 0;
  width: auto;
  height: 100%;
}

#menu #categoriesmobile #dropdownbutton.open img.open { display: block; }
#menu #categoriesmobile #dropdownbutton.open img.close { display: none; }
#menu #categoriesmobile #dropdownbutton.close img.open { display: none; }
#menu #categoriesmobile #dropdownbutton.close img.close { display: block; }

#menudropdown {
  display: block;
  z-index: 512;
  position: absolute;
  background-color: #ffffff;
  top: 4.5em;
  width: 100%;
  transform: translateY(-100%);
  overflow: hidden;
  transition: 0.2s;
  box-shadow: 0 0 0.5em 0 rgba(0, 0, 0, 0.2);
  padding: 1em 0;
}

#menudropdown.visible {
  transform: translateY(0%);
  top: 4.5em;
  box-shadow: 0 0 8em -1em #000000;
}

#menudropdown a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  color: #b07000;
  padding: 1.0em;
  padding-left: 5em;
  font-size: 1.5em;
  text-decoration: none;
  transition: 0.2s;
  border-top: 0.0em solid #2c2c2c;
}

#menudropdown a:nth-child(odd) {

}

#menudropdown a:hover {
  background-color: #e0e0e0;
  padding-left: 6em;
}

#menudropdown a.current {
  border-left: 0.3em solid #b07000;
}

#fullscreenoverlay {
  display: none;
  position: fixed;
  z-index: 256;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000000;
  opacity: 0.0;
  transition: opacity 0.2s;
}

#fullscreenoverlay.visible {
  display: block;
  opacity: 0.75;
}

@media only screen and (max-width: 1000px) {
  #menu #categories {
    display: none;
  }

  #menu #categoriesmobile {
    display: block;
  }
}
