@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
body{
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 0;
    font-family: 'Inter', sans-serif;
}

.header{
    background-color: #AB47BC;
    padding-top: 5px ;
    margin: 0 0;
}
.sub-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
}
.sub-header h4{
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight:lighter;
}
.sub-header img{
    height: 50px;
    margin-bottom: 10px;
    margin-left: 10px;
}
.header-img-cont{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}
.header-img-cont button{
    margin-left: 5px;
    margin-right: 5px;
    border: none;
    background-color: #fff;
    color: #AB47BC;
    border-radius: 5px;
    padding: 10px 10px;
}
.haha{
    margin-bottom: 0!important;
    margin-left: 3px!important;
}
.header-img-cont button a{
    text-decoration: none;
}
.nav-tab-container{
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: #fff;
}
.nav-btn{
    width: 50%;
    display: flex;
    justify-content: center;
    border: none;
    outline: none;
    background-color: #fff;
    padding: 10px 0;
    text-decoration: none;
    color:#CE93D8;
    border-radius: 5px;
}
.active{
    background-color: #CE93D8;
    color: #fff;
    border: 1px solid #fff;
}

.search{
    display: flex;
    justify-content: center;
    padding: 20px 0 ;
}
.search input{
    margin-top: 20px;
    width: 50%;
    border-radius: 20px;
    border: none;
    outline: none;
    padding: 10px 20px;
}
.main{
    background-color: #CE93D8;
    height: auto;
    min-height: 85vh;
}
.cards-container{
    display: none;
    grid-template-columns: auto auto auto auto;
    justify-content: center;
    margin: auto auto;
    padding: 10px 0 ;
}
.card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    width: 90%;
    max-width: 450px;
    background-color: #fff;
    margin: 20px auto;
    border-radius: 10px ;
}
.card-img-top{
    width: 100%;
    border-radius: 10px 10px 0 0;
    height: 240px;
    object-fit:inherit;
    transition-duration: 0.5s;
}
.card-img-top:hover{
    transform:scaleX(1.05)  scaleY(1.05);
    transition-duration: 0.5s;
}
.card-viewers{
    background-color: #fff;
    position:relative;
    z-index: 1000;
    left: 20px;
    bottom: 20px;
    width: 100px;
    border-radius: 20px;
    margin: 0 10px;
    font-family: 'Inter', sans-serif;
}
.card-viewers h6{
    text-align: center;
    padding: 20px 0;
    font-weight: 400;
    font-size: smaller;
    margin: 0;
}
.card-title{
    position: relative;
    bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px;
    font-family: 'Inter', sans-serif;
}
.time{
    margin: 0 10px;
    font-family: 'Inter', sans-serif;
}
.card-dis{
    margin: 0 10px;
    font-family: 'Inter', sans-serif;
    transform: translateY(-20px);
}
.watch{
    border: none;
    background-color: #AB47BC;
    border-radius: 20px;
    padding: 10px 10px;
    height: 35px;
    font-family: 'Inter', sans-serif;
}
.watch:hover{
    background-color: #fff;
    border: 1px solid #AB47BC;
}
.watch:hover .watch-hover{
    color: #AB47BC;
}
.watch-hover{
    color: #AB47BC;
}
.watch a{
    text-align: center;
    text-decoration: none;
    color: #fff;
    margin: 0;
    font-weight: 400;
    font-size: smaller;
}
.card-dis h4{
    font-weight: 570;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
            line-clamp: 2; 
    -webkit-box-orient: vertical;
}
.time h4{
    font-weight: 570;
    margin: 0;
}
.time h6{
    font-weight: 400;
    font-size: smaller;
    margin: 0;
}

.viewer-loader{
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.viewer-loader--hidden{
    opacity: 0;
    display: none;
}
.viewer-loader::after{
    content: "";
    width: 75px;
    height: 75px;
    border: 10px solid #ffffff;
    border-top-color: #AB47BC ;
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}
@keyframes loading {
    from{ transform: rotate(0turn)}
    to{ transform: rotate(1turn)}
}

.footer{
    background-color: #AB47BC;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}
.footer p{
    margin: 0;
}

@media only screen and (max-width: 1024px){
    .cards-container{
        grid-template-columns: auto auto auto;
    }
}
@media only screen and (max-width: 768px){
    .cards-container{
        grid-template-columns: auto auto;
    }
}
@media only screen and (max-width: 480px){
    .cards-container{
        grid-template-columns: auto;
    }
}