* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ramaraja", serif;
}

body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: rgba(2, 4, 146, 0.808);
  background-image: url(./img/backfc.jpg);
  background-size: cover;
}

.card {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 20px;
}

.card .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.5s;
}

.card .front {
  transform: perspective(600px) rotateY(0deg);
  box-shadow: 0 5px 10px rgba(255, 254, 254, 0.836);
}

.card .front img {
  position: absolute;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

.card .front h3 {
  position: absolute;
  /* bottom: 0; */
  width: 100%;
  height: 45px;
  /* top: 40%; */
  line-height: 45px;
  color: rgb(0, 0, 0);
  /* background: rgba(255, 255, 255, 0.425); */
  background-position: top;

  text-align: center;
}

.card .back {
  transform: perspective(600px) rotateY(180deg);
  background: rgba(0, 0, 0, 0.781);
  padding: 15px;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 10px rgba(255, 254, 254, 0.836);
  /* background-image: url(./img/back.jpg);
    background-size: cover; */
}

.card .back p {
  letter-spacing: 2px;
  font-family: 'Roboto', sans-serif;

}

.card:hover .front {
  transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
  transform: perspective(600px) rotateY(360deg);
}
.imgatras {
  position: absolute;
  left: 2%;
  /*top: 911px; */
  color: #ffffff;
  width: 30px;
  height: 30px;
  top: 5%;
}
