:root {
  --elm-top-navbar-height: 60px;
  --elm-top-navbar-height-compact: 60px;
}

.with-hero {
  --elm-top-navbar-height: 80px;
}

.elm-top-navbar {
  height: var(--elm-top-navbar-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100001;
  transition: background 0.25s, height 0.25s;
  background: #1c1c1c;
}

.elm-top-navbar > .block-content {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0rem 1rem;
}

.elm-top-navbar.sticky {
  height: var(--elm-top-navbar-height-compact);
}

.with-hero .elm-top-navbar:not(.sticky) {
  background: transparent;
  height: 80px;
}

.elm-top-navbar-left {
  width: 5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.elm-top-navbar-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.elm-top-navbar-right {
  width: 5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.elm-top-navbar .logo {
  width: 160px;
  max-width: 100%;
}

.menu-button {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0;
}

.menu-button span {
  font-size: 280%;
}

.elm-top-navbar-right .menu-button {
  display: none;
}

.elm-top-navbar-right .user-menu-right {
  display: none;
}

#slide-nav {
  position: fixed;
  width: 320px;
  height: 100vh;
  z-index: 100001;
  background-color: #1c1c1c;
  top: 0;
  left: 0;
  visibility: hidden;
  transform: translateX(-320px);
  transition: transform 0.3s;
  box-sizing: border-box;
  padding: 1rem;
  color: #fff;
  font-weight: 400;
  overflow-y: auto;
  padding-bottom: 7rem;
}

.slide-menu-open #slide-nav {
  transform: translateX(0);
  opacity: 1;
}

#slide-nav .visible {
  visibility: visible;
}

#slide-nav a {
  color: inherit;
  font-weight: inherit;
}

#slide-nav .menu-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

#slide-nav .menu-header .logo-container {
  display: flex;
  align-items: center;
  flex: 1;
}

#slide-nav .menu-header .logo-container img {
  width: 150px;
}

#slide-nav .menu-section {
  border-bottom: 1px solid #fff4;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

#slide-nav .menu-section h2 {
  color: #ffb400;
  font-size: 130%;
  font-weight: 700;
}

#slide-nav .menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#slide-nav .menu-section ul li {
  /* line-height: 2.1rem; */
  padding: 0.3rem 0;
}

#slide-nav .menu-section ul li a {
  color: inherit;
  display: flex;
  align-items: center;
}

#slide-nav .link-icon {
  width: 1.5rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

#slide-nav-backdrop {
  background: rgba(0, 0, 0, 0.75);
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.slide-menu-open #slide-nav-backdrop {
  opacity: 1;
  pointer-events: all;
}

#slide-nav .login-link {
  color: #ffb400;
}

.nav-bar-link {
  border: 1px solid #fff;
  padding: 0.2em 1.5em;
  border-radius: 3em;
  color: #fff;
  font-weight: 400;
  text-decoration: none;
  margin-left: 1.5em;
  font-size: 90%;
  transition: color 0.2s, border 0.2s;
}

.nav-bar-link:hover {
  color: #fff;
  text-decoration: none;
}

.elm-top-navbar .service-links {
  display: none;
}

.service-1 .service-links .link-service-1,
.service-2 .service-links .link-service-2 {
  color: #ffb400;
  border-color: #ffb400;
}

.elm-top-navbar-right .nav-item {
  margin-left: 1.25rem;
}

.elm-top-navbar-left .menu-button {
  margin-right: 1.25rem;
}

.elm-top-navbar .dropdown-menu {
  background: #1c1c1c;
  color: #fff;
}

.elm-top-navbar .dropdown-menu .dropdown-item {
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

.elm-top-navbar .dropdown-menu .dropdown-item:hover,
.elm-top-navbar .dropdown-menu .dropdown-item:focus {
  color: #fff;
  background: #fff1;
}

.language-menu .dropdown-item > span {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2rem;
  margin-right: 1rem;
}

.language-menu .icon-button span {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-position: center;
  background-size: cover;
  border-radius: 15px;
}

.elm-top-navbar .dropdown-menu .dropdown-item .item-icon {
  width: 1rem;
  margin-right: 1rem;
}

.elm-top-navbar .icon-button {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.elm-top-navbar .icon-button img {
  width: 25px;
}

.elm-top-navbar .icon-button::after {
  display: none;
}

.elm-top-navbar .dropdown-menu .end-user-name {
  font-weight: 600;
}

.elm-top-navbar .dropdown-menu .organization-name {
  color: #fffa;
}

.elm-top-navbar .dropdown-menu .with-divider {
  border-bottom: 1px solid #fff3;
}

.user-menu .dropdown-menu {
  min-width: 320px;
}

.mobile-tab-bar .tab-icon {
  height: 30px;
}

.mobile-tab-bar .tab-icon img {
  height: 100%;
}

.mobile-tab-bar .tab-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #444;
}

/*
.mobile-tab-bar .tab-selected .tab-label {
  color: #ffb400;
}
*/

.animation-bump {
  animation: bump-a 0.3s ease-out;
}

@keyframes bump-a {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .elm-top-navbar > .block-content {
    padding: 0 40px;
  }

  .elm-top-navbar .logo {
    width: 140px;
  }

  .elm-top-navbar-left {
    display: none;
  }

  .elm-top-navbar-middle {
    justify-content: flex-start;
    padding: 0;
  }

  .elm-top-navbar-right .menu-button {
    display: flex;
  }

  .elm-top-navbar-right .user-menu-right {
    display: block;
  }

  #slide-nav {
    position: absolute;
    width: 1000px;
    max-width: 100%;
    height: auto;
    background-color: #1c1c1c;
    top: 0;
    left: initial;
    right: 0;
    visibility: hidden;
    transform: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
    padding: 2rem;
  }

  #slide-nav .menu-sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
  }

  #slide-nav .menu-section {
    border-bottom: none;
  }

  .elm-top-navbar .service-links {
    display: block;
  }
}
