@font-face {
  font-family: "kohinoor-m";
  src: url("fonts/Kohinoor-Light.otf") format("opentype");
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 4rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
  padding: 0 2rem;
}

.grid1 {
  display: grid;
  gap: 2rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
  padding: 0 2rem;
}

.card {
  position: relative;
  display: inline-block;
  margin: 25px;
  width: 356px;
  height: 200px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
  transition: 0.5s;
}

.card .hide {
  display: none;
}

.card:hover {
  height: 450px;
}

@media only screen and (min-width: 1199.98px) {
  .card .hide {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .card .content .details {
    padding: 0px !important;
  }
}

@media (max-width: 320px){
  .card{
    width: 300px;
    font-size: small;
  }
}

.imageBox {
  position: absolute;
  left: 50%;
  top: -15%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: 0.5s;
}
.card:hover .imageBox {
  width: 250px;
  height: 250px;
}

.imageBox img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.card .content .details {
  padding: 40px;
  text-align: center;
  width: 100%;
  transition: 00.5s;
  transform: translateY(150px);
}

.card:hover .content .details {
  transform: translateY(0px);
}

.card .content .details h2 {
  font-family: "kohinoor-m", sans-serif;
  font-size: 1.25em;
  font-weight: 600;
  color: #555;
  line-height: 1.2em;
}

.float-area {
  position: relative;
  left: 17%;
  top: 100px;
  height: 65px;
  display: flex;
  flex-direction: column;
}


@media (max-width: 568px) {

  .float-area{
    display: none;
  }
  
}

.floating-img {
  transform: translateY(-10%);
  animation: floater 1.5s infinite;
  transition: ease 0.5s;
  width: 80px;
  height: 80px;
}

@keyframes floater {
  0% {
    transform: translateY(-10%);
    transition: ease 0.5s;
  }
  50% {
    transform: translateY(10%);
    transition: ease 0.5s;
  }
}
