@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('./colors.css');

body {
    background-color: #202020;
    margin: 0px;
    height: max-content;
}

.content-wrapper {
    margin: 30px;
}


@media only screen and (min-width: 900px) {
    .page {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media only screen and (max-width: 900px) {
    .page {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (max-width: 650px) {
    .page {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media only screen and (max-width: 450px)  {
    .page {
        grid-template-columns: repeat(2, 1fr);
    }
}


.page {
    width: 100%;
    display: grid;
    place-items: center;
    column-count: 4;
    grid-gap: 20px;
    margin: auto;
    margin-bottom: 20px;
    padding: 0;
    max-width: 1200px;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: rgb(19, 19, 19);
    border-radius: 10px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    max-width: 200px;
    cursor: pointer;
    scale: 1;
    border: 3px solid rgb(38, 38, 38);
    transition: 0.3s ease; 
}

.card:hover {
    scale: 1.05;
    border: 2px solid white;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 100;
    transition: 0.3s ease;
}

.imageWrapper {
    width: 100%;
    height: 100%;
}

.image-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 75%, rgba(0,0,0,0.8) 90%, rgba(0, 0, 0, 1) 100%);
    background-size: cover;
}

.content {
    position: absolute;
    bottom: 0px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content p {
    font-family: "Roboto", sans-serif;
    margin: 0;
}

.date {
    color: #898989;
    font-weight: 450;
    font-size: 14px;
}

.title {
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
}

.title-scroll {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling {
    --text-width: 100px;
}

@keyframes marquee {
    0%   { transform: translateX(0px); }
    45% { transform: translateX(calc(-1 * var(--text-width))); }
    55% { transform: translateX(calc(-1 * var(--text-width))); }
    90% { transform: translateX(0px);}
}

.loadWrapper { 
    text-align: center;
    margin-top: 25%;
}

.loader {
    margin: auto;
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 


.channelImg {
    max-width: 50px;
    max-height: 25px;
    width: max-content;
    height: auto;
}

.main {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 200px;
    transition: 0.3s ease;
    transition-delay: 0s;
}

.card:hover .main {
    height: calc(100% - 50px);
    transition-delay: 0.7s;
}


.options {
    border-radius: 10px 10px 0px 0px;
    background-color: rgb(55, 55, 55);
    height: 0%;
    transition: height 0.3s ease;
    transition-delay: 0s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.card:hover .options {
    height: 100%;
    transition-delay: 0.7s;
}

.option-wrapper {
    position: absolute;
    top: 7.5px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.option {
    background-color: rgb(54, 54, 54);
    border: 2.5px solid rgb(158, 158, 158);
    border-radius: 50%;
    padding: 3px;
    transition: 0.3s ease;
}


.option:hover {
    background-color: white;
    color: black;
    font-weight: 600;
    border: 2.5px solid white;
}