* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

body {
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h1 {
  padding: 1rem;
}

input,
button {
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid darkcyan;
  border-radius: 5px;
}

@media (max-width: 600px) {
  input {
    width: 250px;
  }
}

button {
  cursor: pointer;
  color: white;
  background-color: darkcyan;
}

button:active {
  transform: translateY(1px);
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.image-container {
  padding: 20px;
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 1000px) {
  .image-container {
    column-count: 2;
    column-gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 600px) {
  .image-container {
    column-count: 1;
    column-gap: 0;
    padding: 10px;
  }
}

.image-result {
  width: 100%;
  border-radius: 5px;
  background-color: var(--color-img);
  margin-bottom: 20px;
  break-inside: avoid;
}

.image-wrapper {
  min-height: 100px;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.image-result img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s ease-in-out;
}

.image-result img:hover {
  transform: scale(1.1);
}

.image-result p {
  padding: 10px;
}

.image-result p.white-text {
  color: #fff;
  text-shadow: 0 0 4px #222;
}

.image-result p.black-text {
  color: #222;
  text-shadow: 0 0 4px #fff;
}

#rate-limit-info {
  position: fixed;
  top: 6px;
  right: 10px;
  z-index: 1000;
  font-size: 0.75rem;
  color: darkcyan;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
