:root {
  --pageBlack: #262626;
  --pageYellow: #fadf72;
  --pagePurple: #552b55;
  --pageRed: #E1332d;
  --pageGreen: #87af9f;
  --grey: #879c9b;
  --lightGreen: #12ac86;
  --pageGrey: #90a0a6;
  --lightBlue: #d9ebf7;
}
body {
  margin:0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  /* overflow: hidden; */
  background-color: var(--lightBlue);
}
.card {
  position: relative;
  width: 320px;
  padding: 40px;
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.card:before{
  content: '';
  position: absolute;
  bottom: calc(-100% + 5px);
  left:0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: #ff56ac;
  z-index: 1;
  transition: all .5s;

  }

.card:hover:before {
  bottom: 0;
}
.content {
  position: relative;
  text-transform: capitalize;
  color: var(--pageBlack);
  z-index: 2;
  transition: all .3s;
}

h2 {
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 30px;
}

p {
 font-size: 18px; 
}
a {
  margin-top: 10px;
  font-size: 14px;
  display: inline-block;
  color: #777;
  padding: 6px 10px;
  font-weight: 600;
  background-color: white;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
.card:hover  .content{
  color: white;
}
/*
.card:hover:after {
  transform: rotate(10deg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2)
}
.imgbox {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: 10px;
  right: 10px;
  background-color: var(--pageBlack);
  transition: 0.5s;
  z-index:2;
}
.card:hover .imgbox {
  bottom: 80px;
}
.details {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 60px;
  text-align: center;
}
h2 {
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 20px;
  color: var(--pageBlack);
  text-transform: uppercase;
}
h2 span {
  line-height: 30px;
  display: block;
  width: 100%;
  font-size: 16px;
  color: var(--pageGreen);
}
img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
} */