.header{
  z-index: 100;
  height: 55px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  position: fixed;
  background-color: white;
  top: 0;
  left: 0;
  right: 0;

  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgb(222, 222, 222);
} 

.first-item{
  display: flex;
  align-items: center;
}

.middle-item{
  flex: 1;
  margin-left: 70px;
  margin-right: 35px;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.hamburger-menu{
  margin-left: 24px;
  margin-right: 22px;
  height: 25px;
  cursor: pointer;
}

.youtube-logo{
  height: 20px;
  cursor: pointer;
}

.search-bar{
  flex: 1;
  padding-left: 15px;
  height: 36px;
  border-color: rgb(205, 205, 205);
  border-style: solid;
  border-width: 1px;
  border-radius: 30px 0 0 30px;
  font-size: 16px;
  width: 0;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.05);
}

.search-bar::placeholder{
  font-size: 16px;
}

.search-bar:focus{
  border: 1px, solid, rgb(57, 73, 175);
  outline: none;
  background: url("https://akshayab25.github.io/youtube-homepage-replica/icons/search.svg") no-repeat left 10px center;
  background-size: 18px;
  padding-left: 35px;
}

.search-button{
  width: 66px;
  height: 39px;
  border-color: rgb(205, 205, 205);
  border-style: solid;
  border-width: 1px 1px 1px 0;
  border-radius: 0 30px 30px 0;
  background-color: rgb(246, 246, 246);
  margin-right: 10px;
}

.search-button:active{
  background-color: rgb(235, 235, 235);
}

.search-button,
.voice-search-button,
.upload-icon-container,
.youtube-apps-container{
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button .tooltip,
.voice-search-button .tooltip,
.upload-icon-container .tooltip,
.youtube-apps-container .tooltip,
.notification-section .tooltip{
  position: absolute;
  background-color: rgba(107, 107, 107, 0.85);
  color: white;
  
  font-size: 12px;
  bottom: -48px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 2px;
  transition: opacity 0.15s;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

.search-button:hover .tooltip,
.voice-search-button:hover .tooltip,
.upload-icon-container:hover .tooltip,
.youtube-apps-container:hover .tooltip,
.notification-section:hover .tooltip{
  opacity: 1;
}

.search-icon{
  height: 25px;
}

.voice-search-button{
  height: 40px;
  width: 40px;
  border-radius: 20px;
  border: none;
  background-color: rgb(251, 251, 251);
}

.voice-search-icon{
  height: 24px;
}

.last-item{
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 20px;
  flex-shrink: 0;
}

.upload-icon,
.youtube-apps-icon,
.notifications-icon{
  height: 24px;
  width: 40px;
  margin-top: 4px;
}

.myprofile-image{
  margin-top: 4px;
  height: 32px;
  border-radius: 16px;
}

.notification-section{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.notifications{
  position: absolute;
  background-color: rgb(203, 6, 6);
  color: white;
  font-weight: 500;
  top: 4px;
  right: 5px;
  
  font-size: 10px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 1px;
  padding-bottom: 1px;
  border-radius: 10px;
}


