* { margin: 0; padding: 0%; } .card { width: 250px; height: 300px; display: inline-block; border-radius: 10px; padding: 15px 25px; box-sizing: border-box; cursor: pointer; margin: 10px 15px; top: 70px; background-size: cover; transition: transform 0.5s; } .card:hover { transform: translateY(-10px); box-shadow: 2px 2px 2px black; } .card card-text { border: 1px solid black; color: black; }