header {
    display: flex;
    max-width: 100%;
    justify-content: space-between;
    height: 57px;
    background-color: white;
    border-bottom: 1px solid rgb(222, 222, 222);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.left-section {
    max-width: 162px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-section .hamburger-menu {
    height: 24px;
    margin-left: 24px;
    margin-right: 24px;
    cursor: pointer;
}

.left-section .youtube-logo {
    height: 20px;
    cursor: pointer;
}

.middle-section {
    flex: 1;
    display: flex;
    max-width: 470px;
    margin-left: 60px;
    justify-content: center;
    align-items: center;
}

.middle-section .search-bar {
    height: 36px;
    width: 0;
    padding-left: 10px;
    border: 1px solid rgb(164, 157, 157);
    border-radius: 2px;
    font-size: 16px;
    flex: 1;
}

.middle-section .search-button {
    height: 36px;
    width: 64px;
    background-color: rgb(248 248 248);
    border: 1px solid rgb(164, 157, 157);
    margin-left: -1px;
    margin-right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.middle-section .search-button:hover {
    background-color: rgb(239, 239, 239);
}

.middle-section .search-button img {
    height: 24px;
}

.middle-section .voice-search-button {
    display: flex;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    background-color: rgb(248 248 248);
    border: none;
    cursor: pointer;
}

.middle-section .voice-search-button img {
    height: 24px;
}

.right-section {
    display: flex;
    width: 182px;
    justify-content: space-between;
    align-items: center;
    margin-right: 24px;
    margin-left: 29px;
}

.right-section div .icon {
    height: 24px;
    cursor: pointer;

}

.right-section .profile-image {
    height: 32px;
    cursor: pointer;
}

/* tooltip  */
.tooltip-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    transition: opacity .25s;
    transition-delay: .7s;
}

.tooltip {
    display: flex;
    align-items: center;
    padding: 11px 7px;
    position: absolute;
    bottom: -50px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    color: rgb(255, 255, 255);
    background-color: rgba(96, 96, 96, 0.9);
    border-radius: 5px;
    pointer-events: none;
}

.notification-count {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -3px;
    right: -6px;
    background-color: rgb(200, 0, 0);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    width: 17px;
    height: 17px;
    border: 2px solid white;
    padding-top: 1px;
}



@media (max-width: 700px) {
    .search-bar {
        display: none;
    }
    .middle-section .search-button {
        background-color: rgba(255, 255, 255, 0);
        border: none;
    }
    .middle-section .voice-search-button {
        display: none;
    }

    .middle-section {
        justify-content: end;
    }

    .right-section {
        margin-left: 0;
    }
}

@media (max-width: 500px) {

    header {
        position: inherit;
    }
    .hamburger-menu {
        display: none;
    }

    .youtube-logo {
        margin-left: 24px;
    }

    .middle-section .search-button {
        margin-right: 0px;
    }
    .removed-in-phone {
        display: none;
    }
    .right-section {
        max-width: 84px;
    }
    
}

