header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--background-color);
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-desktop-height);
}

.header_content {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  height: var(--header-content-height);
  min-height: 0;
  align-self: center; 
}

.image_container_logo {
  display: flex;
  align-self: center;
  justify-self: center;
  height: 100%;
  margin: auto;
  padding: 1rem 1rem 0 1rem;
}

.icon_container {
  height: 100%;
  align-content: center;
}

#menu_icon {
  display: none;
}

.popout_menu {
  display: flex;
  flex-direction: row;
  min-height: 100px;
  margin: 0 var(--general-margin-standard) 0 var(--general-margin-standard);
  padding: 0 2rem 0 2rem;
  background-color: var(--background-color);
  font-size: 1.1rem;
}

.popout_menu_content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
  width: 100%;
}

.menu_option {
  max-width: 120px;
}

@media only screen and (max-width: 1300px) {

  header {
    height: var(--header-mobile-height);
  }

  .header_content {
    justify-content: space-between;
    width: 100%;
    max-height: 100%;
  }
  
  .image_container_logo {
    align-items: center;
    max-height: 100%;
    margin: 1rem 0.5rem 1rem 1rem;
    padding: 1rem 1rem 1rem 0;
  }

  #menu_icon {
    display: block;
    align-self: center;
    min-width: 45px;
    margin: 1rem 1rem 0.5rem 0.5rem;
    font-size: 2.25rem;
    color: var(--highlight-blue);
  }

  .popout_menu {
    position: fixed;
    top: var(--header-mobile-height);
    left: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100dvh - var(--header-mobile-height));
    margin: 0;
    background-color: var(--background-color);
    transition: left 300ms ease-in-out;
    font-size: 1.25rem;
  }
  
  .popout_menu_content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0.25rem;
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - var(--footer-mobile-height));
    padding: var(--general-margin-standard);
    padding-bottom: var(--footer-mobile-height);
    overflow-y: auto;
    background-color: var(--background-color);
    text-align: center;
  }

  .menu_option {
    margin: var(--general-margin-standard) 0;
    max-width: none;
  }

}