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

.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

h1 {
  text-align: center;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.controls input,
.controls select {
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.loading {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin: 15px 0;
  display: none;
}

.result-count {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
}

.meme-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.meme-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 10px;
}

.meme-card img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination button {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: #eee;
  border-radius: 4px;
}

.pagination button.active {
  background: #007bff;
  color: white;
}
