/* The flip box container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-box {
  background-color: transparent;
  height: 260px;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}
.centerthis {
  line-height: 150px;
  height: 150px;
  margin: auto;
}
.flip-box-front .category {
  color: #0b7689;
  text-transform: uppercase;
  font-size: 16px;
  text-align: left;
  font-weight: bold;
  line-height: 1.4;
  padding: 30px 30px 20px;
}

/* Style the front side */
.flip-box-front {
  background-color: #ffffff;
  color: #30008c;
  padding: 10px;
  border: 1px solid rgba(11,118,137,.5);
}
.flip-box-front h3 {
  color: #30008c !important;
  margin: 0;
  padding: 0 30px;
  text-align: left;
}
.flip-box-front .icon {
  width: 100%;
  height: auto;
  text-align: right;
  position: absolute;
  z-index: 100;
  right: 10px;
  bottom: 0;
}
.flip-box-front .icon img {
  width: 50px;
  height: 50px;
}

/* Style the back side */
.flip-box-back {
  background-color: #0b7689;
  color: white;
  transform: rotateY(180deg);
  padding: 20px 30px;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 1000;
}
.flip-box-back p {
  margin: 0;
}
.flip-box-back a {
  font-weight: 400;
  font-family: "Open Sans", "Open Sans";
  letter-spacing: 0;
  text-transform: uppercase;

  padding: 16px 31px;
  font-size: 20px;
  border-radius: 60px;

  color: #ffffff !important;
  background-color: #a376ab;
  border-color: #a376ab;
}
.flip-box-back a:hover {
  background-color: #96699e;
  border-color: #96699e;
}
@media only screen and (max-width: 1264px) {
  .flexcolumn.flip-box {
    width: 48%;
  }
}
@media only screen and (max-width: 1068px) {
  .flexcolumn.flip-box {
    width: 47%;
  }
}
@media only screen and (max-width: 768px) {
  .flexcolumn.flip-box {
    width: 100%;
    height: 250px;
  }
}
@media only screen and (max-width: 480px) {
  .flexcolumn.flip-box {
    height: 320px;
  }
}
