p {
    font-family: Roboto,Arial;
    margin-top: 0;
    margin-bottom: 0;
}
body {
    margin:0;
    padding-top:80px;
    padding-left:96px;
    padding-right:24px;
    background-color:white;
}

a{
    text-decoration:none;
    color:black
}
a:hover .tooltip{
    opacity:1;
}


/* Video Section Seperator*/

.searchbox {
    display:block;
}
.thumbnail {
    width: 100%;
    border-radius:3%;
}
.thumbnail-row{
    margin-bottom:12px;
    position:relative;
}
.video-title {
    margin-top:0;
    font-size: 14px; 
    font-weight: 500 ;
    line-height: 20px;
    margin-bottom: 10px;
}
.video-author, .video-stats {
    font-size:12px;
    color:rgb(96,96,96);      
}
.video-author{
    margin-bottom:4px;    
}

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

}
.profile-picture{
    width:36px;
    border-radius:50px;
}
.video-grid {
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    min-width: 2%;
    column-gap: 16px;
    row-gap:40px;
    padding-bottom:40px;
    border-style:solid;
    border-color:transparent;
    border-bottom-color:rgb(217,217,217);
    border-width:4px;
}
.video-time {
    background-color:black;
    color:white;
    position:absolute;
    bottom:10px;
    right:5px;
    font-family:Roboto,Arial;
    font-size:12px;
    font-weight:500;
    padding-left:4px;
    padding-right: 4px;
    padding-top:4px;
    padding-bottom:4px;
    border-radius:2px;
}
.button-sec {
    display:flex;
    grid-template-columns:1fr;
}
/*Seperator For the shorts section*/
.shorts {
    border-style: solid;
    border-color:transparent;
    border-bottom-color:rgb(217,217,217);
    border-width:4px;
}

.shorts-grid {
    display:flex;
    grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;
    column-gap: 16px;
    margin-top:20px;
}
.shorts-thumbnail {
    width: 100%;
    border-radius:3%;
}
.shorts-icon {
    height:24px;
    padding-top:5px;
    padding-bottom: 5px;
}
.top-section {
    display:flex;
    grid-template-columns:1fr 1fr;
    justify-content: space-between;
    align-items: center;
    padding-top:20px;
    padding-bottom: 10px;

}
.short-icon {
    display:flex;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.shorts-text {
    font-weight: 400;
    font-size: 20px;
    padding-left:5px;
}
.X-button {
    background-color: transparent;
    border-style: none;
    border-radius:50%;
    padding-top:5px;
    padding-bottom: 5px;
}
.X-icon {
    height:25px;
}
.X-button:hover{
    background-color:rgb(217, 217, 217);
}

.down-button {
    background-color: transparent;
    border-style: none;
    width: 100%;
    margin-bottom:2px;
    height:38px;
    margin-top:35px;
}
.down-button:hover {
    background-color:rgb(217, 217, 217);
}

.shorts-title {
    font-weight:500;
    font-size:13px;
}
/*Seperator for the header section (the navigation bar */

.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:white;
z-index:100;
}
.left-section{
    display:flex;
    align-items: center;
    justify-content: center;
}
.hamburger-menu {
    height:24px;
    margin-left:14px;
    margin-right:14px;
    padding-left:10px;
    padding-right:10px;
    padding-top:10px;
    padding-bottom:10px;
    border-radius:40px;
}
.hamburger-menu:hover, .voice-search-button:hover {
    background-color:rgb(229, 229, 229) ;
}
.hamburger-menu:active, .voice-search-button:active{
    background-color:rgb(206, 206, 206);
}

.youtube-logo {
    height:125px;
}

.middle-section{
    flex:1;
    margin-left:70px; 
    margin-right:35px;
    max-width:500px;
    display:flex;
    align-items:center;
}
.searchbox {
    flex:1;
    height:36px;
    font-size:16px;
    border-width:1px;
    border-style:solid;
    border-color:rgb(192,192,192);
    border-radius:2px;
    box-shadow:inset 1px 2px 3px rgba(0, 0, 0, 0.05);
    width:0px;
    border-top-left-radius:20px;
    border-bottom-left-radius:20px;
    padding-left:20px;
}
.searchbar::placeholder {
    font-family:Roboto,Arial;
    font-size:16px;
}


.search-button {
    height:40px;
    width:66px;
    display:flex;
    align-items: center;
    background-color:rgb(248, 248, 248);
    border-width: 1px;border-style: solid;
    border-color:rgb(192,192,192);
    margin-left:-1px;
    margin-right:10px;
    border-top-right-radius:20px;
    border-bottom-right-radius:20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

}
.search-button:hover, .upload:hover, .notifications:hover {
    background-color:rgb(240, 240, 240);
}
.search-button:active {
    background-color:rgb(233, 233, 233);
}

.search-icon {
    height:25px;
}
.voice-search-button {
    height:40px;
    width:40px;
    border-radius:20px;
    border:none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}
