/* Navigation */
#navigation {
  position: fixed;
  overflow: hidden;
  z-index: 1;
}

.navigation-item {
  display: block;
  float: left;
  padding: 14px 16px;
}
.navigation-item a {
  color: black;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
}
.navigation-item a:hover {
  opacity: 0.3;
}

/* Fixed Navigation Bar */
.navigation-bar {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
  animation: transition 0.5s;
}

@keyframes transition {
  from {
    opacity: 0;
    top: -300px;
  }
  to {
    opacity: 1;
    top: 0;
  }
}

/* Mobile Navigation */
#mobile-navigation {
  display: none;
}

#menu-toggle {
  position: fixed;
  opacity: 0;
}
#menu-toggle:checked ~ .menu-button > span {
  transform: rotate(45deg);
}
#menu-toggle:checked ~ .menu-button > span::before {
  top: 0;
  transform: rotate(0);
}
#menu-toggle:checked ~ .menu-button > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu-toggle:checked ~ .menu-box {
  visibility: visible;
  left: 0;
}

.menu-button {
  display: flex;
  align-items: center;
  position: fixed;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 2;
}
.menu-button > span,
.menu-button > span::before,
.menu-button > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background-color: black;
  transition-duration: 0.5s;
}
.menu-button > span::before {
  content: "";
  top: -8px;
}
.menu-button > span::after {
  content: "";
  top: 8px;
}

.menu-box {
  display: block;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: -100%;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 7.5px;
  padding-left: 0px;
  border-radius: 0 0 10px 0;
  background-color: white;
  box-shadow: 0 0 10px #85888c;
  transition-duration: 0.5s;
  z-index: 1;
}

.menu-item {
  display: block;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 7.5px;
}
.menu-item a {
  color: black;
  font-size: 30px;
  text-decoration: none;
}
.menu-item a:hover {
  opacity: 0.3;
}

@media only screen and (max-width: 600px) {
  #navigation {
    display: none;
  }

  #mobile-navigation {
    display: flex;
  }
}
