header {
  display: flex;
  max-height: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}

.logo {
  max-width: 125px;
}

.navbar {
  z-index: 1;
}

.nav-item, .subnav {
  font-family: 'Encode Sans', sans-serif;
}

.nav-item {
  cursor: pointer;
}

.subnav {
  display: flex;
  padding-left: 30;
}

.about-subnav {
  margin: 0px;
  display: none;
  flex-direction: column;
  margin-left: -30px;
}

.subnav-item {
  color: #86888c;
  margin: 10px;
  height: 100%;
  box-sizing: border-box;
}

.subnav-item a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.subnav-item a:hover {
  text-decoration: underline;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;

  border-bottom: 5px solid rgb(182, 182, 182);

  margin: 5px;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;

  border-top: 5px solid rgb(182, 182, 182);

  margin: 8px 5px 5px 5px;
}

.search-bar-container {
  width: 150px;
  display: flex;
  align-items: center;
}

.search-bar {
  border-color: #59CBE8;
  border-style: solid;
  border-width: 2px;
  width: 100%;
  height: 20px;
  border-radius: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 5px;
}

.search-icon {
  height: 15px;
  width: auto;
}

.search-input {
  border: none;
}

.gsc-search-button {
  display: none;
}

.gsc-input-box {
  border-radius: 10px;
  height: 30px;
}

nav .nav-item {
  padding: 10px;
  text-decoration: none;
  color: #939BA1;
  margin-right: 15px;
  display: flex;
}

/* Desktop-only styles */
@media only screen and (min-width: 900px) {
  .logo-large {
    width: auto;
  }

  .logo-small {
    display: none;
  }

  .dropdown {
    display: none;
  }

  .dropdownButton {
    display: none;
  }

  .about-subnav-active {
    position: absolute;
    display: flex;
    flex-direction: row;
    top: 85px;
    left: 0px;
    right: 0px;
    height: 80px;
    background-color: #606163;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
    margin-right: 30px;
  }

  .subnav-item {
    justify-content: center;
    align-items: center;
    width: 100px;
  }

  .subnav-item:hover {
    /*border-bottom: 10px;*/
    color: white;
    cursor: pointer;

    border-bottom-color: white;

    border-bottom-style: solid;
  }

  .subnav-item:hover a {
    color: white;
    text-decoration: none;
  }
}

/* Mobile-only styles */
@media only screen and (max-width: 900px) {
  .logo_small {
    width: auto;
  }

  .logo-hide {
    display: none;
  }

  .logo-large {
    display: none;
  }

  .dropdownButton {
    border-color: #939BA1;
    color: #939BA1;
    border-width: 2px;
    border-style: solid;
    font-weight: bold;
    padding: 10px 5px;
    margin: 5px;
    cursor: pointer;
  }

  header.dropdown-active .dropdownButton {
    color: white;
    border-color: white;
  }

  header nav .nav-item {
    padding: 10px;
    display: none;
  }

  .nav-item .search-bar-container {
    width: 100%;
  }

  .search-bar-container img {
    display: none;
  }

  .search-bar {
    background-color: #6F757A;
  }

  .gsc-input-box {
    border-color: #f7f8f8;
  }

  #___gcse_0 {
    width: 90%;
  }

  header nav .nav-item.dropdown-active {
    display: flex;
    color: rgb(182, 182, 182);
    width: 100%;
  }

  header {
    flex-wrap: wrap;
  }

  header.dropdown-active {
    background-color: rgb(87, 84, 84);
  }

  header nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 0px;
    cursor: pointer;
  }

  .about-subnav-active {
    display: flex;
  }

  .subnav-item a {
    color: rgb(182, 182, 182);
    text-decoration: none;
  }

}
