.sidebar {
  height: 100%;
  position: fixed;
  width: 50px;
  background-color: #111;
  z-index: 2;
}

.menu-btn {
  font-size: 30px;
  color: #fff;
  text-align: center;
  padding-top: 8px;
  cursor: pointer;
}

.navbar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #191818;
  overflow-x: hidden;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  padding-top: 16px;
  padding-left: 50px;
  z-index: 1;
}

.navbar-item {
  position: relative;
}

.navbar-title {
  display: block;
  color: #fff;
  padding: 12px 24px;
  font-size: 32px;
  margin-bottom: 16px;
  -webkit-transition: background-color 0.5s ease;
  transition: background-color 0.5s ease;
  text-decoration: none;
}

a.navbar-title:hover {
  background-color: darkblue;
}

.navbar-item-next {
  position: absolute;
  top: 0;
  right: 16px;
  height: 100%;
  color: #fff;
  font-size: 24px;
  text-align: center;
  padding: 6px;
}

.subnavbar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #2c2c2c;
  overflow-x: hidden;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  padding-top: 16px;
  z-index: 1;
  padding-left: 50px;
}

.navbar-item-title.openSubmenu ~ .subnavbar {
  width: 300px;
  padding-left: 50px;
}

.navbar .menuClose-btn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 64px;
  margin-left: 50px;
  color: #fff;
}

.navbar-item-title {
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  padding: 12px 24px;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
  -webkit-transition: background-color 0.5s ease;
  transition: background-color 0.5s ease;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

.navbar-item-title:hover {
  background-color: darkblue;
}

.wrapper.openMenu .navbar {
  width: 300px;
  padding-left: 50px;
}

.wrapper.openMenu > .main {
  margin-left: 300px;
}

.wrapper.openMenu .navbar-item-title {
  opacity: 1;
}

/*
 * TODO: this belongs in base.css as its for the base.htm template
 * rather than the menu
 * TODO: Flex settings are for the footer to stay at the bottom, but maybe
 * that should be handled differently. The missing piece of the puzzle is
 * `flex-grow: 1` rule in common.css, leading more to the idea that all this
 * belongs in base.css.
 */
.main {
  display: flex;
  flex-direction: column;
  margin-left: 50px;
  min-height: 100vh;
  transition: margin-left .5s;
  -webkit-transition: margin-left .5s;
}

.header {
  position: relative;
  height: 50px;
  /* background-color: lightgray; */
}

.logo {
  position: absolute;
  right: 100px;
  top: 0;
}

.logo-image {
  width: 150px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .sidebar {
    height: 50px;
    position: absolute;
    top: 0;
    left: 0;
  }

  .header {
    background-color: #111;
  }

  .wrapper.openMenu .sidebar {
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .navbar {
    padding-left: 0;
  }

  .subnavbar {
    padding-left: 0;
  }

  .navbar-item-title.openSubmenu ~ .subnavbar {
    width: 100vw;
  }

  .wrapper.openMenu .navbar {
    width: 100vw;
  }

  .wrapper.openMenu > .main {
    margin-left: 0;
  }

  .main {
    margin-left: 0;
  }

  .logo {
    right: 0;
  }

  .logo-image {
    width: 125px;
  }
}
