.grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 20px;
  margin: 20px;
}

.card {
  background: linear-gradient(135deg, #282E2E, #555);
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catbadge{
  position: absolute;
  background: linear-gradient(to right,  rgba(169,3,41,0.7) 0%,rgba(196,72,72,0.7) 44%,rgba(170,34,56,0.7) 100%);
  color:#fff;
  padding:5px 10px;
  margin: 5px;
  font-size:8px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  border-radius:10px;
  box-shadow:0 3px 10px rgba(0,0,0,.2);
  z-index:1001;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px black;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 14px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.card-meta {
  font-size: 12px;
  font-weight: 400;
  color: white;
  margin-bottom: 15px;
}

.copy-btn, .card-button {
  display: inline-block;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 10px;
  color: #282E2E;
  background-color: #7ecca0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: Oswald, Sans-Serif;
}

.card-button:hover {
  background-color: #0097a7;
}

.container {
  background: #282E2E;
  border-radius: 10px;
  padding: 1rem;
  max-width: 600px;
  margin: 10px;
}

.ket {
  width: auto;
  padding: 14px;
  font-size: 14px;
  font-weight: bold;
  color: #282E2E;
  background: #7ecca0;
  border-radius: 10px;
}

.image-wrapper {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.image-wrapper img {
  width: 100%;
  display: block;
}

.prompt-box {
  background-color: #1b1b1b;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.1);
  position: relative;
}

.prompt-box textarea {
  width: 100%;
  background: transparent;
  color: #f4f4f4;
  border: none;
  resize: none;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
}

.prompt-box button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #00c49a;
  color: #000;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.copied-msg {
  font-size: 1rem;
  color: #00c49a;
  margin-top: 0.5rem;
  display: none;
}

.copy-btn {
  animation: myAnim 7s ease 0s infinite normal forwards;
}

@keyframes myAnim {

  0%, 100% {
    transform: translateX(0);
  }

  10%, 30%, 50%, 70% {
    transform: translateX(-10px);
  }

  20%, 40%, 60% {
    transform: translateX(10px);
  }

  80% {
    transform: translateX(8px);
  }

  90% {
    transform: translateX(-8px);
  }
}