#main-navbar {
  height: 77px;
  width: 100%;
  top: 0;
  background-color: #004f9f;
  transition: top 0.2s ease-in-out;
  position: fixed;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 30px;
  max-width: 100vw;
}

#main-navbar a {
  text-decoration: none !important;
}

.header-hide {
  top: -150px !important;
}

.header-link-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

#toggler-image {
  width: 30px;
}

.navbar-brand {
  position: relative;
  margin-left: 74px;
  top: 37px;
  z-index: 10;
}

#main-navbar .navbar-collapse {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
}

#main-navbar .menu {
  max-width: 800px;
  width: 100%;

  display: flex;
  align-items: center;
  margin-left: auto;
  padding-right: 80px;
}

#main-navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
}

#main-navbar .toggler {
  display: none;
}

#main-navbar .menu a {
  color: #fff;
  margin: 0;
  font-weight: 900;
  font-size: 1.5rem;
  font-family: "Lilien";
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 8px;
  line-height: 1.5;
  text-align: center;
}

@media screen and (max-width: 991px) {
  #main-navbar {
    padding-right: 17px;
    height: 51px;
  }

  .navbar-brand {
    margin-left: 17px;
    top: 27px;
  }

  .navbar-brand img {
    width: 57px;
    height: 57px;
  }

  #main-navbar .navbar-collapse {
    display: none;
  }

  #main-navbar .toggler {
    display: block;
    min-width: 50px;
    min-height: 50px;
    padding: 8px;
    width: 50px !important;
  }

  .header-link-container {
    justify-content: center;
  }

  #main-navbar.displayed .navbar-collapse {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 51px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 51px 0;

    background-color: #004f9f;
    z-index: -1;
  }
  #main-navbar.displayed .menu {
    height: 100%;
  }

  #main-navbar.displayed ul {
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
    padding: 0;
    margin-left: 0;
  }
}