.youtube-apps .tooltip,
.upload .tooltip,.notifications .tooltip,
.search-button .tooltip,
.voice-search-button .tooltip {
    position:absolute;
    background-color: gray;
    color:white;
    padding-left:10px;
    padding-right:10px;
    padding-top:9px;
    padding-bottom:9px;
    border-radius:3px;
    bottom:-50px;
    font-size:12px;
    opacity:0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 500;
    font-family: Roboto,Arial;
}
.tooltip,.upload:hover .tooltip,
.notifications:hover .tooltip,
.search-button:hover .tooltip,
.voice-search-button:hover .tooltip{
    opacity:1;
}
.upload:hover,
.notifications:hover,.search-button:hover,
.voice-search-button:hover, 
.current-user-picture:hover, .youtube-logo:hover, 
.hamburger-menu:hover, .sidebar-link:hover{
    cursor:pointer;
}
.upload {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.voice-search-icon {
    height:24px;
}
.right-section{
    width:130px;
    margin-right:25px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-shrink: 0;
}

.upload-icon {
    height:24px;
}
.upload{
    padding-top:7px;
    padding-bottom: 7px;
    padding-left:7px;
    padding-right:7px;
    border-radius: 50%;
}
.notifications{
    padding-top:7px;
    padding-bottom: 7px;
    padding-left:7px;
    padding-right:7px;
    border-radius: 50%;
    margin-right:4px;
}


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

.notifications-icon {
    height:24px;
}
.notifications {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notification-count {
    position: absolute;
    top:-2px;
    right:-5px;
    background-color:rgb(35, 32, 232);
    color:white;
    font-family: Roboto,Arial;
    font-size:12px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right:6px;
    padding-left:6px;
    border-radius:10px;
    box-shadow:rgb(255, 255, 255) 0px 0px 0px 1px;
}

.current-user-picture {
    height:32px;
    border-radius:16px;
}

/*Seperayot for the sidebar*/

.sidebar{
    position: fixed;
    left:0;
    bottom:0;
    top:55px;
    background-color:white;
    width:72px;
    z-index:200;
    padding-top:5px;
}
.sidebar-link {
    height: 76px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
}
.sidebar-link img {
    height:25px;
    margin-bottom:4px;
}
.sidebar-link div {
    font-family: Roboto,Arial;
    font-size:10px;
}
.sidebar-link:hover{
    background-color:rgb(238, 238, 238);
    cursor:pointer;
    
}
/* Post section divider */
.latest-posts {
    border-style:solid;
    border-color:white;
    border-bottom-color:rgb(217, 217, 217);
}

.posts-grid {
    display: flex;
    grid-template-columns:1fr 1fr 1fr;
    column-gap: 16px;
    margin-top:20px;
}

.post-preview {
    border-style:solid;
    border-color:rgb(217,217,217);
    border-radius:10px;
    border-width:1px;
    margin-bottom:20px;
}

.post-content {
    display: flex;
    grid-template-columns:2fr 1fr;
    column-gap: 16px;
    margin-top:5px;
    margin-bottom: 5px;
    margin-left: 5px;
    margin-right: 5px;
}

.post-img {
    width: 100%;
    border-radius:20px;
}
.channel-date {
    margin-top:5px;
    font-size:13px;
    color:gray;
    padding-left:10px;

}
.bot-post {
    padding:20px;
}
.post-but-grid{
    display: flex;
    grid-template-columns:1fr 1fr 1fr 1fr;
    justify-content: space-between;  
}
.post-buttons {
    background-color:white;
    border:none;
    border-radius:50%;
    height:35px;
    width:35px;
}
.post-buttons:hover {
    background-color:rgb(217, 217, 217);
    cursor:pointer;
}

.post-text {
    padding-top:7px;
    font-size:15px;
}
.post-text:hover, 
.channel-date:hover, 
.post-but-grid:hover,
.post-img:hover {
    cursor:pointer;
}

.shorts-header {
    display: flex;
}

.shorts-channel {
    width:30px;
    border-radius:50%;
}

.post-preview{
    padding-left:20px;
    padding-top:15px;
    padding-right:15px;
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 16px; /* Space between items */
    padding-bottom: 40px;
    border-bottom: 4px solid rgb(217, 217, 217);
}

.video {
    border: 1px solid #ddd; /* Optional: border around each video */
    border-radius: 8px; /* Optional: rounded corners */
    overflow: hidden; /* Ensure rounded corners work */
    cursor: pointer; /* Show pointer cursor on hover */
}

.thumbnail-container {
    width: 100%;
    position: relative;
}

.imgs {
    width: 100%;
    height: auto;
}

.details-container {
    padding: 8px;
}

.channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 8px;
}

.text-container {
    margin-left: 50px; /* Adjust to fit your design */
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.channel-title {
    font-size: 14px;
    color: gray;
}

.info-container {
    font-size: 12px;
    color: gray;
    margin-top: 4px;
}
