body {
  
  background-color: #f075ae;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
   perspective: 1000px; 
}
.card{
    background-color:#ed87bc;
    width: 200px;
    height: 200px;
position: relative;
    transform-style: preserve-3d;
    transition: 2s;
     border-radius: 20px;
    animation-name: animation;
    animation-duration: 2s;
   
}
.front,.back{
     width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    
    
}
.card:hover {
    transform: rotateY(180deg);
   
}
.back{
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.front img{
    width: 100%;
    height: 100%;
    border-radius: 20px;

}
h3,p{
    font-size: 20px;
    
    color: white;
}
.bag{
    transform-origin: top right;
    transition: 2s ;
    animation-name: bag;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 2;


}
button{
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
    background-color: #ed87bc;
    font-size: 20px;
    color: white;
    font-weight: bold;
    border: none;
    transition: 0.3s linear;
    transform-origin: top ;
    animation-name: animation;
    animation-duration: 2s;
    animation-delay: .4s;
}
button:hover{
    transform: scale(1.1) translateY(-5px);
}
@keyframes animation {
    from{
         opacity: 0;
          transform: translateY(30px);
    }
    to{
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bag {
    
    to{
        transform: rotate(360deg);
  }
}

.loading {
   display: flex;
  justify-content: center;
  align-items: center; 
}
.loading div {
  margin: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #f9b2d7;
  animation-name: loading;
  animation-duration: 0.9s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
.two {
  animation-delay: 0.2s;
}
.three {
  animation-delay: 0.4s;
}
@keyframes loading {
  to {
    opacity: 0.6;
    transform: scale(1.2) translateY(20px);
  }
}
