/*#region grid, logo and search*/
#g-top-bar {
  background: #ffffff;
  box-sizing: border-box;
  color: #333E48;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  margin: 0;
  max-width: 1200px;
  padding: 0 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
  flex-direction: row;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
  justify-content: space-between;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
  align-items: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
}

#g-top-bar *, #g-top-bar *::before, #g-top-bar *::after {
  box-sizing: border-box;
}

#g-top-bar a {
  font-weight: 400;
  text-decoration: none;
}

#g-top-bar i {
  color: #333E48;
}

#g-spaceholder {
  position: relative;
  height: 51px;
}

.g-nav-flex-left, .g-nav-flex-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

#g-arm-logo {
  display: block;
  padding-right: 10px;
}

#g-arm-logo img {
  height: 50px;
  width: 50px;
  vertical-align: bottom;
}

#g-search {
  background: white;
  color: #333E48;
  display: block;
  margin: 3px;
  border: none;
  text-align: right;
}

#g-search i {
  font-size: 26px;
}

#g-search-input {
  display: none;
  position: relative;
  margin: 0;
}

#g-search-input input {
  border-radius: 0;
  border: 1px solid #7D868C;
  box-shadow: inset 0 1px 2px rgba(51, 62, 72, 0.1);
  font-size: inherit;
  height: 2em;
  margin: 0;
  outline: none;
  padding: .5em;
  transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
  width: 100%;
  -webkit-appearance: none;
}

#g-search-input button {
  background: white;
  border: none;
  color: #333e48;
  cursor: pointer;
  font-size: inherit;
  line-height: 1em;
  margin: 0;
  outline: none;
  padding: 0;
  position: absolute;
  right: .5em;
  top: .5em;
}

#g-user {
  background: white;
  padding: 0 0 0 15px;
}

#g-user img {
  height: 30px;
}

#g-burger {
  background: white;
  padding-right: 5px;
}

#g-burger {
  font-size: 26px;
  padding: 0 20px 0 0;
}

.g-icon-button {
  background-color: white;
  cursor: pointer;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  color: #333E48;
  display: inline-block;
}

.g-button {
  background-color: white;
  font-family: Lato, sans-serif;
  cursor: pointer;
  outline: none;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  color: #333E48;
  text-align: center;
  line-height: 28px;
  display: block;
}

#g-compiler, #g-portal, #g-partners {
  display: none;
}

#g-compiler-nav {
  display: block;
  margin: 20px 0 0 10px;
  background-color: #FFC700;
  color: #333E48;
  width: 120px;
  height: 50px;
  line-height: 40px;
}

#g-compiler-nav:hover {
  background-color: #FF6B00;
}

#g-portal-nav {
  display: block;
  margin: 20px 0 0 10px;
  background-color: #00c1de;
  color: white;
  width: 120px;
  height: 50px;
  line-height: 40px;
}

#g-portal-nav:hover {
  background-color: #333E48;
  color: white;
}

#g-partners-nav {
  display: block;
  margin-top: 20px;
  background-color: #333e48;
  color: white;
  width: 120px;
  height: 50px;
  line-height: 40px;
}

#g-partners-nav:hover {
  background-color: #666666;
  color: white;
}

#g-search {
  outline: none;
  cursor: pointer;
}

@media only screen and (min-width: 1024px) {
  header#g-nav-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    display: -ms-flexbox;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -ms-flex-pack: center;
  }

  #g-top-bar {
    position: relative;
  }

  #g-spaceholder {
    height: 0;
  }

  #g-search {
    display: block;
    margin: 3px;
    padding: 0 5px;
    border: none;
    -ms-grid-column-align: end;
    justify-self: end;
  }

  #g-user {
    display: none;
    background: white;
    margin-left: 4px;
  }

  #g-compiler {
    display: block;
    background-color: #FFC700;
    color: #333E48;
    width: 100px;
  }

  #g-compiler:hover {
    background-color: #FF6B00;
  }

  #g-portal {
    display: block;
    background-color: #00c1de;
    color: white;
    width: 100px;
    margin-right: 6px;
  }

  #g-portal:hover {
    background-color: #333E48;
    color: white;
  }

  #g-compiler-nav, #g-portal-nav, #g-partners-nav {
    display: none;
  }

  #g-search-input {
    display: none;
  }

  #g-burger {
    display: none;
  }

  .g-button {
    display: inline-block;
    width: inherit;
  }
}

