header {
  margin-top: 5px;
  margin-bottom: 30px;
  display: grid;
  box-sizing: border-box;
  height: 50px;
  grid-template-columns: repeat(3, 1fr);
}

.left-header{
  display: flex;
  margin: 0 10px 0 50px;
}

.left-header-options {
  display: flex;
  align-items: center;
  width: 100%;
}

.hamburger-icon {
  width: 25px;
  margin-right: 15px;
}

.wikipedia-logo {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.wikipedia-name-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wikipedia-name {
  width: 120px;
  height: 18px;
  padding-bottom: 4px;
}

.wikipedia-tag {
  width: 117px;
  height: 12px;
}

.center-header{
  display: flex;
  align-items: center;
  flex: 1;
}

/* SEARCH BAR -------------------------------------------------- */

.search-bar-container{
  position: relative;
  display: flex;
  flex: 1;
  align-items: stretch;  /* input + button same height */
  width: 100%;
}

.search-bar {
  color: rgb(32, 33, 34);
  background-color: white;
  flex: 1;
  border: 1px solid rgb(162, 169, 177);
  box-shadow: rgba(0, 0, 0, 0) 0 0 0 1px inset;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-button {
  background-color: rgb(248, 249, 250);
  color: rgb(32, 33, 34);

  font-size: 1rem;
  font-family: Helvetica, sans-serif;
  font-weight: 700;
  width: fit-content;
  border: 1px solid rgb(162, 169, 177);

  padding-left: 11px;
  padding-right: 11px;
  margin-left: -1px;
  border-radius: 0px 2px 2px 0px;

  transition-duration: 0.15s;
}

.search-bar,
.search-button {
  font-size: 1rem;
  line-height: normal;       /* Fixes vertical alignment */
  height: 36px;              /* Make both same height */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 12px;           /* Consistent internal spacing */
}

.search-button:hover {
  background-color: rgb(255, 255, 255);
  cursor: pointer;
}
  
.search-button:active {
  background-color: rgb(228, 228, 228);
}



/* Input */
.search-bar {
  flex: 1;
  padding-left: 40px;        /* Space for icon */
  border: 1px solid #a2a9b1;
  border-right: none;
  border-radius: 2px 0 0 2px;
}

/* Button */
.search-button {
  border: 1px solid #a2a9b1;
  border-left: 1px solid #a2a9b1;
  border-radius: 0 2px 2px 0;
  background-color: #f8f9fa;
  font-weight: bold;
  white-space: nowrap;
}

.right-header{
  display: flex;
  align-items: center;
  justify-content: right;

  margin: 0 50px 0 10px;
}

.email-container {
  display: block;

  font-size: 1rem;
  text-align: right;
  color: #3568cc;
  flex: 1;
}

@media (max-width: 780px) {
  header {
    display: none;
  }
}