/* desktop navbar */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 9.9vh;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  margin: 0 0 5vh 0;
  border-bottom: 0.2vh solid #d4c5e8;
  box-shadow: 0 2px 8px rgba(123, 63, 163, 0.1);
}
/* Navbar takes up 20vh total */

#logo {
  height: 6vh;
  max-height: 7vw;
  width: auto;
  margin: 0 0.5vw 0 0;
}

.nav-icon {
  height: 6vh;
  max-height: 7vw;
  width: auto;
}

.nav-icon:hover {
  opacity: 0.7;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0 0.5vw;
  font-size: 1.1rem;
  color: #4a2c5a;
  transition: color 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
  color: #7b3fa3;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0 1vw;
}

.nav-button:hover {
  opacity: 0.7;
}

.nav-container {
  margin: 0 1vw;
}

/**
* Hamburger menu code created by Erik Terwan
* November 24 2015
* MIT License
 */

#menuToggle
{
  display: block;
  /* You can also use relative/absolute here if you want to stay on the top */
  position: relative;
  top: 25px;
  right: 20px;

  z-index: 1;

  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a
{
  font-size: large;
  text-decoration: none;
  color: #4a2c5a;

  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: #7b3fa3;
}


#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;

  cursor: pointer;

  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */

  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;

  background: #7b3fa3;
  border-radius: 3px;

  z-index: 1;

  transform-origin: 4px 0px;

  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/*
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #4a2c5a;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top right of the screen
 */
#menu
{
  display: none;
  position: absolute;
  right: -20px;
  max-width: 400px;
  width: 70vw;
  max-height: 80vh;
  margin: -100px 0 0 -50px;
  padding: 100px 50px 50px;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 4px 16px rgba(123, 63, 163, 0.15);

  transform-origin: 0 0;
  transform: translate(150%, 0);
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
}

#menu li label
{
  cursor: pointer;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  display: block;
  transform: none;
}

@media only screen and (max-width: 1000px) {
  .nav-link {
    margin: 0 1vw;
  }
  .nav-button {
    margin: 0 1.5vw;
  }
}

@media (min-width: 500px) {
  #nav-links {
    display: flex !important;
  }
  #hamburger-menu-container {
    display: none !important;
  }
  #logo-container {
    justify-content: flex-start !important;
  }
}

@media (max-width: 500px) {
  #nav-links {
    display: none !important;
  }
  #hamburger-menu-container {
    display: block !important;
  }

  #logo-container {
    justify-content: flex-end !important;
  }
}