/* Style Umum */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0b0b0c; /* hitam pekat */
  color: #e1d5ff; /* ungu lembut untuk teks */
  /* border: 2px solid #dedede; */
}

/* Judul */
#judul {
  text-align: center;
  padding: 5px auto;
  font-size: 3em;
  color: aliceblue;
  background: linear-gradient(90deg, #4e008e, #8b2fff);
  -webkit-text-fill-color: transparent;
}

/* Container sekarang vertikal */
#container {
  display: flex;
  flex-direction: column; /* ubah dari row ke column */
  align-items: center;
  gap: 30px;
  padding: 20px;
}

/* Bagian preview gambar terpilih */
#a {
  width: 40%;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

/* Bagian list gambar */
#b {
  width: 40%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  border-radius: 10px;
}

/* Gambar Pilihan */
.terpilih {
  border-radius: 25px;
  border: 4px solid #803fff;
  box-shadow: 0 0 20px rgba(143, 99, 255, 0.6);
  transition: transform 0.3s ease-in-out;
}
.terpilih:hover {
  transform: scale(1.1);
}

/* Gambar List */
.gambar {
  border-radius: 10px;
  border: 3px solid #4a0077;
  cursor: pointer;
  width: 200px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gambar:hover {
  transform: scale(0.8);
  box-shadow: 0 0 10px rgba(128, 0, 255, 0.5);
}
.active {
  opacity: 0.5;
}
.fade {
  opacity: 0;
  animation: fadeIN 0.9s forwards;
}

/* Ikon small */

.sm {
  position: absolute;
  top: 30px;
  right: 44%;
  display: flex;
  justify-content: space-between;
}

.sm li a {
  text-decoration: none;
}
.sm li {
  list-style: none;
  margin: 0 10px;
  /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); */
  border-radius: 50%;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* EFEK ICON */
.icon {
  color: #fff;
  animation: first_color 0.5s ease-in-out infinite alternate;
}

.icon:nth-child(2) {
  animation-name: second_color;
}

.icon:nth-child(3) {
  animation-name: third_color;
}

/* Animasi */
@keyframes fadeIN {
  to {
    opacity: 1;
  }
}
/* Responsive */
@media screen and (max-width: 768px) {
  #container {
    flex-direction: row;
    align-items: center;
  }
  #a,
  #b {
    max-width: 100%;
  }
}

.hidden {
  display: none;
}
/* Tombol Prev/Next Keren */
.prev, .next {
  cursor: pointer;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  background: linear-gradient(90deg, #4e008e, #8b2fff);
  color: white;
  box-shadow: 0 0 15px rgba(143, 99, 255, 0.5);
  margin: 0 20px;
}
