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

.left-section {


  display: flex;
  align-items: center;


}

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

.youtube-logo {
  height: 20px;
}

.middle-section {

  flex: 1;
  margin-left: 70px;
  margin-right: 35px;
  max-width: 500px;
  display: flex;
  align-items: center;


}

.search-bar {
  flex: 1;
  height: 36px;
  padding-left: 10px;
  font-size: 16px;
  border: 1px solid rgb(162, 162, 162);
  border-radius: 3px;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.15);
  width: 0;

}

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

.search-button {
  height: 40px;
  width: 66px;
  background-color: rgb(233, 227, 227);
  border: 1px solid rgb(162, 162, 162);
  margin-left: -1px;
  margin-right: 10px;
  position: relative;

}
.search-button,
.voice-search-button,
.upload-icon-container{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.search-button .tooltip,
.voice-search-button .tooltip,
.upload-icon-container .tooltip
{
  position: absolute;
  background-color: gray;
  color: white;
  font-family: Roboto, Arial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 2px;
  font-size: 12px;
  bottom: -28px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  white-space: nowrap;
}
.search-button:hover .tooltip,
.voice-search-button:hover .tooltip,
.upload-icon-container:hover .tooltip{
  opacity: 1;
}

.search-icon {
  height: 25px;
 
}

.voice-search-button {
  height: 40px;
  width: 40px;
  border-radius: 20px;
  border: none;

}

.right-section {

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

}

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

.upload-icon {
  height: 24px;
}

.youtube-apps-icon {
  height: 24px;
}

.notification-icon {
  height: 24px;
}

.notification-icon-container {
  position: relative;
}

.notification-count {
  position: absolute;

  background-color: rgb(214, 2, 2);
  color: white;
  font-family: Roboto, Arial;
  font-size: 11px;
  padding-left: 5px;
  padding-bottom: 2px;
  padding-right: 5px;
  padding-top: 2px;
  border-radius: 10px;
  right: -5px;
  top: -2px;

}

.current-user-picture {
  height: 32px;
  border-radius: 16px;
}
/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

  .middle-section {
    margin-left: 10px;
    margin-right: 10px;
    max-width: none;
  }

  .right-section {
    width: auto;
    margin-right: 10px;
  }

  .search-button {
    width: 50px;
  }

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

/* =========================
   MOBILE (Like YouTube)
========================= */

@media (max-width: 480px) {

  .middle-section {
    display: none; /* YouTube hides search bar */
  }

  .right-section {
    width: auto;
    justify-content: flex-end;
  }

  .upload-icon-container,
  .youtube-apps-icon {
    display: none; /* hide extra icons */
  }

  .header {
    height: 55px;
  }
}
