/* Overall styling for the body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
  }
  
  h1 {
    text-align: center;
    color: #333;
    font-size: 3em;
  }
  
  /* Container for the cards */
  .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 20px;
    width: 80%;
    max-width: 1200px;
    margin-top: 40px;
    justify-items: center;
  }
  
  /* Card styling */
  .card {
    background-color: #f7f7f7; /* Light grey background */
    padding: 20px;
    width: 200px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  }
  
  /* Image styling */
  .card img {
    width: 100%;
    height: auto;
    border-radius: 10%;
    margin-bottom: 15px;
  }
  
  /* Name and occupation text */
  .card h2 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
  }
  
  /* Birthday styling */
  .card p {
    font-size: 0.9em;
    color: #777;
  }
  
  /* For smaller screens, arrange 2 in the first row and 3 in the second */
  @media (max-width: 800px) {
    .cards-container {
      grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
  }
  