section.cards {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
}

section.cards .invisible {
    display: none;
}

div.cards-filter-container {
    display: flex;
    flex-wrap: wrap;
    /* position: sticky;
    padding-top: 1rem;
    top: 4rem;
    z-index: 200;
    background-color: white; */
}

div.cards-filter-container button{
    background-color: #cbe7e0;
    color: #1F160E;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    margin-right: 0.5rem;
    margin-left: 0;
    min-width: 4rem;
}

div.cards-filter-container button.active {
    background-color: #74745a;
    font-weight: bold;
    color: white;
}

div.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    font-family: inherit;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
  }

div.card {
    background-color: white;
    margin-bottom: 20px;
    border: 1px solid rgba(48, 57, 105, 0.15);
    border-radius: 2rem;
    padding: 1rem;
    overflow: scroll;
    font-family: inherit;
}

@media (hover: hover) {
    div.card:hover {
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
        position: relative;
        top: -2px;
    }
}

div.card-header, div.card-body, div.card-footer {
    width: 95%;
}

div.card h5.card-title {
    text-align: center;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: inherit;
    line-height: 1.25;
    width: 100%;
}

div.card img.card-image {
    width: 100%; /*image ratio 3:2*/ 
}

div.card-body {
    margin-top: 0.75rem;
}

div.card-body > p.card-text {
    line-height: 1.5em;
    min-height: 3rem;
    color: rgba(0, 0, 0, 0.8);
}

/* div.card p.card-text {
    line-height: 1.5;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    max-height: 7.5rem;
    overflow: scroll;
    text-overflow: ellipsis;
    text-align: left;
    font-family: inherit;
    color: rgb(44, 44, 44);
    overflow-y: scroll;
} */

div.card div.card-footer {
    margin-top: 0.25rem; 
    display: flex;
    justify-content: end;
    align-items: center;
}


/* div.card .card-keywords-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    justify-content: start;
    align-items: end;
}

.card-keywords-container span.card-keyword {
    padding: 0.75rem ;
    border-radius: 1rem;
    background-color: #479d7da8;
    color: #fff;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    min-width: 1.75rem;
    text-align: center;
} */

div.card-footer a.card-button {
    text-decoration: none;
    background-color: #919191;
    color: white;
    padding: 0.5rem;
    /*border: 1px solid rgba(0, 0, 0, 0.1);*/
    border-radius: 2rem;
    text-align: center;
    min-width: 6rem;
    margin-left: 5px;
}

div.card-footer a.card-button:hover {
    background-color: #6b6b6b;
    font-weight: bold;
    /*
    background: linear-gradient(300deg, #a5a5a5, #dde3e2, #f5f5f5);
    background-size: 180% 180%;
    animation: gradient-animation 18s ease infinite;
    */
}

@media (min-width:768px) {
    section.cards {
        width: 85vw;
    }

    div.cards-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-row: auto;
        align-items: start;
        gap: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
      }

    div.card {
        min-height: none;
        margin-bottom: 0px;
    }

    /* div.card p.card-text{
        min-height: 9rem;
    } */
}

@media (min-width:992px) {
    /* div.card p.card-text{
        min-height: 7.5rem;
    } */
}

@media (min-width:1200px) {
    section.cards {
        width: 80vw;
    }

    div.cards-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    /* div.card p.card-text{
        min-height: 9rem;
    } */
}

@media (min-width:1400px) {
    section.cards {
        width: 75vw;
    }

    /* div.card p.card-text{
        min-height: 7.5rem;
    } */
}

@keyframes cardFloatIn {
    0% {
      opacity: 0;
      transform: translateY(1rem);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}
  
div.card {
    opacity: 0;
    animation: cardFloatIn 1s forwards;
}

/* .card-body {
    display: none;
} */
