@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 21px;
  min-height: 100vh;
  background: linear-gradient(90deg, #2bb8e0, #1ded89);
  width: 100%;
}

.wrapper {
  height: 400px;
  width: 320px;
  position: relative;
  overflow: visible !important;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  perspective: 1000px;
}

.wrapper h3 {
  text-align: center;
  margin-bottom: 6px;
}

.wrapper .card {
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 5px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.wrapper .card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.wrapper:hover > .front-face {
  transform: rotateY(-180deg);
}

.wrapper .back-face{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.wrapper:hover > .back-face {
  transform: rotateY(0deg);
}

.wrapper .back-face img {
  height: 150px;
  width: 150px;
  background: linear-gradient(135deg, #2bb8e0, #1ded89);
  padding: 5px;
  border-radius: 50%;
}

.wrapper .back-face .info {
  text-align: center;
}

.wrapper .back-face .info .title {
  font-size: 34px;
  font-weight: 600;
}

.back-face ul {
  display: flex;
}

.back-face ul a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  height: 40px;
  width: 40px;
  text-align: center;
  border: 2px solid transparent;
  line-height: 38px;
  margin: 0 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2bb8e0, #1ded89);
  color: #f5f5f5;
}

.back-face ul a:hover {
  background: none;
  color: #1ded89;
  border-color: #1ded89;
}
