.card-container {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    padding: 30px;
    box-sizing: border-box;
    background-color: white;
  }
  
  .card {
    position: relative;
    width: 200px;
    height: 300px;
    z-index: 1;
    transition: transform 0.3s, opacity 0.5s;
    opacity: 1;
  }
  
  .card:first-child {
    margin-left: 0;
  }
  
  .card:not(:first-child) {
    margin-left: -150px;
  }
  
  .front {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .card img {
    transition: transform 0.3s, opacity 0.5s;
  }
  
  .card:hover img {
    transform: translateY(-20px);
    cursor: pointer;
    border-radius: 10px;
  }
  
  .card:not(:hover) {
    transition-delay: 0.2s;
  }
  
  .card:not(:hover) img {
    transition-delay: 0s;
  }  