body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #eeb374; /* Bridge color */
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  width: 100%;
  border-radius: 12px;
  background-color: #000; /* Black card background */
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.03);
}

.image_container {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.animal-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This maintains aesthetic but may crop */
  object-position: center;
}

.title {
  padding: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  background-color: #222;
  width: 100%;
}

.cart-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  margin: 10px 0 15px;
  border-radius: 6px;
}

.cart-button:hover {
  background-color: #45a049;
}

/* Sound section header */
h2 {
  grid-column: 1 / -1;
  color: #444;
  border-bottom: 2px solid #130d0b;
  padding-bottom: 10px;
  margin-top: 40px;
  cursor: pointer;
}

h2:hover {
  color: #fe7300;
}

/* Sound Button/Link Styling */
.sound-button-container {
  margin-top: 12px;
}

.sound-link {
  background-color: #f4a261;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 5px;
  margin-top: 5px;
}

.sound-link:hover {
  background-color: #e76f51;
  transform: scale(1.05);
}

.sound-link:active {
  transform: scale(0.98);
}

.sound-button-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  width: 100%;
}
