.cards { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; } .card { display: flex; } .card-inner { border-radius: 0.5em; padding: 2em; margin-bottom: 2em; box-shadow: 0 0.25em 0.4em rgb(0 0 0 / 50%); transition: transform .4s ease; } .card-inner:hover { transform: scale(1.04); box-shadow: 0 0.45em 0.7em rgb(0 0 0 / 50%); } .card .img-circle { width: 8em; } .card-footer { align-self: flex-end; margin-top: 28px; }