body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  background: rgb(10, 10, 10);
  height: 100vh;
}

.back {
  position: absolute;
  color: #fff;
  top: 10px;
  text-decoration: none;
  font-size: 25px;
  background: crimson;
  padding: 15px 15px;
  border-radius: 15px 20px;
  box-shadow: 2px 2px 8px #000;
}
.back:hover {
  transform: scale(0.9);
  transition: transform 1s;
}
.card-container {
  position: relative;
  width: 320px;
  padding: 40px;
  background: white;
  overflow: hidden;
}

.card-container:before {
  content: "";
  position: absolute;
  left: 0;

  bottom: calc(-100% + 5px);
  width: 100%;
  height: 100%;
  background: #39ff14;
  z-index: 1;
  transition: 1s;
}

.card-container:hover::before {
  bottom: 0;
}

.content {
  position: relative;
  color: #000;
  z-index: 2;
  transition: 1s;
}

h2 {
  font-size: 30px;
}

p {
  line-height: 25px;
  padding: 20px;
  margin: 20px 0;
}

a {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  background: rgb(22, 7, 35);
  padding: 0.6rem 1rem;
}

.card-container:hover .content {
  color: #fff;
}
