@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,900");
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url("pattern.png");
  overflow: hidden;
}
.container {
  position: relative;
  width: 1050px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  transform: skewY(-10deg);
}
.container .card {
  position: relative;
  width: 300px;
  height: 400px;
  background: #fff;
  transition: 0.5s;
}
.container .card:hover {
  transform: translateY(-40px);
}
.container .card:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: #54a3c5;
  transform-origin: bottom;
  transform: skewX(45deg);
  transition: 0.5s;
}
.container .card:after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 15px;
  height: 50%;
  background: #54a3c5;
  border-bottom: 200px solid #d9d9d9;
  transform-origin: left;
  transform: skewY(45deg);
  transition: 0.5s;
}

.container .card .imgbx {
  position: relative;
  width: 300px;
  height: 200px;
  background: #54a3c5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.container .card .imgbx img {
  max-width: 100px;
}
.container .card .imgbx h3 {
  position: relative;
  color: #fff;
  margin-top: 10px;
}
.container .card .content {
  position: relative;
  width: 100%;
  height: 200px;
  padding: 20px;
  background: #fff;
  color: #777;
  text-align: center;
}
.container .card .content:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.1));
  transform-origin: bottom;
  transform: skewX(45deg);
  transition: 0.5s;
  pointer-events: none;
  z-index: -1;
}
.container .card:hover .content:before {
  transform: translateY(40px) skewX(45deg);
  filter: blur(5px);
  opacity: 0.5;
}

.container .card:nth-child(1) {
  z-index: 1;
}
.container .card:nth-child(2) {
  z-index: 2;
}
.container .card:nth-child(1) {
  z-index: 3;
}
a {
  z-index: 2;
  color: white;
  background-color: #61bbe2;
  padding: 15px;
  border-radius: 10%;
  border-color: #61bbe2;
  cursor: pointer;
  text-shadow: 0 0 10px #00b3ff, 0 0 20px #00b3ff, 0 0 40px #00b3ff,
    0 0 80px #00b3ff, 0 0 120px #00b3ff, 0 0 200px #00b3ff;
  text-decoration: none;
  font-size: 1rem;
}
a:hover {
  z-index: 2;
  color: white;
  background-color: #54a3c5;
  border-top-color: white;
  font-size: 1.5rem;
}
@media screen and (max-width: 800px) {
  .container {
    position: relative;
    width: 95%;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 5%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .container .card {
    position: relative;
    width: 100%;
    height: 30%;
    background: #fff;
    transition: 0.5s;
  }
  .container .card:hover {
    transform: translateY(-40px);
  }
  .container .card:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 80%;
    height: 5px;
    background: #54a3c5;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 0.5s;
  }
  .container .card:after {
    content: "";
    position: absolute;
    top: -10px;
    left: -15px;
    width: 15px;
    height: 30%;
    background: #54a3c5;
    border-bottom: 250px solid #d9d9d9;
    transform-origin: left;
    transform: skewY(25deg);
    transition: 0.5s;
  }

  .container .card .imgbx {
    position: relative;
    width: 75%;
    height: 200px;
    background: #54a3c5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .container .card .imgbx img {
    max-width: 80%;
  }
  .container .card .imgbx h3 {
    position: relative;
    color: #fff;
    margin-top: 10px;
  }
  .container .card .content {
    position: relative;
    width: 80%;
    height: 110px;
    padding: 5px;
    background: #fff;
    color: #777;
    text-align: center;
  }
  .container .card .content:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80%;
    height: 200px;
    background: linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.1));
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: -1;
  }

  .container .card:hover .content:before {
    transform: translateY(40px) skewX(45deg);
    filter: blur(5px);
    opacity: 0.5;
  }

  .container .card:nth-child(1) {
    z-index: 1;
  }
  .container .card:nth-child(2) {
    z-index: 2;
  }
  .container .card:nth-child(1) {
    z-index: 3;
  }
  */ a {
    z-index: 2;
    color: white;
    background-color: #61bbe2;
    padding: 15px;
    border-radius: 10%;
    border-color: #61bbe2;
    cursor: pointer;
    text-shadow: 0 0 10px #00b3ff, 0 0 20px #00b3ff, 0 0 40px #00b3ff,
      0 0 80px #00b3ff, 0 0 120px #00b3ff, 0 0 200px #00b3ff;
    text-decoration: none;
    font-size: 1rem;
  }
  a:hover {
    z-index: 2;
    color: white;
    background-color: #54a3c5;
    border-top-color: white;
    font-size: 1.5rem;
  }
}
