@import url("https://fonts.googleapis.com/css2?family=Oswald&display=swap");

* {
  box-sizing: border-box;
}

body {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: Oswald, sans-serif;
}

h3 {
  margin-bottom: 0;
}

small {
  margin-bottom: 20px;
}

.card {
  position: relative;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  img {
    display: block;
  }
}

.fa-heart {
  color: red;
  .card & {
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
    animation: grow 0.6s linear;
    pointer-events: none;
  }
}

@keyframes grow {
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}
