/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #107C10, #3AA63F);
  color: #fff;
  min-height: 100vh;
}
.container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}
h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  text-shadow: 1px 1px 2px #000;
}

/* Notice */
.notice {
  background: rgba(255, 255, 221, 0.9);
  color: #333;
  padding: 1rem;
  border-left: 5px solid #f0c000;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

/* Input and button */
.input-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
input[type="text"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px 0 0 5px;
  min-width: 200px;
  flex: 1;
}
button {
  padding: 0.55rem 1rem;
  font-size: 1rem;
  border: none;
  background-color: #0E5C0E;
  color: #fff;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: background 0.3s;
}
button:hover {
  background-color: #149414;
}

/* Avatar Cards */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.avatar-card {
  background: rgba(0,0,0,0.4);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s;
}
.avatar-card:hover {
  transform: scale(1.05);
}
.avatar-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  border: 2px solid #fff;
  margin-top: 0.5rem;
}
.avatar-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px #000;
}

/* Unavailable text styling */
.unavailable {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #f0c000;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #eee;
}

/* Responsive tweaks */
@media (max-width: 500px) {
  input[type="text"] { min-width: 100%; margin-bottom: 0.5rem; border-radius: 5px; }
  button { width: 100%; border-radius: 5px; }
}