body {
    font-family: "Forum";
    margin: 20px;
	margin: 0;
	line-spacing: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
	margin: 0;
}

.card {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
	margin: 0;
}

.card img {
    width: 150px; /* or whatever fixed width you want */
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    display: block;       /* ensures margin auto works */
    margin: 0 auto;       /* centers horizontally */
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button {
	font-family: "Forum";
	font-weight: 600;
}

/* Fade-up animation for everything */
* {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

/* Delay each element slightly for a nicer cascading effect */
*:nth-child(1) { animation-delay: 0.1s; }
*:nth-child(2) { animation-delay: 0.2s; }
*:nth-child(3) { animation-delay: 0.3s; }
*:nth-child(4) { animation-delay: 0.4s; }
/* Add more nth-child rules as needed */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card img {
    width: 150px;           /* fixed width */
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    display: block;         /* makes margin auto work */
    margin: 0 auto;         /* horizontal centering */
}
