.header {
  display: flex;
  flex-direction: row;
  height: 57px;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-bottom-width: 1px;
  border-bottom-color: rgb(222, 222, 222);
  border-bottom-style: solid;
  z-index: 100;
}

.left-section {
  display: flex;
  align-items: center;
}

.hamburger-menu {
  height: 24px;
  margin-left: 24px;
  margin-right: 24px;
}

.youtube-logo {
  height: 20px;
}


.middle-section {
  flex: 1;
  margin-left: 70px;
  margin-right: 25px;
  max-width: 450px;
  display: flex;
  align-items: center;
}

.search-bar {
  flex: 1;
  height: 36px;
  padding-left: 10px;
  font-size: 15px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  border-radius: 2px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.05);
  width: 0;
}

.search-bar::placeholder {
  font-family: Roboto, Arial;
  font-size: 15px;
}

.search-icon {
  height: 24.5px;
  margin-top: 4px;
}

.search-button {
  height: 38.5px;
  width: 66px;
  margin-right: 5px;
  background-color: rgb(247, 247, 247);
  border: 1px solid rgb(204, 204, 204);
  border-left-width: 0px;
  position: relative;
  cursor: pointer;
}

.search-button .tooltip {
  position: absolute;
  background-color: gray;
  color: white;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 8px;
  padding-right: 8px;
  font-family: Roboto, Arial;
  font-size: 12px;
  border-radius: 2px;
  top: 50px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.search-button:hover .tooltip{
  opacity: 1;
}

.voice-search-icon {
  height: 25px;
  margin-top: 4px;
}

.voice-search-button {
  height: 40px; 
  width: 40px;
  border-radius: 100%;
  border: None;
  margin-left: 4px;
  background-color: rgb(248, 248, 248);
}

.right-section {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-right: 20px;
}

.upload {
  width: 25px;
}

.youtube-apps {
  width: 25px;
}

.notifications {
  width: 25px;
}

.notifications-div {
  position: relative;
}

.notifications-count {
  position: absolute;
  background-color: rgb(200, 60, 60);
  color: white;
  top: -2px;;
  right: -5px;;
  font-family: Roboto, Arial;
  font-size: 11px;
  padding-left: 5px;
  padding-right: 6px;
  padding-top: 2px;
  padding-bottom: 2px;
  border-radius: 100%;
}

.my-channel {
  width: 34px;
  border-radius: 50%;
  height: 34px;
}

/* With the right section, we can use a flexbox
Then set the justify-content to space-between
Then give a margin-right to the last element
Then reduce the width of the right section
Then set flex-shrink to 0 */