body {
  font-family: "Lexend";
  padding: 1rem;
  background: #141414;
  color: #e0e0e0;
  user-select: none;
}

.mb-4 {
  margin-bottom: 20px;
}

.vertical-center {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.gradient-text {
  font-size: 3rem;
  max-width: fit-content;
  background: linear-gradient(to right, #f8146b, #ff6600, #ff00ff, #ffe600);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
}

.inner-text {
  max-width: fit-content;
  background: linear-gradient(to right, #f8146b, #ff6600, #ff00ff, #ffe600);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
  float: right;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.controls {
  margin-bottom: 1rem;
}

#search,
#filter {
  padding: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 6px;
}

#search {
  width: 200px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #3a3a3a;
  color: #e0e0e0;
  transition: border-color 0.3s, background 0.3s;
}

#filter {
  width: 150px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #3a3a3a;
  color: #e0e0e0;
  transition: border-color 0.3s, background 0.3s;
}

#filter option {
  background: #141414;
  color: #e0e0e0;
}

#search::placeholder,
#filter::placeholder {
  color: #888888;
  opacity: 0.8;
}

#search:focus,
#filter:focus {
  outline: none;
  border-color: #3a3a3a;
  background: rgba(255, 255, 255, 0.2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.icon {
  padding: 1rem;
  width: 110px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  position: relative; /* To position the copy button inside the container */
}

.icon:hover {
  border-color: #3a3a3a;
  background: rgb(56, 56, 56);
}

.icon img {
  max-width: 110px;
  height: auto;
}

.icon-name {
  font-weight: bold;
  margin-top: 0.25rem;
  background: linear-gradient(to right, #ff5697, #ff8839, #ff79ff, #eedd44);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
}

.icon-type {
  font-size: 0.8rem;
  color: #888888;
}

.copy-button {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.5); /* Transparent background */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  display: none; /* Hidden by default */
}

.icon:hover .copy-button {
  display: block; /* Visible only when the parent .icon is hovered */
  animation: fadeIn 0.4s ease-in-out; /* Fade-in effect */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.copy-button:hover {
  background: rgba(0, 0, 0, 0.7); /* Slightly darker on hover */
}

#copy-message {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  z-index: 1000;
  display: none; /* Hidden by default */
  animation: fadeOut 2s ease-in-out forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
