* {
    box-sizing: border-box;
}

body {
    margin: 0 0 0 0;
    width: 800px;
    padding-top: 100px;
    padding-left: 120px;
    padding-right: 20px;
    background-color: rgb(247, 247, 247);
}

/* Header */

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color:rgb(255, 255, 255);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: rgb(226, 226, 226);
    z-index: 100;
}

/* Left Section of Header */

.hamburger-menu {
    height: 28px;
    margin-left: 24px;
    margin-right: 20px;
}

.youtube-logo {
    height: 28px;
}

.left-section {
    width: 160px;
    display: flex;
    align-items: center;
}

/* Middle Section of Header */

.search-bar {
    flex: 1;
    height: 40px;
    width: 0;
    font-size: 16px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(190, 187, 187);
    border-radius: 5px 2px 2px 5px;
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.08);

}

.search-bar::placeholder {
    font-family: Roboto, Arial;
    font-size: 16px;
    padding-left: 10px;
}

.search-button {
    height: 42px;
    width: 74px;
    background-color: rgb(228, 227, 227);
    border: none;
    margin-left: -1px;
    border-radius: 0 5px 5px 0;
}

.search-button:hover {
    background-color: rgba(146, 144, 144, 0.4);
    cursor: pointer;
}

.search-icon {
    height: 25px;
}

.search-tooltip,
.voice-tooltip {
    position: absolute;
    background-color: rgb(107, 107, 107);
    color: white;
    padding: 6px 10px;
    border-radius: 3px;
    bottom: -33px;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    white-space: nowrap;
}

.search-button:hover .search-tooltip,
.voice-button:hover .voice-tooltip {
    opacity: 1;
}

.search-button,
.voice-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-button {
    height: 44px;
    width: 44px;
    background-color: rgb(243, 243, 243);
    border: none;
    margin-left: 8px;
    border-radius: 22px;
}

.voice-button:hover {
    background-color:rgba(146, 144, 144, 0.4);
    cursor: pointer;
}

.voice-search-icon {
    height: 26px;
}

.middle-section { 
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: 70px;
    margin-right: 35px;
    max-width: 500px;
    
}

/* Right Section of Header */

.right-section {
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 18px;
    flex-shrink: 0;
}

.icon-header-images1 {
    height: 34px;
}

.icon-header-images2 {
    height: 34px;
}

.icon-header-images3 {
    height: 34px;
}

.icon-header-image3-number {
    position: relative;
}

.icon-header-images4 {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 25px;
}

.icon-notification-number {
    background-color: rgb(216, 0, 0);
    color: white;
    position: absolute;
    text-align: center;
    border: 2px solid white;
    font-family: Roboto, Arial;
    padding-top: 3px;
    padding-right: 6px;
    padding-bottom: 3px;
    padding-left: 6px;
    top: -4px;
    right: -4px;
    font-size: 11px;
    border-radius: 12px;
}
 
/* Sidebar */

.sidebar {
    background-color: rgb(255,255,255);
    position: fixed;
    width: 90px;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 200;
    padding-top: 5px;
    cursor: pointer;
}

.sidebar-icons {
    height: 76px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sidebar-icons:hover {
    background-color: rgba(148, 148, 148, 0.4);
}

.sidebar-images {
    height: 25px;
    margin-bottom: 8px;
}

.sidebar-icons div{
    font-family: Roboto, Arial;
    font-size: 11px;
}

 /* Thumbnails / Profile Pictures & Video Info */

p { 
    font-family: Roboto, Arial;
    margin-top: 0;
    margin-bottom: 0;
}

.thumbnail {
    width: 100%;
    z-index: -1;
}

.video-title {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    margin-bottom: 11px;
}
  
.video-preview {
    width: 300px;
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

.video-info-grid {
    display: grid;
    grid-template-columns: 50px 1fr;
}


.profile-picture {
    border-radius: 30px;
    width: 40px;
}
.profile-time {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 4px;
    z-index: 2;
    right: 5px;
    bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: Roboto, Arial;
    border-radius: 3px;
}

.thumbnail-row {
    position: relative;
    margin-bottom: 12px;
}

.video-author {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.video-stats {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}


.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-evenly;
    column-gap: 16px;
    row-gap: 40px;
}
