#navbar-spacer {
  height: var(--height-navbar);
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(50vw + 40px);
  min-width: 1000px;
  height: var(--height-navbar);
  padding-left: var(--body-padding-horizontal);
  padding-right: var(--body-padding-horizontal);

  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;

  background-color: var(--background-white);

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#navbar-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: calc(50vw + 40px);
  min-width: calc(50vw + 40px);
  height: var(--height-navbar);
  padding-left: var(--body-padding-horizontal);
  padding-right: var(--body-padding-horizontal);

  align-items: center;
  justify-content: space-between;
  z-index: 100;

  background-color: var(--background-white);

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#navbar.nav-scrolled, #navbar-mobile.nav-scrolled {
  box-shadow: 0 2px 3px var(--box-shadow);

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#logo-container {
  width: 8%;
  height: 100%;
  text-align: center;
}

#logo-link {
  height: 90%;
  max-height: 100%;
}

#navbar-logo {
  height: 100%;
  max-height: 100%;
}

#nav-pages {
  width: 46%;
  height: 100%;
  list-style-type: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#nav-pages a {
  color: inherit;
  height: calc(100% - 20px);
  padding: 10px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#nav-pages a:active, #nav-pages a:visited {
  color: inherit;
  text-decoration: none;
}

#nav-pages a:hover {
  color: var(--omnitech-red);

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#nav-icons {
  width: 46%;
  height: 100%;
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#nav-icons a {
  height: calc(100% - 20px);
  padding: 10px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#nav-contact-button {
  width: 150px;
  height: 90%;
  background-color: var(--omnitech-red);
  color: var(--omnitech-white);
  font-weight: bold;
  font-size: 90%;
  border: none;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#nav-contact-button:hover {
  background-color: var(--omnitech-black);

  transition: 0.25s ease;
  -o-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -webkit-transition: 0.25s ease;
}

#nav-contact-icon {
  font-size: 90%;
}




@media screen and (max-width: 810px) {
  #navbar {
    visibility: hidden;
  }

  #navbar-mobile {
    display: flex;
    width: 100vw;
    min-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }

  #mobile-navbar-menu-icon {
    width: 44%;
    margin-left: 2%;
  }

  #nav-pages {
    display: none;
    position: fixed;
    width: 300px;
    height: auto;
    top: var(--height-navbar);
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--omnitech-red);
    color: var(--omnitech-white);
  }

  #nav-pages a {
    width: calc(94% - 40px);
    height: 50px;
    margin-left: 3%;
    align-items: flex-start;
    border-bottom: 1px solid var(--omnitech-white);
  }

  #nav-pages a:last-child {
    border-bottom: none;
  }

  #nav-pages a li {
    text-align: left;
  }

  #nav-pages a:hover {
    color: var(--omnitech-black);
  }
}


@media screen and (max-width: 450px) {
  #nav-icons a {
    height: 90%;
    padding: 0 3% 0 10px;
  }

  #nav-contact-button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #nav-contact-text {
    display: none;
  }

  #nav-contact-icon {
    font-size: 100%;
  }

  #nav-pages {
    width: 100%;
  }
}