/*endregion*/

/*#region main navigation */
.g-nav {
  background: #fff;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  position: fixed;
  top: 0;
  -webkit-transition: -webkit-transform .3s;
  transition: -webkit-transform .3s;
  transition: transform .3s;
  transition: transform .3s, -webkit-transform .3s;
  width: 90%;
  height: 100vh;
  z-index: 11;
  left: 0;
  right: auto;
  -webkit-transform: translateX(-105%);
  transform: translateX(-105%);
}

.g-nav.right-drawer {
  right: 0;
  left: auto;
  -webkit-transform: translateX(120%);
  transform: translateX(120%);
}

.g-nav.is-active {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.g-nav ul {
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-nav .g-nav-close-item {
  display: inline-block;
}

.g-nav .g-nav-close {
  cursor: pointer;
  margin: 10px;
  font-size: 36px;
}

.g-nav .g-nav-link {
  color: inherit;
  display: block;
  height: 50px;
  line-height: 50px;
  padding: 0 10px;
}

.g-nav span.g-nav-link {
  cursor: default;
}

.g-nav .second-level .g-nav-link {
  padding: 0 25px;
}

.g-nav .third-level a.g-nav-link {
  height: 40px;
  line-height: 40px;
  padding: 0 30px;
  color: #333e48a8;
}

.g-nav .g-nav-has-dropdown > .g-nav-link:before {
  float: right;
  content: "\f0da";
  font-family: FontAwesome;
  font-size: 0.9em;
  margin-left: 0.5em;
}

.g-nav .g-nav-has-dropdown.is-active .second-level {
  display: block;
}

.g-nav .g-nav-has-dropdown.is-active {
  background: #002b49;
  padding: 1px 0 1px 1px;
}

.g-nav .g-nav-has-dropdown.is-active > .g-nav-link {
  background: #002b49;
  color: #fff;
}

.g-nav .g-nav-has-dropdown.is-active > .g-nav-link:before {
  content: "\f0d7";
}

.g-nav .g-nav-item {
  border-top: 1px solid #f3f3f3;
  white-space: nowrap;
}

.g-nav .second-level {
  display: none;
}

.g-nav .second-level .g-nav-item,
.g-nav .third-level .g-nav-item {
  border-color: #e2e2e2;
}

@media only screen and (min-width: 1024px) {
  .g-nav, .g-nav.right-drawer {
    -webkit-box-shadow: none;
    box-shadow: none;
    overflow: visible;
    position: relative;
    right: initial; /* fix grid */
    top: initial; /* fix grid */
    -webkit-transform: none;
    transform: none;
    width: 100%;
    max-width: 1200px;
    -ms-grid-column-align: center;
    justify-self: center;
    height: auto;
  }

  .g-nav .first-level {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    display: -ms-flexbox;
  }

  .g-nav .first-level > .g-nav-item.g-nav-close-item {
    display: none;
  }

  .g-nav .second-level {
    border: lightgrey solid 1px;
  }

  .g-nav .second-level,
  .g-nav .third-level {
    background: #fff;
  }

  .g-nav .first-level > .g-nav-item {
    display: inline-block;
    position: relative;
  }

  .g-nav .second-level .g-nav-item,
  .g-nav .third-level .g-nav-item {
    border-color: #f3f3f3;
  }

  .g-nav .first-level > .g-nav-item,
  .g-nav .second-level > .g-nav-item:first-child {
    border-top: none;
  }

  .g-nav .second-level .g-nav-link {
    padding: 0 15px;
  }

  .g-nav .third-level .g-nav-link {
    padding: 0 30px;
  }

  .g-nav .g-nav-link:hover,
  .g-nav .first-level > .g-nav-item:hover > .g-nav-link { /* keep first level item in hover state when dropdown is open */
    background: #f3f3f3;
  }

  .g-nav .second-level .g-nav-link:hover {
    background: #002B49;
    color: #fff;
  }

  .g-nav .g-nav-item:hover .second-level { /* show submenu on hover */
    display: block;
    position: absolute;
    top: 100%;
    z-index: 1;
  }

  .g-nav .second-level {
    display: none;
    min-width: 100%;
  }

  .g-nav .g-nav-has-dropdown > .g-nav-link:before {
    content: "";
  }

  .g-nav .g-nav-has-dropdown > .g-nav-link:after {
    font-family: FontAwesome;
    content: "\f0d7";
    float: none;
    font-size: 0.9em;
    margin-left: 0.5em;
  }
}
/*#endregion*/

/*#region user navigation */
#g-nav-user-profile {
  display: none;
}

#g-user-nav .second-level {
  right: 0;
}

