:root {
  --header-color: white;
}

.header {
  height: 55px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background-color: var(--header-color);

  z-index: 100;
}

.left-section {
  align-items: center;
  display: flex;
}

.hamburger-menu {
  height: 24px;
  margin-left: 24px;
  margin-right: 20px;
  cursor: pointer;
  filter: var(--img-color);
}

.youtube-logo {
  height: 20px;
  cursor: pointer;
}

.dark-youtube-logo {
  height: 42px;
  cursor: pointer;
}

.middle-section {
  flex: 1;
  margin-left: 70px;
  margin-right: 35px;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.search-button {
  height: 40px;
  width: 66px;
  background-color: rgb(240, 240, 240);
  border-width: 1px;
  border-style: solid;
  border-color: rgb(209, 209, 209);
  margin-left: -1px;
  margin-right: 10px;
}

.search-button-dark {
  height: 40px;
  width: 66px;
  background-color: rgb(55, 55, 55);
  border-width: 1px;
  border-style: solid;
  border-color: rgb(69, 69, 69);
  margin-left: -1px;
  margin-right: 10px;
}

.search-button,
.search-button-dark,
.voice-search-button,
.upload-icon-container,
.apps-icon-container,
.notification-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.search-button .tooltip,
.search-button-dark .tooltip,
.voice-search-button .tooltip,
.upload-icon-container .tooltip,
.apps-icon-container .tooltip,
.notification-icon-container .tooltip {
  position: absolute;
  background-color: gray;
  color: white;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 2px;
  font-size: 12px;
  bottom: -30px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  white-space: nowrap;
}

.search-button:hover .tooltip,
.search-button-dark:hover .tooltip,
.voice-search-button:hover .tooltip,
.upload-icon-container:hover .tooltip,
.apps-icon-container:hover .tooltip,
.notification-icon-container:hover .tooltip {
  opacity: 1;
}

.search-bar {
  flex: 1;
  height: 36px;
  font-size: 16px;
  border: 1px solid rgb(209, 209, 209);
  border-radius: 2px;
  box-shadow: inset 1px 2px 1px rgba(0, 0, 0, 0.05);
  width: 0;
  padding-left: 10px;
  background-color: rgb(240, 240, 240);
}

.search-bar-dark {
  flex: 1;
  height: 36px;
  font-size: 16px;
  border: 1px solid rgb(69, 69, 69);
  border-radius: 2px;
  box-shadow: inset 1px 2px 1px rgba(0, 0, 0, 0.05);
  width: 0;
  padding-left: 10px;
  background-color: rgb(55,55,55);
}

.search-bar::placeholder {
  font-size: 16px;
}

.search-bar-dark::placeholder {
  font-size: 16px;
  color: rgb(200, 200, 200);
}

.search-icon {
  height: 25px;
  filter: var(--img-color);
}

.voice-search-button {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgb(248, 248, 248);
  filter: var(--img-color);
}

.voice-search-icon {
  height: 24px;
}

.right-section {
  width: 180px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.upload-icon,
.youtube-apps-icon,
.notifications-icon {
  height: 24px;
  filter: var(--img-color);
}

.notification-icon-container {
  position: relative;
}

.notifications-count {
  position: absolute;
  top: -2px;
  right: -5px;
  background-color: #cc0000;
  color: white;
  font-size: 11px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  border-radius: 50%;
}

.current-user-picture {
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

@media (min-width: 1000px) {
  .search-button .tooltip,
  .voice-search-button .tooltip,
  .upload-icon-container .tooltip,
  .apps-icon-container .tooltip,
  .notification-icon-container .tooltip {
    font-size: 14px;
  }
}
