@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap");
html {
  font-family: "Kalam", "Open Sans", sans-serif;
  background-color: #000;
  color: #fff;
  font-size: 16px;
}
#card-hover {
  display: flex;
  flex-direction: row;
}
@media (max-width: 960px) {
  #card-hover {
    flex-direction: column;
  }
}
.card {
  position: relative;
  margin: 50px 20px;
  padding: 10px;
  min-height: 300px;
  transition: all 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10%);
}
.card span {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: all 0.5s;
}
.card:hover span {
  background-color: rgba(255, 255, 255, 0.2);
}
.card:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #81ecec, #e17055);
  top: 0;
  left: 0;
  z-index: 0;
  flex: 1;
}
.card:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #81ecec, #e17055);
  top: 0;
  left: 0;
  z-index: -1;
  filter: blur(30px);
}
.card:nth-child(2):before {
  background: linear-gradient(315deg, #74b9ff, #d63031);
}
.card:nth-child(2):after {
  background: linear-gradient(315deg, #74b9ff, #d63031);
}
.card:nth-child(3):before {
  background: linear-gradient(315deg, #a29bfe, #e84393);
}
.card:nth-child(3):after {
  background: linear-gradient(315deg, #a29bfe, #e84393);
}
.inner {
  position: relative;
  z-index: 2;
  padding: 5%;
}
.title {
  font-weight: 900;
  font-size: 2em;
}
.content {
  font-size: 1.2em;
}
.button {
  border: 1px solid #fff;
  background-color: #fff;
  color: #000;
  display: inline-block;
  padding: 5px 10px;
  margin: 10px 0;
  font-weight: 400;
}
