@font-face {
  font-family: "myfont2";
  src: url(../font/IRANYekanX-Bold.woff2);
}
* {
  font-family: "myfont2";
}
.card-div {
  width: 30%;
  height: 80vh;
  background-color: #eee;
  border: none;
  box-shadow: 0 0 2px 3px #ccc;
  border-radius: 5px;
  padding: 15px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.card-div > h2,
h5 {
  text-align: center;
}
button {
  width: 49%;
}
@keyframes law01 {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.1;
    transform: rotate(10deg);
  }
  100% {
    scale: 1;
    transform: rotate(0deg);
  }
}
.rules1 {
  text-decoration: none;
}
.ani_ch {
  animation: law01 1.5s ease-in-out;
}
