@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

.cards-list {
    z-index: 0;
    margin: 50px 0 100px 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .cards {
    margin: 2%;
    width: 350px;
    height: 350px;
    border-radius: 40px;
    box-shadow: 5px 5px 30px 7px rgba(0, 0, 0, 0.534), -5px -5px 30px 7px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: 0.4s;
  }
  
  .cards .card_image {
    width: inherit;
    height: inherit;
    border-radius: 40px;
    object-fit: cover;
  }
  
  .cards .card_image img {
    width: inherit;
    height: inherit;
    border-radius: 40px;
    object-fit: cover;
  }
  
  .card_title {
    text-align: center;
    color: white;
    border-radius: 0px 0px 40px 40px;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    font-size: 10px;
    margin-top: -120px;
    height: 40px;
    transition: 0.4s ease-out;
  }
  .card_title button {
    opacity: 0;
    z-index: 2;
    margin: 0 0 1% 0;
    background-color: Black;
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: 0.4s ease-out;
  }
  .card_title button:hover {
      background-color: white;
      color: black;
  }

  .cards:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, 0.505), 
      -5px -5px 30px 15px rgba(0, 0, 0, 0.504);
    transition: 0.6s ease-out;
  }
  .cards:hover .card_title {
    margin-top: -200px;
    height: 40px;
    transition: 0.6s ease-out;
  }
  .cards:hover .card_title button{
    opacity: 1;
    transition: 0.6s ease-out;
  }
  
  @media all and (max-width: 800px) {
    .cards{
      width: 60vw;
      height: auto;
      margin-block: inherit;
    }
  }
  @media all and (max-width: 700px) {
    .cards-list {
      /* On small screens, we are no longer using row direction but column */
      flex-direction: column;
    }
    .cards{
      width: 70vw;
      height: auto;
      margin-block: inherit;
    }
  }


  
  