@import url('https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@0,200..900;1,200..900&display=swap');

/* RESET */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    font-size: 1rem;
    font-family: "Reddit Sans", sans-serif;
    position: relative;
    user-select: none;
}

a{
    text-decoration: none;
    color: none;
}

img{
    display: block;
}

header{
    width: auto;
    height: 4.7rem;
    display: grid;
    grid-template-columns: 5fr 5fr 5fr;
    padding: 1rem;
    position: fixed;
    background-color: white;
    flex-shrink: 100px;
}

.utube,.find,.others{
    display: flex;

}

.find{
    margin: 0 auto;
}

.youtube_logo{
height: 1.38rem;
margin-left:5.2rem;
margin-top: 0.3rem;
cursor: pointer;
margin-right:3rem;
}

.search_box{
    display: flex;
    height: 2.3rem;
    width: 35rem;
    border:1px solid rgba(128, 128, 128, 0.258);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    padding: 1rem;
    outline: none;
}

.search_box:focus{
    border: 1.5px solid rgb(2, 111, 220);
}

.search_logo{
    background-color: rgba(97, 94, 94, 0.123) ;
    height: 2.3rem;
    width: 4rem;
    border:1px solid rgba(128, 128, 128, 0.258);
    padding: 5px;
    border-left: none;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    cursor: pointer;
}

