header {
  background-color: #242424;
  position: fixed;
  width: 100vw;
  color: #fff;
  top: 0px;
  z-index: 2;
}

header a {
  text-decoration: none;
}

.header-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.horizontal-menu {
  align-self: center;
  padding: 10px 30px;
}

.horizontal-menu .nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.horizontal-menu .nav-list li {
  align-self: center;
}

.header-search-container form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.header-search-container input {
  width: calc(100% - 40px);
  border: 0px;
  border-radius: 0px;
  background-color: #4D4D4D;
  color: #fff;
}

.header-search-container input::placeholder {
  color: #fff;
}

.header-search-container input:focus {
  background-color: #fff;
  color: #222;
  outline: 0;
}

.header-search-container input:focus ~ .icon-container {
  background-color: #fff;
}

/* when search input is focused, change icon color to #222 */
.header-search-container input:focus ~ .icon-container .icon-fill {
  fill: #222;
}

.header-search-container .icon-container:nth-child(3) {
  order: 0;
}

.header-search-container .icon-container:nth-child(3) button {
  background: none;
  border: none;
}

.header-search-container .icon-container:nth-child(3) button.hidden {
  display: none;
}

.header-search-container .icon-container:nth-child(3) svg path {
  fill: white;
}

.header-search-container .icon-container i {
  height: 18px;
}

.header-profile-link {
  display: flex;
}

.header-profile-link img {
  border-radius: 24px;
  position: relative;
  margin-left: -40px;
}

.header-profile-link .user-profile-image-initial {
  background-color: #E0E0E0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 800;
}

.icon-container {
  background-color: #4D4D4D;
  order: -1;
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
}

.sidebar-menu-open .icon-fill,
.sidebar-menu-close:hover .icon-fill {
  fill: #808080;
}

.sidebar-menu-open:hover .icon-fill,
.sidebar-menu-close .icon-fill {
  fill: #ffffff;
}

/*
  this class gets added to the html element when the sidebar menu is open,
  which disables scrolling of the page while it's open
*/
.sidebar-menu-is-open {
  overflow: hidden;
}

.quick-submit-button {
  margin-right: 9px;
}

.menu-icon-container {
  display: flex;
  align-items: center;
  width: 200px;
  padding-top: 5px;
}

.menu-icon-container a {
  display: flex;
  font-size: 1.3em;
  margin-right: 15px;
}

.menu-icon-container a i {
  height: 1.1em;
}

.sidebar-menu {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 60px;
  left: -99999px;
  background-color: rgba(0, 0, 0, 0.54);
}

.sidebar-menu-inner-container {
  width: 300px;
  background-color: #fff;
  position: fixed;
  top: 61px;
  left: -300px;
  height: calc(100VH - 60px);
  margin-bottom: 272px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.23);
  transition: all .3s ease;
  overflow: scroll;
}

#sidebar-menu:target {
  left: 0;
}

#sidebar-menu:target .sidebar-menu-inner-container {
  left: 0;
  transition: all .4s ease;
}

.sidebar-menu-main-menu {
  margin-top: 30px;
}

.sidebar-menu-main-menu li {
  align-self: flex-start;
}

.sidebar-menu-main-menu li a {
  color: #000;
  padding: 13px 30px;
  display: block;
}

.sidebar-menu-main-menu a:hover {
  background-color: #E6E6E6;
}

/* hamburger menu when sidebar menu is open */
.sidebar-menu-is-open .sidebar-menu-open {
  display: flex;
}
.sidebar-menu-is-open .sidebar-menu-close {
  display: none;
}

/* hamburger menu when sidebar menu is closed */
.sidebar-menu-is-closed .sidebar-menu-open {
  display: none;
}
.sidebar-menu-is-closed .sidebar-menu-close {
  display: flex;
}

.nav-list.sidebar-menu-additional-nav {
  padding-bottom: 100px;
  margin: 30px 0px 0px 30px;
}

.nav-list.sidebar-menu-additional-nav li {
  margin-bottom: 30px;
  display: flex;
}

header .full-width-container {
  padding: 10px 0;
  height: 40px;
}

header .right-col {
  text-align: right;
}

.main-content {
  padding-top: 30px;
  margin-top: 60px;
  /* make min height the height of the viewport minus height of footer, padding/margin, header, so that footer always looks fixed to bottom */
  min-height: calc(100VH - 227px - 90px - 60px);
}

/* profile img/button with dropdown menu */
.profile-dropdown-button-container {
  position: relative;
}

.profile-dropdown-button-container .profile-dropdown-button-items {
  position: absolute;
  top: 50px;
  left: -188px;
  background-color: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  width: 200px;
  display: none;
  flex-direction: column;
  padding: 15px;
}

.profile-dropdown-button-container .profile-dropdown-button-items a {
  justify-content: flex-start;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.profile-dropdown-button-container .profile-dropdown-button-items a:last-of-type {
  margin-bottom: 0;
}

.profile-dropdown-button-container .profile-dropdown-button-items a:hover {
  color: #808080;
}

.header-user-profile-image-initial {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.profile-dropdown-button-trigger {
  padding: 0px;
  min-width: unset;
  width: 40px;
  height: 40px;
  display: block;
  background-color: transparent;
  overflow: hidden;
}
.profile-dropdown-button-trigger img {
  top: -40px;
  position: relative;
  border-radius: 40px;
}

.header-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.header-buttons .language-select {
  opacity: 0;
}

.header-buttons .language-selector {
  background-repeat: no-repeat;
  background-position: right 8px center;
  width: 60px;
  position: relative;
  margin-right: 20px;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTNweCIgaGVpZ2h0PSI4cHgiIHZpZXdCb3g9IjAgMCAxMyA4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1Mi41ICg2NzQ2OSkgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+aW1hZ2UgKDEpPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9ImltYWdlLSgxKSIgZmlsbD0iI0ZGRkZGRiI+CiAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9IjEwLjczNTkgMC4yOTI5IDEyLjE1IDEuNzA3IDYuMjIxIDcuNjM2MyAwLjI5MyAxLjcwNyAxLjcwNzEgMC4yOTMgNi4yMjEgNC44MDc3Ij48L3BvbHlnb24+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=');
}

.header-buttons .language-selector .selected-language {
  text-transform: uppercase;
  position: absolute;
  left: 10px;
  top: 8px;
}

@media (max-width: 1000px) {
  header .full-width-container {
    height: 95px;
    display: flex;
    flex-wrap: wrap;
  }
  .header-search-container:after {
    width: 100%;
    content: '';
    display: block;
    position: absolute;
    top: 59px;
    left: 0;
    height: 57px;
    background-color: #3A3A3A;
    z-index: -1;
  }
  .header-search-container form {
    margin-top: 8px;
  }
  .main-content {
    margin-top: 115px;
  }
  header .full-width-container .left-col,
  header .full-width-container .right-col {
    width: 50%;
  }
  header .full-width-container .middle-col {
    width: 100%;
    margin-left: 0;
    order: 2;
    margin-top: 9px;
  }
  .sidebar-menu {
    top: 0;
  }
}

@media (max-width: 385px) {
  .header-buttons .language-selector {
    display: none;
  }
}