#g-user-nav .user-nav-content {
  display: none;
  cursor: auto;
  right: 0;
  background: white;
  border: lightgrey solid 1px;
}

#g-user-nav .g-nav-item.is-active {
  padding: 0;
}

#g-user-nav .g-nav-item.is-active .user-nav-content {
  display: block;
  border: none;
}

#g-user-nav .g-nav-link > i {
  margin-top: 10px;
}

#g-user-nav-icon {
  font-size: 36px;
}

#g-user-avatar {
  height: 70px;
  display: block;
  margin: 0 10px;
}

.g-user-details-top {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  display: -ms-flexbox;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -ms-flex-direction: row;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -ms-flex-align: center;
  padding: 10px 20px;
  background: #f3f3f3;
}

.g-user-details-top h4 {
  margin: 0 10px 10px 10px;
  padding: 0;
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
}

.g-user-name {
  white-space: normal;
  margin: 10px;
}

#g-console-button {
  background-color: #02c1de;
  color: white;
  width: 140px;
}

#g-console-button:hover,
#g-console-button:focus {
  background-color: #02ADD9;
  color: #fff;
}

.g-nav-user-links {
  padding: 0 20px;
}

.g-nav-user-link {
  padding: 10px;
  border-bottom: #f1f1f1 1px solid;
}

.g-nav-user-link a {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.g-nav-user-link-icon {
  height: 40px;
  width: 40px;
}

.g-nav-user-link-text {
  font-size: 16px;
  color: #333E48;
  margin: 0 0 0 20px;
}

.g-nav-user-link:hover .g-nav-user-link-text {
  color: #999999;
}

.g-nav-user-settings {
  padding: 0 20px;
  margin-top: 15px;
}

.g-nav-user-settings > p,
.g-nav-user-settings > h4 {
  margin: 6px 0;
  color: #999;
}

.g-nav-user-settings > p {
  font-size: 14px;
}

.g-nav-user-settings > h4 {
  font-size: 18px;
}

.g-nav-user-settings a {
  color: #02c1de;
}

.g-nav-user-settings a:hover {
  color: #0291bd;
}

.g-nav-user-logout {
  padding: 10px 20px;
}

.g-nav-user-logout a {
  color: white;
  margin-top: 10px;
  background-color: #02c1de;
  width: 170px;
}

.g-nav-user-logout a:hover {
  background: #02ADD9;
}

@media only screen and (min-width: 1024px) {
  #g-user-nav {
    border-left: white 4px solid;
    outline: none;
    cursor: pointer;
    width: auto;
  }

  #g-nav-user-profile {
    width: 65px;
    display: block;
  }

  #g-nav-user-profile img {
    height: 30px;
    display: inline-block;
    vertical-align: middle;
  }

  #g-user-nav .user-nav-content {
    display: none;
    min-width: 100%;
  }

  #g-user-nav .g-nav-item:hover .user-nav-content {
    display: block;
    position: absolute;
    top: 100%;
    z-index: 1;
  }

  #g-nav-user-profile.g-nav-link:after {
    margin-left: 0;
  }

  .g-user-details-top {
    width: 300px;
  }

  .g-nav-user-logout a {
    margin: 10px 0;
  }
}
/*#endregion*/
