body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding-top: 70px;
    padding-left: 97px;
    padding-right: 24px;
    background-color: rgb(247, 237, 237);
}



/* Grid Layout for Videos */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));/* 3 columns */
    gap: 10; /* Space between videos */

}
@media (max-width:750px){
    .grid{
        grid-template-columns: 1fr 1fr; 
    }
}
@media (max-width:600px){
    .grid{
        grid-template-columns: 1fr;
    }
     
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    
}

.video-card {
    padding: 8px;
    border-radius: 8px;
    overflow: hidden;
    gap: 10;
    
    
}

.video-card img {
    width: 100%;
    border-radius: 8px;
}

.video-card h3 {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}




.row{
    position: relative;
}


.row img,.thum1 {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
}

.info {
    margin-left: 10px;
    cursor: pointer;
}

p {
    margin: 0;
    line-height: 1.4;
}

.title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

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

.name {
    margin-bottom: 4px;
}
.header{
    height: 55px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 100;
    cursor: pointer;
    border-bottom-width: 1px;
    border-bottom-style: solid ;
    border-bottom-color:  rgb(223, 223, 223);
    background-color: white;

}
.left{
    margin-right: 70px;
    align-items: center;
    display: flex;
}

.mid{
    flex: 1;
    margin-right: 70px;
    margin-right: 35px;
    max-width: 500px;
    display: flex;
    align-items: center;
}
.right{
    width: 180px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    flex: shrink 0;;
    justify-content: space-between;
    gap: 15px;
    margin-right: 45px;
   
}
.hamburger-menu{
    height: 24px;
    margin-left: 24px;
    margin-right: 24px;

}
.youtube-logo{
    height: 20px;
}

.search{
    cursor: hand;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#loader {
    position: fixed; 
    top: 50%;
    left: 50%;
    
    display: none; 
    width: 50px;
    height: 50px;
    
    border-radius: 50%;
    
}

.search-but{
    height: 37px; 
    width: 66px;
    background-color: rgb(238, 238, 238);
    border: 1px solid;
    border-color: rgb(232, 232, 232);
    margin-left: -1px;
    margin-right: 10px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;

    position: relative;

}

.videotimex{
    display: flex;
    background-color: lightgrey;
    width: 45px;
    text-align: center;
    color: black;
    text-decoration: none;
    justify-content: flex-center;
    padding: 2px;
    margin-top: 5px;
    border-radius: 5px;
    padding-left: 3px;
}
.videotimex a  {
    text-decoration: none;
  }


.search-but .tooltips{
    position: absolute;
    background-color: grey;
    color: white;
    padding-top:4px ;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: -30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}
.search-but:hover .tooltips{
    opacity: 100%;
}
.voice-search{
    height: 40px;
    width: 40px;
    border-radius:  100%;;
    border: none;
    background-color: rgb(241, 241, 241);

}
.search{
    width: 0;
    flex: 1;
    height: 37px;
    padding-left: 10px;
    font-size: 16px;
    border: 1px solid rgb(196, 196, 196);



}
.search-but,.voice-search{
    position: relative;
}
.search::placeholder{
    font-family: Roboto;
    font-size: 15px;

}
.serachicon{
    height: 25px;
    margin-top: 4px;

}
.icon{
    height: 24px;
    margin-top: 4px;
}

#dark-mode-toggle{
    border: none;
    background-color: transparent;
}

.upload{
    height: 24px;
    margin-left: 10px;
}
.app{
    height: 24px;


}


.notifications{
    height: 24px;


}
.note{
    position: relative;
}
.count {
    position: absolute;
    top: -5px; /* Moves it up */
    right: -5px; /* Moves it to the right */
    background-color: red;
    color: white;
    font-family: Roboto, sans-serif;
    font-size: 10px; /* Small but visible font size */
    padding: 2px 6px; /* Balanced padding */
    border-radius: 50%; /* Perfectly circular badge */
    text-align: center; /* Centers the number inside the badge */
}


.box{
    border: none;
   height: 76px;
   margin-bottom: 1px; 
   cursor: pointer;
   display: flex;
   justify-self: center;
   align-items: center;
   flex-direction: column;
   padding-top: 10px;
   background-color: transparent;
   
}
.box:hover{
    
    background-color: lightgrey;
    width: 100%;
    
    
}

.user{
    height: 35px;
    width: 35px;
    border-radius: 100%;
    cursor: pointer;


}

.categories-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap;
    padding: 10px 0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-left: 9px;
    
}

.categories {
    display: flex;
    gap: 10px;
    
}

.category {
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    background-color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -ms-transition: background 0.3s;
    -o-transition: background 0.3s;
}

.category.active {
    background-color: black;
    color: white;
}

.hidden
{
    display: none;
}

.minimize{
    margin-left: 160px;
}

.sidebar{
 
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: transparent;
  width: 74px;
  top: 55px;
  padding-top: 15px;
  z-index: 200;
  transition: width 0.02s ease-in-out;
  overflow: hidden;

}

.sidebar.expanded {
    position: fixed;
  left: 0;
  bottom: 0;
  background-color: transparent;
  width: 240px;
  top: 55px;
  padding-top: 15px;
  z-index: 200;
  transition: width 0.3s ease-in-out;
    overflow: hidden;
}


.box img{
    height: 30px;
    align-items: center;
    
    
}
.box div{
    font-family: Roboto;
    font-size: 10px;
    margin-top: 5px;
    

}