#main-header {
  transition: padding 0.4s ease-in-out, background-color 0.4s ease-in-out;
  padding-top: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

#header-logo {
  transition: height 0.4s ease-in-out, margin 0.4s ease-in-out;
  height: 54px;
  margin: 24px;
}

#main-navbar > .container-fluid {
  transition: height 0.4s ease-in-out;
  height: 62px;
}

#main-navbar .nav-item {
  height: 62px;
  transition: height 0.4s ease-in-out, background-color 0.15s ease-in-out;
  display: flex;
}

#main-navbar .nav-link {
  padding: 22px 32px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-header.scrolled {
  padding-top: 5px !important;
  background-color: #ffffff !important;
  box-shadow: 0px 5px 40px rgba(0,0,0,0.1) !important;
}

#main-header.scrolled #header-logo {
  height: calc(54px * 0.6) !important;
  margin: 10px !important;
}

#main-header.scrolled #main-navbar .nav-item {
  height: 48px !important;
}

#main-header.scrolled #main-navbar > .container-fluid {
  height: 48px !important;
}

