.gallery-sec-anime {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.anime-card {
  background-color: #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
  width: 150px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.anime-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.anime-card:hover {
  width: 300px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.anime-card-title {
  padding: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #f5f6fa;
  white-space: nowrap;
}

.anime-card-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9));
  color: #fff;
  font-size: 16px;
  transition: bottom 0.4s ease;
}

.anime-card:hover .anime-card-overlay {
  bottom: 0;
}

/* Glow effect for mobile and tablet */
@media (max-width: 768px) {
  .anime-card:hover {
    width: 150px; /* Reset width for mobile and tablet */
    box-shadow: 0 0 20px rgba(255, 118, 117, 0.8); /* Glow effect */
  }

  .gallery-sec-anime {
    flex-wrap: wrap; /* Enable flex-wrap for mobile and tablet */
  }
}

/* Code Example Section */
.code-example {
    background-color: #5d25cb40;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
}

.code-example h2 {
  color: #6c5ce7;
  margin-bottom: 20px;
}

.code-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 8px 16px;
  background-color: #00000031;
  color: #dcdde1;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: #6c5ce7;
  color: #fff;
}

.tab-content {
  display: none;
  background-color: #5d0ae361;
  border-radius: 5px;
  padding: 15px;
  position: relative;
}

.tab-content.active {
  display: block;
}

.tab-content pre {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #f8f8f2;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #6c5ce7;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background-color: #5649c0;
}
