@font-face {
  font-family: "jersey";
  src: url("./JerseyM54-aLX9.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

body {
  background-color: #a9d4ff;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "jersey";
}

.card {
  position: relative;
  width: 300px;
  height: 400px;
  transition: 0.5s;
}

.card:hover {
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.face1 {
  padding: 20px;
  text-align: center;
  background-color: rgb(85, 37, 130);
  color: rgb(253, 185, 39);
}

.face1 h2 {
  margin-top: 100px;
  font-size: 30px;
  letter-spacing: 2px;
}

.face1 a {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 10px;
  text-decoration: none;
  color: rgb(253, 185, 39);
  border: 2px solid rgb(253, 185, 39);
  text-transform: capitalize;
  font-weight: bold;
  transition: 0.3s;
}

.face2 {
  background-color: rgb(253, 185, 39);
  transition: 0.5s;
}

.face2 h2 {
  font-size: 120px;
  color: rgb(85, 37, 130);
  transition: 0.5s;
}

.card:hover .face2 {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  border: 2px solid rgb(253, 185, 39);
}

.card:hover .face2 h2 {
  color: rgb(253, 185, 39);
  font-size: 40px;
}

a:hover {
  background-color: rgb(253, 185, 39);
  color: rgb(85, 37, 130);
}
