p{
    margin-top: 0;
    margin-bottom: 0;
}

body{
    font-family: Roboto, Arial;
    margin: 0;
    padding-top: 80px;
    padding-left: 96px;
    padding-right: 24px;
    background-color: rgb(248, 248, 248);
}

.thumbnail{
    width: 100%;  
}

.video-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 15px;
    row-gap: 40px;
}

/*
For responsiveness
if the width is less than 600px
then it reduces the row
*/
@media (max-width: 900px) {
    .video-grid{
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 899px) and (max-width: 1159px) {
    .video-grid{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 500px) and (max-width: 600px) {
    .video-grid{
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .video-grid{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}



.video-title{
    margin-top: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    margin-bottom: 10px;
}

.video-author{
   font-size: 12px;
   color: rgb(96, 96, 96);
   margin-bottom: 4px;
}

.video-stats{ 
    font-size: 12px;
    color: rgb(96, 96, 96);
}

.video-info-grid{
       display: grid;
       grid-template-columns: 50px 1fr;
}

.profile-picture{
    width: 36px;
    border-radius: 20px;
}

.thumbnail-row{
    margin-bottom: 8px;
    position: relative;
}

.video-time{
    font-size: 12px;
    font-weight: bold;
    background-color: black;
    /*
    First value is vertical padding
    Second value is horizontal padding
    if you are using four values
    then it is in the order
    top, right, bottom, left
    */
    padding: 4px;
    color: white;
    position: absolute;
    bottom: 10px;
    right: 5px;
    border-radius: 3px;
}

.header{
    height: 55px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    background-color: white;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(228, 228, 228);
    z-index: 50;
    /*
    z-index is for 3d for bringng it front
    to know which one comes first use order
    */
}

.left-section{
    display: flex;
    align-items: center;
}

.hamburger-menu{
    height: 24px;
    margin-left: 24px;
    margin-right: 20px;
}

.menubar{
    cursor: pointer;
    padding-top: 20px;
    padding-bottom: 20px;
}

.menubar:hover{
    background-color: rgb(235, 235, 235);
}

.youtube-logo{
    height: 20px;
}

.middle-section{
    flex: 1;
    margin-left: 70px;
    margin-right: 35px;
    max-width: 500px;
    display: flex;
    align-items: center;
}

.search-bar{
    flex: 1;
    height: 36px;
    padding-left: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid rgb(192, 192, 192);
    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(245, 245, 245);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(192, 192, 192);
    margin-left: -3px;
    margin-right: 10px;
}

.search-button, 
.voice-search-button,
.upload-container,
.youtube-apps-icons-container,
.notifications-icons-container{
    display: flex;
    position: relative;
    cursor: pointer;
    justify-content: center;/*Centers Horizontally*/
    align-items: center;/*Centers Vertically*/
}

.search-button .tooltip, 
.voice-search-button .tooltip,
.upload-container .tooltip,
.youtube-apps-icons-container .tooltip,
.notifications-icons-container .tooltip{
    font-size: 12px;
    position: absolute;
    background-color: gray;
    color: white;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;/*This disables the effect when u hover over the tooltip*/
    white-space: nowrap;/*This prevents the text from wrapping around*/
}

.search-button .tooltip, 
.voice-search-button .tooltip{
    bottom: -30px;
}

.upload-container .tooltip,
.youtube-apps-icons-container .tooltip,
.notifications-icons-container .tooltip{
    bottom: -37px;
}

.search-button:hover .tooltip,
.voice-search-button:hover .tooltip,
.upload-container:hover .tooltip,
.youtube-apps-icons-container:hover .tooltip,
.notifications-icons-container:hover .tooltip{
    opacity: 1 ;
}

/*.search-button .tooltip:hover{
    opacity: 0;
}
This might also be used to disable the effect of hovering over the tooltip
*/

.search-icon{
    height: 25px;
}

.voice-search-button{
    height: 40px;
    width: 40px;
    background-color: rgb(245, 245, 245);
    border: none;
    border-radius: 20px;
}

.voice-search-icon{
    height: 25px;
}

.right-section{
    width: 180px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.upload-icons{
    height: 24px;
}

.youtube-apps-icons{
    height: 24px;
}

.notifications-icons{
    height: 24px;
}

.notifications-icons-container{
    position: relative;
}

.notification-count{
    font-size: 11px;
    background-color: rgb(200, 0, 0);
    color: white;
    position: absolute;
    top: -4px;
    right: -4px;
    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;
}

.sidebar{
    background-color: white;
    position: fixed;
    left: 0;
    bottom: 0;
    top: 55px;
    width: 72px;
    z-index: 200;
    padding-top: 5px;
}

.sidebar-link{
    height: 74px;
    display: flex;
    flex-direction: column; /*This allows us to display the sidebar vertically*/
    justify-content: center; /*Horizontal centering*/
    align-items: center; /*Vertical centering*/
    cursor: pointer;
}

.sidebar-link:hover{
    background-color: rgb(235, 235, 235);
}

.sidebar-link img{
    height: 24px;
    margin-bottom: 4px;
}

.sidebar-link div{
    font-size: 10px;
}

.home-icons{
    height: 24px;
}

.explore-icons{
    height: 24px;
}

.subscriptions-icons{
    height: 24px;
}
