*{
    margin:0;
    padding:0;
    border: 0;
}
body{
    background-color: black;
    font-family: 'Roboto', sans-serif;
}

.navbar{
    background-color: rgb(0, 0, 0);
    height: 56px;
    color:white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.box1{
    margin-left: 10px;
    padding: 8px;
}
.menu{
    font-size: 1.5rem;
}

.box2{
    height: 55px;
    width: 125px;
    display: flex;
    justify-content:center ;
    align-items: center;
}

.logo{
    height: 40px;
    width: 40px;
    background-image:url(youtube_logo.png) ;
    background-size: cover;
}
.text{
    font-weight: 600;
}
.sup{
    color: hsl(0, 1%, 70%);
}
.boxt{
    height: 40px;
    width: 600px;
    align-items: center;
    display: flex;
    margin-left: 160px;
}
.search{
    width:500px;
    height: 40px;
    background-color: #00000000;
    font-size: 1rem;
    border-top-left-radius: 40px;
    border-bottom-left-radius:40px ;
    padding-left: 20px;
    color:white;
    border:2px solid hsl(0, 0%, 18.82%);
    margin-left: 40px;
}
.search-button{
    width: 70px;
    height: 44px;
    color:rgb(255, 255, 255);
    background-color:hsl(0, 0%, 18.82%);
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    flex-shrink: 0; 
}
.search-button-i{
    font-size: 50px;
}
input:focus{
    border-color: #065fd4;
    outline: none;
}
.voi{
    height: 40px;
    width: 40px;
    background-color: hsl(0, 0%, 18.82%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    margin-left: 50px;
}
.make{
    height: 36px;
    width: 98px;
    background-color: hsl(0, 0%, 18.82%);
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    border-radius: 18px;
    margin-left: 110px;
}
.plus{
    margin-right: 4px;
}
.bell{
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color:#00000000;
    font-size: 24px;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    margin-left: 17px;
}
.pfp{
    height: 32px;
    width: 32px;
    border-radius:50%;
    background-image: url("pfp.jpg");
    background-size: cover;
    margin-left: 40px;
    margin-right: 10px;
}
.voi:hover{
    background-color: hsl(0, 2%, 11%);
}
.make:hover{
    background-color: hsl(0, 2%, 11%);
}
.bell:hover{
    background-color: hsl(0, 2%, 11%);
}
.side-panel{
    height: 45.5rem;
    width: 4rem;
    color: white;
}
.home {
    height: 4rem;
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: none;
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.home-i {
    margin-bottom: 0.2rem;
    padding: 0;
}
.home-text {
    font-size: 0.625rem;
    text-align: center;
}
.live {
    height: 4rem;
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: none;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.live-i {
    margin-bottom: 0.2rem;
    padding: 0;
}
.live-text {
    font-size: 0.2rem;
    text-align: center;
}
.subs {
    height: 4rem;
    width: 4rem;
    display: inline-block;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: none;
    font-size: 1rem;
    margin-bottom: 15px;
}
.subs-i {
    margin-bottom: 0.1rem;
    padding: 0;
}
.sub-text {
    font-size:8px;
    text-align: center;
}
.profile {
    height: 4rem;
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: none;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.profile-i {
    margin-bottom: 0.2rem;
    padding: 0;
}
.profile-text {
    font-size: 15px;
    text-align: center;
}
.down {
    height: 4rem;
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: none;
    font-size: 1.5rem;
}
.down-i {
    margin-bottom: 0.2rem;
    padding: 0;
}
.down-text {
    font-size: 12px;
    text-align: center;
}
.tag-panel {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: black;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    overflow-x: auto;
    scrollbar-width: none;
}
.tag-panel::-webkit-scrollbar {
    display: none;
}
.tag {
    background-color: #222;
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.tag:hover {
    background-color: #333;
}
.tag.active {
    background-color: white;
    color: black;
    font-weight: 600;
}

/* FIX for 12 videos */
.vid-bar{
    display: flex;
}

.video-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    margin: 20px;
    width: 100%;
}
.video-card {
    display: flex;
    flex-direction: column; 
}


.video-tile,
.video-tile2,
.video-tile3,
.video-tile4,
.video-tile5,
.video-tile6,
.video-tile7,
.video-tile8,
.video-tile9,
.video-tile10,
.video-tile11,
.video-tile12,
.video-tile13,
.video-tile14 {
    background-color: orange;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    height: 220px;
    width: 100%;
    position: relative;
}

.duration {
    display: inline-block;      /* allows auto width based on text */
    padding: 2px 6px;           /* horizontal padding for better look */
    font-size: 12px;
    background-color: #00000099;
    color: white;
    border-radius: 4px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    white-space: nowrap;        /* keeps text in one line */
}


.details{
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    height: auto;
    position: static; /* FIX overlap issue */
}

.pfp-logo,
.pfp-logo2,
.pfp-logo3,
.pfp-logo4,
.pfp-logo5,
.pfp-logo6,
.pfp-logo7,
.pfp-logo8,
.pfp-logo9,
.pfp-logo10,
.pfp-logo11,
.pfp-logo12,
.pfp-logo13,
.pfp-logo14{
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background-color: red;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.video-info{
    flex: 1;
}
.title{
    color: white;
    font-size: 18px;
    margin-left: 15px;
}
.name{
    color: #AAAAAAAA;
    font-size: 14px;
    padding-left:15px;
}
.dots{
    height: 36px;
    width: 36px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}
.video-tile{
    background-image: url("1st-video.jpg");
}
.video-tile2{
    background-image: url("vid2.jpg");

}
.video-tile3{
    background-image: url("vid3.jpg");

}
.video-tile4{
    background-image: url("vid4.jpg");

}
.video-tile5{
    background-image: url("vid5.jpg");

}
.video-tile6{
    background-image: url("vid6.jpg");

}
.video-tile7{
    background-image: url("vid7.jpg");

}
.video-tile8{
    background-image: url("vid8.jpg");

}
.video-tile9{
    background-image: url("vid9.jpg");

}
.video-tile10{
    background-image: url("vid2.jpg");

}
.video-tile11{
    background-image: url("vid2.jpg");

}
.video-tile12{
    background-image: url("vid2.jpg");

}
.video-tile13{
    background-image: url("vid2.jpg");

}
.video-tile14{
    background-image: url("vid2.jpg");

}
.pfp-logo{
    background-image: url("vid1-logo.jpeg");
}
.pfp-logo2{
    background-image: url("vid2-logo.jpg");
}
.pfp-logo3{
    background-image: url("vid3-logo.jpg");
}
.pfp-logo4{
    background-image: url("vid4-logo.webp");
}
.pfp-logo5{
    background-image: url("vid5-logo.webp");
}
.pfp-logo6{
    background-image: url("vid6-logo.jpg");
}
.pfp-logo7{
    background-image: url("vid7-logo.webp");
}
.pfp-logo8{
    background-image: url("vid8-logo.jpg");
}
.pfp-logo9{
    background-image: url("vid9-logo.webp");
}