/**********************/
/* Full screen search */
/**********************/
#search {
  align-items: center;
  background: rgba(0, 0, 0, 0.975);
  height: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  position: fixed;
  transition: all 0.5s;
  width: 100vw;
  will-change: transform, opacity;
  z-index: -1;
}
#search:target {
  height: 100vh !important;
  opacity: 1;
  width: 100vw !important;
  z-index: 9999999999;
}
#search:target .close-btn {
  display: block;
}
#searchbox {
  background: transparent;
  border: solid #fff;
  border-width: 0 0 1px 0;
  color: #fff;
  flex: 1 0 auto;
  font-size: 2rem;
  height: 2rem;
  max-width: 50%;
  outline: 0;
  padding: 2rem 1rem;
}
.close-btn {
  display: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
}
/**********************/
/*   Responsive Menu  */
/*   (mobile first)   */
/**********************/
#nav {
  position: relative;
}
#nav ul {
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  height: 0;
  justify-content: center;
  left: 0;
  margin: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  transition: all 0.5s;
  top: 0;
  will-change: opacity;
  width: 100vw;
}
#nav ul li {
  list-style: none;
  padding: 1rem 0;
}
#nav:target ul {
  height: 100vh !important;
  left: 0;
  opacity: 1;
  top: 0;
  width: 100vw !important;
}
#nav:target .close-btn {
  display: block;
  position: fixed;
}
@media screen and (min-width: 768px) {
  #responsive-menu-trigger,
  #close-menu {
    display: none;
  }
  #nav ul,
  #nav:target ul {
    background: none;
    display: inline-flex;
    flex-direction: row;
    font-size: 1rem;
    height: auto !important;
    opacity: 1;
    padding: 0;
    pointer-events: initial;
    position: static;
    transition: none;
    width: auto !important;
  }
  #nav ul li,
  #nav:target ul li {
    padding: 0;
  }
  #nav ul li a,
  #nav:target ul li a {
    text-decoration: none;
    font-size: 1rem;
    margin-right: 1rem;
  }
  #nav .close-btn,
  #nav:target .close-btn {
    display: none;
  }
}
/**********************/
/* fly in directions  */
/**********************/
#search.left,
#nav ul.left {
  left: 0;
  height: 100vh;
  width: 0;
}
#search.right,
#nav ul.right {
  height: 100vh;
  width: 0;
  right: 0;
  left: auto !important;
}
#search.bottom.left,
#nav ul.bottom.left,
#search.bottom.right,
#nav ul.bottom.right,
#search.top.left,
#nav ul.top.left,
#search.top.right,
#nav ul.top.right {
  height: 0;
}
#search.bottom,
#nav ul.bottom {
  bottom: 0;
  top: auto !important;
}
#search.fade,
#nav ul.fade {
  height: 100vh;
  width: 100vw;
  transition: opacity 0.5s;
}