.header {
  height: 55px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 100;
  /* 헤더 밑의 요소들이 스크롤해도 항상 헤더가 앞에 오도록 */

  background-color: white;
  border-bottom: 1px solid rgb(228, 228, 228);
}

.left-section {
  /* background-color: lightblue; */
  display: flex;
  align-items: center;
}

.hamburger-menu {
  height: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 0 6px;
}

.youtube-logo {
  height: 20px;
  padding-right: 12px;
}

.middle-section {
  /* background-color: lightpink; */
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  padding: 0 0 0 40px;
}

.search-bar {
  flex: 1;
  width: 0;
  /* 화면 너비 줄어듦에 따라 완전히 줄어들도록 */
  height: 36px;
  font-size: 16px;
  padding-left: 10px;
  border: 1px solid rgb(192, 192, 192);
  border-radius: 2px;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.05);
}

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

.search-button {
  height: 40px;
  width: 66px;
  background-color: rgb(241, 241, 241);
  border: 1px solid rgb(192, 192, 192);
  margin-left: -1px;
  margin-right: 10px;
}

.search-icon {
  height: 18px;
}

.voice-search-button {
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgb(241, 241, 241);
}

.voice-search-icon {
  height: 24px;
}

.search-button,
.voice-search-button,
.create-btn,
.notification-icon-btn,
.profile-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.search-button .tooltip,
.voice-search-button .tooltip,
.notification-icon-btn .tooltip {
  position: absolute;
  bottom: -18px;
  background-color: gray;
  color: white;
  border-radius: 2px;
  padding: 2px 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  /*  클릭/hover에 반응하지 않음 */
}

.search-button:hover .tooltip,
.voice-search-button:hover .tooltip,
.notification-icon-btn:hover .tooltip {
  opacity: 1;
}

.right-section {
  /* background-color: rgb(255, 254, 196); */
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 24px;
  flex-shrink: 0;
  /* 공간 부족해도 크기 유지 */
}

.create-btn {
  height: 40px;
  background-color: rgb(241, 241, 241);
  border-radius: 20px;
  padding: 0 4px;
}

.create-icon {
  height: 44px;
}

.create-txt {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0 12px 0 0;
}

.notification-icon-btn {
  margin-top: 2px;
  position: relative;
}

.notification-icon {
  height: 24px;
}

.notifications-count {
  position: absolute;
  top: -3px;
  right: -8px;
  background-color: rgb(231, 0, 0);
  color: white;
  border: 1px solid white;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  padding: 2px 5px;
}

.profile-btn {
  height: 32px;
  padding: 0 8px;
}

.profile-img {
  height: 100%;
  border-radius: 50%;
}