.header {
    height: 55px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background-color: white;
    opacity: 0.9;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.left-section {
    width: 150px;
    display: flex;
    align-items: center;
}
.hamburger-menu {
    height: 24px;
    margin-left: 24px;
    margin-right: 24px;
    cursor: pointer;
}
.youtube-logo {
    height: 20px;
    cursor: pointer;
}
.middle-section {
    flex: 1;
    margin-left: 70px;
    margin-right: 35px;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-bar {
    flex: 1;
    height: 36px;
    padding-left: 10px;
    font-size: 16px;
    border: 1px solid rgb(204, 204, 204);
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.10);
    width: 0;
    border-radius: 30px 0 0 30px;
}
.search-bar::placeholder {
    font-family: Roboto, Arial;
    font-size: 16px;
}
.search-button {
    height: 40px;
    width: 66px;
    background-color: rgb(233, 233, 233);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    margin-left: -1px;
    margin-right: 15px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}

.search-button,
.voice-search-button,
.upload-icon-conta,
.notifications-num,
.youtube-apps-con {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.search-button .tooltip,
.voice-search-button .tooltip,
.upload-icon-conta .tooltip,
.notifications-num .tooltip,
.youtube-apps-con .tooltip {
    font-family: Roboto, Arial;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 8px;
    padding-left: 8px;
    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-conta:hover .tooltip,
.notifications-num:hover .tooltip,
.youtube-apps-con:hover .tooltip {
    opacity: 1;
}

.search-icon {
    height: 25px;
}
.voice-search-button {
    height: 40px;
    width: 40px;
    border-radius: 20px;
    border: none;
    border-color: rgb(204, 204, 204);
    cursor: pointer;
    transition: background-color 0.15s;
}
.voice-search-button:hover {
    background-color: rgb(117, 117, 117);
}
.voice-search-button:active{
    background-color: rgb(216, 216, 216);
}   
.voice-search-icon {
    height: 24px;
}
.right-section {
    width: 200px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.upload-icon {
    height: 25px;
    cursor: pointer;
    padding: 8px;
    border-radius: 20px;
}
.upload-icon:hover {
    background-color: rgb(216, 216, 216);
}
.upload-icon:active {
    background-color: rgb(117, 117, 117);
}
.youtube-apps-icon {
    height: 25px;
    cursor: pointer;
    padding: 8px;
    border-radius: 20px;
}
.youtube-apps-icon:hover {
    background-color: rgb(216, 216, 216);
}
.youtube-apps-icon:active {
    background-color: rgb(117, 117, 117);
}
.notifications-icon {
    height: 25px;
    padding: 8px;
    border-radius: 20px;
}
.notifications-icon:hover {
    background-color: rgb(216, 216, 216);
}
.notifications-icon:active {
    background-color: rgb(117, 117, 117);
}

.notifications-num {
    position: relative;
    cursor: pointer;
}
.notifications-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: rgb(200, 0, 0);
    color: white;
    font-family: Roboto, Arial;
    font-size: 11px;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
    padding-top: 2px;
    border-radius: 50px;
}
.user-pic {
    height: 32px;
    border-radius: 16px;
    cursor: pointer;
}