.header {
  z-index: 100;
  height: 56px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-bottom: 1px solid #DEDEDE;
  padding: 0 12px;
}
.left-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.middle-section {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 40px;
  margin-right: 20px;
  max-width: 640px;
}
.right-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-right: 4px;
  width: auto;
  justify-content: flex-end;
}
.hamburger-menu {
  height: 24px;
  margin-left: 12px;
  margin-right: 20px;
  cursor: pointer;
}
.youtube-logo {
  height: 20px;
  cursor: pointer;
}
.search-bar {
  flex: 1;
  width: 0;
  height: 36px;
  padding-left: 12px;
  font-size: 16px;
  border: 1px solid rgb(192, 192, 192);
  border-radius: 20px 0 0 20px;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.05);
  outline: none;
}
.search-bar::placeholder {
  font-size: 16px;
}
.search-bar:focus {
  border-color: #1c62b9;
}
.search-btn {
  height: 38px;
  width: 64px;
  border: 1px solid rgb(192, 192, 192);
  background-color: #EFEFEF;
  margin-left: -1px;
  margin-right: 10px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-btn, .voice-search-btn, 
.upload-icon-container, 
.youtube-icon-container, 
.notifications-icon-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-btn .tooltip, 
.voice-search-btn .tooltip, .upload-icon-container .tooltip, .youtube-icon-container .tooltip, 
.notifications-icon-container .tooltip {
  position: absolute;
  background-color: gray;
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
  bottom: -30px;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  pointer-events: none;
}
.search-btn:hover .tooltip, 
.voice-search-btn:hover .tooltip, .upload-icon-container:hover .tooltip, 
.youtube-icon-container:hover .tooltip,
.notifications-icon-container:hover .tooltip {
  opacity: 1;
}
.search-icon {
  height: 20px;
}
.voice-search-btn {
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgb(248, 248, 248);
  cursor: pointer;
  flex-shrink: 0;
}
.voice-search-icon {
  height: 24px;
}
.upload-icon, .youtube-apps-icon, .notifications-icon {
  height: 24px;
  cursor: pointer;
}
.notifications-count {
  position: absolute;
  top: -2px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 10px;
}
.current-user-picture {
  height: 32px;
  width: 32px;
  border-radius: 16px;
  cursor: pointer;
  object-fit: cover;
}
@media (max-width: 768px) {
  .middle-section {
    margin-left: 16px;
    margin-right: 12px;
  }
  .right-section {
    gap: 12px;
  }
}
@media (max-width: 650px) {
  .header {
    padding: 0 8px;
  }
  .hamburger-menu {
    display: none;
  }
  .middle-section {
    margin-left: 8px;
    margin-right: 8px;
    justify-content: flex-end;
  }
  .search-bar {
    display: none;
  }
  .search-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0;
  }
  .search-btn:hover {
    background-color: #f2f2f2;
  }
  .voice-search-btn {
    background: transparent;
    width: 40px;
    height: 40px;
  }
  .upload-icon-container,
  .youtube-icon-container {
    display: none;
  }
  .right-section {
    gap: 10px;
  }
}
@media (max-width: 400px) {
  .youtube-logo {
    height: 18px;
  }
  .middle-section {
    flex: 0;
  }
}
