*, *::after, *::before {
  box-sizing: border-box;
}

@keyframes slideDown {
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: auto;
    padding: 50px;
    z-index: 200;
}

.cards .card {
    width: calc(33% - 13px); 
    height: 400px;
    background-color: #222;
    color: #eb6deb;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    border: 3px solid #e220a8;
    box-shadow: 0 0 9px #4a054c;
}

.cards .card h2 {
    margin: 0;
}

.card-content {
    padding: 100px 25px 25px;
    overflow: auto;
    height: 100%;
    color: #fff;
}

.card-content > * {
    transform: translateY(-35px);
    opacity: 0;
}

.card-content h2 {
    font-size: 32px;
    margin-bottom: 35px !important;
    animation: slideDown 0.5s ease-out forwards;
}

.card-content img {
    width: 100%;
    background-color: #fff;
    margin-bottom: 10px;
    animation: slideDown 0.5s ease-out 0.2s forwards;
}

.card-content p {
    color: #999;
    animation: slideDown 0.5s ease-out 0.4s forwards;
}

@media (max-width: 1024px) {
    .cards .card {
        width: calc(50% - 13px); 
    }
}