.voice-search-icon{
    margin-left: 1.5rem;
    background-color: rgba(97, 94, 94, 0.123) ;
    padding:8px;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

.others{
    display: flex;
    justify-self: end; 
    gap: 1rem;
}

.profile{
    margin-right: 1.4rem;
    width: 2rem;
    height:2rem;
    margin-top: 3px;
    border-radius: 1rem;
    cursor: pointer;
}

.logo{
    padding:8px;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
}

.notify{
    position: relative;
}

.noti{
    width: 1.3rem;
    height: 1rem;
    border-radius: 0.5rem;
    background-color: rgb(203, 0, 0);
    margin-top: -2.1rem;
    margin-left: 1.2rem;
    position: absolute;
    color: white;
    border: 1px solid white;
    text-align: center;
    display: flex;
    align-items: center;
    font-weight: 400;
   
}

.search_logo:hover,.voice-search-icon:hover,.logo:hover{
    background-color: rgba(97, 94, 94, 0.196) ;
}

.side{
 width: 5rem;
 position: fixed;
 margin-top: 0.7rem;
 display: grid;
 justify-content: center;
}

.side_bar{
    display: grid;
    justify-content: center;
    width: 4rem;
    padding: 1.2rem;
    border-radius: 1rem;
    cursor: pointer;
}

.side_bar_menu{
    display: flex;
    justify-content: center;
    width: 3rem;
    height:3rem;
    margin-bottom: 0.5rem;
    border-radius: 5rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

.side_logo{
    display: grid;
    width: 1.7rem;
    justify-content: center;
}

span{
    display: grid;
    font-size: 0.7rem;
    justify-content: center;
}

.menu,.home,.explore,.music,.library,.original,.subscribe{
    display: grid;
    justify-self: center;
}

.side_bar:hover,.side_bar_menu:hover{
    background-color: rgba(97, 94, 94, 0.196) ;
}

.main{
    display: flex;
    flex-wrap: wrap;
  padding-left: 5rem;
    padding-top: 5rem;
    padding-right: 1rem;
}

.channel1{
    display: grid;
    margin: auto;
    margin-bottom: 4rem;
    width: 25rem;
    white-space: wrap;
    margin-top: 0;
}

.channel-1{
    width: 25rem;
    min-width: 10rem;
    height: 15rem;
    object-fit: cover;
    border-radius: 1rem;
    padding: auto;

}


.ch-1-profile{
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 1.15rem;
    margin-top: 1.2rem;
}

.video-1{
    color: black;
    width:21rem;
    display: flex;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -2.45rem;
    flex-wrap: wrap;
}

.ch-name{
    font-size: 0.75rem;
font-weight: 400;
color: rgb(82, 81, 81);
 margin-top: 0.4rem;
}

.views{
    font-size: 0.75rem;
    font-weight:400;
    color: rgb(82, 81, 81);
}

.video-1,.ch-name,.views{
    margin-left: 3rem;
}

@media  (max-width:1100px)
{
    .search_box{
        width: 27rem;
    }

}

@media  (max-width:978px){

    .search_box{
        width: 22rem;
    }
    .others{
        justify-self: center;
        
    }
    

    .logo{
        height: 2.4rem;
    }

    .profile{
        height: 1.7rem;
        width:1.7rem;
        margin-top: 0.3rem;
    }

    .side_logo{
        width: 1.5rem;
    }

    .channel-1{
        width: 22rem;
        height: 12.5rem;
    }
    .video-1{
        width: 18rem;
    }

    .channel1{
        justify-content: center;
    }

}

@media  (max-width:894px){
    .search_box{
        width: 19rem;
    }

    .channel1{
        width: 20rem;
    }
}

@media  (max-width:836px){
.side{
    width: 4.7rem;
}

.youtube_logo{
    margin-left: 4.9rem;
}

.search_box{
    width: 16rem;
}

.channel1{
    justify-content: center;
    width: 18rem;
}

.channel-1{
    width: 20rem;
}

.video-1{
    width: 16.5rem;
}
}

@media  (max-width:788px){
    .side{
       display: flex;
       justify-self: center;
       width: 100%;
       position: fixed;
       bottom: 0;
       background-color: white;
       justify-content: space-around;
       text-align: center;
    }
    .side_bar_menu{
       display: none;
    }
    .youtube_logo{
        margin-left: 1.7rem;
        margin-right: 5rem;
    }
    header{
        justify-content: center;
    }
    .main{
       padding-left:1.5rem ;
    }
}

@media  (max-width:770px){
.search_box{
    display:none ;
}
header{
    width: 100%;
}

.youtube_logo{
    margin-right: 8rem;
}

.search_logo{
    border-radius: 50%;
    height: 2.4rem;
    width: 2.4rem;
    padding: 7px;
    background-color:rgba(97, 94, 94, 0);
    border: none;
    margin-left: 17.3rem;
}
.others{
    margin-left: 1.4rem;
}
.search_logo:hover{
    background-color: none;
}

.voice-search-icon{
    display: none;
}
}

@media  (max-width:720px){
    .youtube_logo{
        margin-right: 11rem;
        margin-left: 2.2rem;
    }

    .search_logo{
        margin-left: 12rem;
    }
}

@media  (max-width:688px){
    .channel-1{
        width: 18rem;
    }
    .search_logo{
        margin-left: 8rem
    }
    .youtube_logo{
        margin-left: 1.2rem;
    }
}

@media  (max-width:614px){
    .youtube_logo{
        margin-left: 3rem;
        margin-right: 10rem;
    }

    .search_logo{
        margin-left: 6rem;
    }

    .channel-1{
        width: 30rem;
        height: 18rem;
    }

    .video-1{
        width: 25rem;
        height: 2rem;
        margin-right: 0.5rem;
    }
}

@media  (max-width:588px){
    .search_logo{
        margin-left: 4.5rem;
    }

    .youtube_logo{
        margin-left: 2rem;
    }
}


@media  (max-width:588px){
    .search_logo{
        margin-left: 3.7rem;
    }
}


@media  (max-width:535px){
    .search_logo{
        margin-left:2.5rem ;
    }
    
}


@media  (max-width:488px){
.search_logo{
    margin-left: 1rem;
}

.channel-1{
    width: 25rem;
    height: 15rem;
}
.video-1{
    width: 20rem;
}
}


@media  (max-width:440px){
    .youtube_logo{
        margin-left: 2rem;
        height: 1.2rem;
        margin-right: 6rem;
    } 
}

@media  (max-width:375px) {
    .youtube_logo{
        margin-right: 3.2rem;
    }
    .search_logo{
        margin-right: 0.1rem;
    }
    .others{
        gap:1rem;
        margin-left:1rem;
    }
    .channel-1{
        width: 22rem;
        height: 12rem;
    }
    .channel1{
        height: 20rem;
        justify-content: center;
        margin: 0 auto;
        padding-right: 0.5rem;
    }

    .video-1{
        width: 18rem;
    }

    .side_bar{
        width: 3rem;
    }
}

@media (max-width:320px){
    .youtube_logo{
        margin-right: 1rem;
        height: 1rem;
    }

    .channel-1{
        width: 19rem;
        height: 9rem;
        
    }
    .channel1{
        height: 15rem;
        margin-bottom: 2.5rem;
    }

    .video-1{
        width: 15rem;
    }
    .search_logo{
        margin-left: 4rem;
        margin-right: -1rem;
    }
    .logo,.search_logo{
        height: 2.2rem;
    }
    .others{
        margin-right: 1.9rem;
        gap: 0;
    }
    .profile{
        width: 1.5rem;
        height: 1.5rem;
        margin-left: 1rem;
    }
}





