.card-overlay-gradient { position: absolute; width: 100%; height: 100%; left: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1)); }