#cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  z-index: 2;
}

.card {
  width: 250px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffef96;
  border: 4px solid black;
  border-radius: 12px;
  background-image: radial-gradient(black 1px, transparent 1px);
  background-size: 10px 10px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  padding: 20px;
  position: relative;
  box-shadow: 6px 6px 0px #000;
}

.card i {
  font-size: 60px;
  color: #ff1e56;
  margin-bottom: 10px;

  text-shadow: 2px 2px 0px #000, -2px -2px 0px #000, 2px -2px 0px #000,
    -2px 2px 0px #000;

  transition: transform 0.2s ease-in-out;
}

.card:hover i {
  transform: scale(1.2) rotate(-5deg);
  color: #06d6a0;
}
.card p {
  font-family: "Luckiest Guy", cursive; /* Comic font */
  font-size: 20px;
  font-weight: normal;
  color: #000;
  margin-top: 8px;
  text-transform: uppercase;

  /* Stronger comic text outline */
  text-shadow: 
    2px 2px 0px #fff, 
    -2px -2px 0px #fff,
    2px -2px 0px #fff,
    -2px 2px 0px #fff;

  letter-spacing: 1px;
  text-align: center;
}

.card:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 10px 10px 0px #000;
  background-color: #f4d35e; 
}

@media (max-width: 768px), (min-width: 320px) {
  #cards {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .card {
    width: 220px;
  }
}
