body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
}

main {
  text-align: center;
  padding: 20px;
}

h1 {
  margin-bottom: 30px;
  color: #333;
  font-size: 2.5em;
}

.buttons {
  margin-bottom: 40px;
}

button {
  padding: 12px 30px;
  margin: 0 10px;
  border: 2px solid #3498db;
  background: white;
  color: #3498db;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

button.active {
  background: #3498db;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
}

button.active:hover {
  background: #2980b9;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  min-height: 400px;
}

.card {
  background: white;
  border-radius: 15px;
  width: 250px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.card img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  margin-top: auto;
  padding: 10px 0;
  font-weight: 600;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  animation: fadeOutDown 0.4s forwards;
}

@keyframes fadeOutDown {
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

.category-title {
  margin: 20px 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 25px;
  display: inline-block;
  font-size: 1.2em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .card {
    width: 200px;
    min-height: 250px;
  }

  .card img {
    width: 150px;
    height: 100px;
  }

  button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  button {
    width: 250px;
    margin: 0;
  }

  .card {
    width: 90%;
    min-height: auto;
  }
}
