﻿

.CardsList {
    display: grid;
    max-width: 100%;
    padding: 20px 0px 10px 20px;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    scroll-behavior: smooth;
}

.FlexCardList {
    display: flex;
    overflow-y: hidden;
    overflow-x: auto;
    margin: 0 55px;
}

    .CardsList::-webkit-scrollbar {
        display: none;
    }

.card {
    /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);*/
    transition: 0.3s;
    position: relative;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    margin-right: 20px;
    text-align: center;
    height: auto;
    min-height: 200px;
    max-height: 350px;
    background-color: var(--ThirdColor);
    color: var(--SecondaryColor);
    padding: 5px;
}
/* hover shadow add aditional to the padding 5px in the .card */
    .card:hover:not(.LogoHover) {
        box-shadow: 0 0 9px 6px rgba(0, 100, 100, 0.5);
    }

    .LogoHover:hover img {
        transition: 0.5s ease-in-out;
        transform: scale(1.15);
    }

    .LogoHover:hover h4 {
        transition: 0.5s ease-in-out;
        color: var(--PrimaryColor);
    }
/* Add rounded corners to the top left and the top right corner of the image */
.card > img {
    width: 30vw;
    height: 80%;
    max-width: 250px;
    min-width: 170px;
    max-height: 300px;
    margin: 0 -12%;
    object-fit: contain;
}

    .card > .Header {
        font-weight: bold;
        color: var(--SecondaryColor);
    }

.card > .Paragraph {
    color: var(--SecondaryColor);
    text-align: justify;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card > .Error {
    padding-top: 50%;
    padding-left: 10px;
    padding-right: 10px;
    color: red;
    text-align: center;
}

.card > iframe {
    width: -webkit-fill-available;
    height: auto;
    padding: 0 5px;
}

.Link {
    float: var(--LinkFloat);
    color: var(--PrimaryColor);
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.Footer {
    float: var(--FooterFloat);
    color: var(--SecondaryColor);
    position: absolute;
    bottom: -5px;
    right: 10px;
}

.TitleCard {
    display: block;
    padding: 10px 25px;
    border-left: 15px solid var(--PrimaryColor);
    background-color: var(--TitleCardBackgroundColor);
    margin: 20px;
    max-width: 100%;
    width: auto;
    font-size: 25px;
    color: var(--TitleCardColor);
    height: 30px;
}

.ScrollRightBtn {
    color: var(--TitleCardColor);
    height: -webkit-fill-available;
    width: auto;
    padding: 10px 10px;
    padding-top: 150px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 30px;
    top: 10px;
    right: 20px;
    float: right;
    position: absolute;
    background-color: var(--TitleCardBackgroundColor);
}

.ScrollLeftBtn {
    color: var(--TitleCardColor);
    height: -webkit-fill-available;
    width: auto;
    padding: 10px 10px;
    padding-top: 150px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 30px;
    top: 10px;
    z-index: 1000;
    float: left;
    left: 20px;
    position: absolute;
    background-color: var(--TitleCardBackgroundColor);
}

@media screen and (max-width : 405px) {
    .FlexCardList {
        margin: 0 20px;
    }

    .ScrollLeftBtn {
        left: 0;
        background-color: transparent;
    }

    .ScrollRightBtn {
        right: 0;
        background-color: transparent;
    }

    .card {
        min-width: 230px;
        justify-self: center;
    }

    .CardsList {
        padding: 20px 0px 10px 10px;
    }

    .TitleCard {
        margin: 20px 0;
    }
}