.card {
  width: 300px;
  height: 250px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  margin: 20px;
  text-decoration: none;
  color: black;
  float: left;
  position: relative;
  overflow: hidden;
}

.card h3 {
  display: block !important;
  position: absolute;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  margin: 0;
  background-color: white;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

#cardHolder {
  width: 100%;
}

.cardOverlay {
  height: 45px;
  width: 100%;
  display: block;
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  overflow: hidden;
  transition: 0.5s;
  text-align: center;
}

.cardOverlay > svg {
  height: 150px;
  width: auto;
  margin-top: 25px;
}

.card > svg {
  width: 300px;
  height: 300px;
}

/* Add :hover to .card after svg adjustments are made */
.card:hover .cardOverlay {
  height: 100%;
}

.cardContainer {
  width: 60%;
  margin: 10px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cardHome .cardContainer {
  width: 100%;
}

@media screen and (width <=1600px) {
  .cardContainer {
    width: 80%;
  }
}

@media screen and (width <=1210px) {
  .cardContainer {
    width: 100%;
  }
}
