.header{
    height: 55px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    position:fixed;
    top:0;
    left:0;
    right:0;
    background-color: white;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(228, 228, 228);
    z-index: 100;  
}
.left-section{
    display:flex;
    align-items: center;
}

.hamburger-menu{
    height: 25px;
    margin-left: 25px;
    margin-right: 25px;
    cursor: pointer; 
}

.youtube-logo{
    height: 20px;
    cursor: pointer;
}

.middle-section{
    flex: 1;
    margin-left: 70px;
    margin-right: 35px;
    max-width: 500px;
    display:flex;
    align-items: center;
}

.search-bar{
    flex: 1;
    height: 35px;
    font-size: 16px;
    border-width: 1px;
    border-color: lightgray;
    border-style: solid;
    border-radius: 2px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: inset 1px 2px 3px rgba(0,0,0,0.05);
    width: 0;
}

.search-bar::placeholder{
    font-size: 16px;
}

.search-button{
    height: 40px;
    width: 66px;
    background-color: rgb(240, 240, 240);
    border-width: 1px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(192, 192, 192);
    margin-left: -1px;
    margin-right: 10px;  
}

.search-button , .voice-search-button, 
.upload-icon-container, .youtube-apps-icon-container,
.notifications-icon-container
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.search-button .tooltip,
.voice-search-button .tooltip,
.upload-icon-container .tooltip,
.youtube-apps-icon-container .tooltip,
.notifications-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,
.voice-search-button:hover .tooltip,
.upload-icon-container:hover .tooltip,
.youtube-apps-icon-container:hover .tooltip,
.notifications-icon-container:hover .tooltip{
    opacity: 1;
}

.search-icon{
    height: 25px;
}

.voice-search-button{
    height: 40px;
    width: 40px;
    border-radius: 20px;
    border: none;
    background-color: rgb(245, 245, 245);
}

.voice-search-icon{
    height: 25px;
   
}

.right-section{
    display: flex;
    align-items: center;
    width: 180px;
    margin-right: 20px;
    justify-content: space-between;
    flex-shrink: 0;  
}

.upload-icon{
    height: 25px;
}

.youtube-apps-icon{
    height: 25px;
}   

.notifications-icon{
    height: 25px;
}
.notifications-icon-container{
    position: relative;
}
.notifications-count{
    position: absolute;
    right: -5px;
    top: -2px;
    background-color: rgb(200, 0, 0);
    color: white;
    
    font-size: 11px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 10px;
}

.current-user-picture{
    height: 32px;
    border-radius: 16px;
    cursor: pointer;
}
#dark-mode-toggle:checked ~ .page .header {
  background: #202020;
}
#dark-mode-toggle:checked ~ .page .hamburger-menu {
  filter: invert(1);
}
#dark-mode-toggle:checked ~ .page .upload-icon {
  filter: invert(1);
}
#dark-mode-toggle:checked ~ .page .youtube-apps-icon {
  filter: invert(1);
}
#dark-mode-toggle:checked ~ .page .notifications-icon {
  filter: invert(1);
}
