/* Design inspired from: https://codepen.io/tedib/pen/mdypQbg */

#navbar-wrapper {
  position: fixed;
  z-index: 100;
  width: 100%;  
  font-size: 1.4rem;
  font-family: Roboto, Arial, sans-serif;
  margin: 0 auto;
  margin-top: calc(var(--navbar-height) * -1);
  background: black;
}

#navbar { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--main-page-width);
  margin: 0 auto;
  padding: 0 var(--main-page-side-padding);
}

#navbar-logo {
  display: inline-block;
  height: 25px;
  margin: 1em 0;
}

#navbar-logo img {
  height: 140%;
}

.navigation {
  display: flex;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  list-style: none;
}

.navigation a {
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.1rem;
  color: white !important;
  margin-left: 1em; 
  color: white;
}

.navigation a:hover {
  color: white;
  border-bottom: 3px solid var(--ted-red);
}

/* MENU TOGGLE FOR MOBILE */

#menu-toggle, #label-toggle {
  display: none;
}

#menu-toggle:checked ~ ul {
  opacity: 1;
  height: auto;
  visibility: visible;
}

/* MEDIA QUERIES */

 /* @media all and (max-width: 990px) {
  #navbar {
    flex-direction: column;
  }

  .navigation {
    width: 100%;
    justify-content: space-around;
  }

  section {
    padding-top: 6rem;
  }
} */

@media all and (max-width: 990px) {
  #navbar {
    display: block;
  }

  .navigation {
    flex-direction: column;
    visibility: hidden;
    height: 0;
  }

  .navigation a {
    display: block;
    text-align: center;
    padding: 10px;
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navigation li:last-of-type a {
    border-bottom: none;
  }

  .navigation a:hover {
    color: white;
    border-bottom: none;
  }

  #label-toggle {
    background: linear-gradient(to bottom, var(--ted-red) 0%, var(--ted-red) 20%, transparent 20%, transparent 40%, var(--ted-red) 40%, var(--ted-red) 60%, transparent 60%, transparent 80%, var(--ted-red) 80%, var(--ted-red) 100%);
    cursor: pointer;
    display: block;
    float: right;
    height: 25px;
    margin-top: 15px;
    width: 25px;
  }
}