/* Common styles for all screen sizes */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #141414; /* Dark background theme */
  scroll-behavior: smooth; /* Enable smooth scrolling */
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px; /* Add padding for better spacing */
  max-width: 1200px; /* Limit maximum width of content */
  margin: 0 auto; /* Center align content */
  overflow-y: auto; /* Enable vertical scrolling */
}

.card {
  width: calc(46.33% - 20px); /* Adjusted card size for different screen sizes */
  background-color: #fff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  margin-bottom: 20px; /* Add margin between cards */
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
  height: 250px; /* Increased image size */
  object-fit: cover;
}

.card .title {
  padding: 15px;
  background-color: #333;
  color: #fff;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: bottom 0.3s;
}

.card:hover .title {
  bottom: 50%;
}

.price {
  padding: 5px 10px;
  background-color: #ff5722;
  color: #fff;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 5px;
}

/* Media queries for responsive design */
@media screen and (max-width: 1200px) {
  .card {
    width: calc(50% - 20px); /* Adjusted card size for medium screens */
  }
}

@media screen and (max-width: 768px) {
  .card {
    width: calc(100% - 20px); /* Adjusted card size for small screens */
  }
}
