li {
  margin-bottom: 10px; /* Atur jarak sesuai kebutuhan */
}

  .list-item {
    width: 50px;
    height: 50px;
    background-color: rgb(71, 134, 250);
    text-align: center;
    line-height: 50px;
    border: 1px solid black;
    font-size: 20px;
    font-weight: bold;
    position: relative;
}

.list-item2 {
  width: 50px;
  height: 50px;
  background-color: rgb(71, 134, 250);
  text-align: center;
  line-height: 50px;
  border: 1px solid black;
  font-size: 20px;
  font-weight: bold;
  position: relative;
}

.search-box {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: yellow;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
    border: 3px solid black;
    transition: transform 0.5s ease-in-out;
    top: -70px; /* Pastikan posisinya terlihat di atas daftar angka */
    left: 0; /* Awal berada di posisi pertama */
}

.search-box2 {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: yellow;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  font-weight: bold;
  border: 3px solid black;
  transition: transform 0.5s ease-in-out;
  top: -70px; /* Pastikan posisinya terlihat di atas daftar angka */
  left: 0; /* Awal berada di posisi pertama */
}

.list-item.found {
    background-color: green;
    color: white;
}
.list-item.not-found {
    background-color: red;
}

.list-item2.found {
  background-color: green;
  color: white;
}
.list-item2.not-found {
  background-color: red;
}

.pola-wrapper {
  box-sizing: border-box;
  padding: 16px;
  /* max-width: 800px; */
  margin: 20px auto;
  background-color:rgb(243, 241, 241);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
  
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  padding: 10px;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

.grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

#indexInput{
  text-align: center;
  border: 2px solid #011B78;
  padding: 5px;
  width: 70px;
  margin: 5px 0;
}

#stepsInput{
  text-align: center;
  border: 2px solid #011B78;
  padding: 5px;
  width: 70px;
  margin: 5px 0;
}

.incorrect {
  border-color: red !important; 
}

.soal {
  display: none;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.soal.active {
  display: block;
}

.next-btn {
  background-color: #011B78;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.prev-btn {
  background-color: #b6baca;
  color: black;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.next-btn:hover {
  background-color: #0225a3;
  transform: scale(1.05);
}

.prev-btn:hover {
  background-color: #dcdcdd;
  transform: scale(1.05);
}

.next-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.grid {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.kotak {
  width: 50px;
  height: 50px;
  background-color: steelblue;
  color: white;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  border: 2px solid #333;
}

.answers {
  display: flex;
  justify-content: center;   /* Pusat horizontal */
  align-items: center;       /* Pusat vertikal jika dibutuhkan */
  gap: 16px;                 /* Jarak antar tombol */
  margin-top: 20px;
  flex-wrap: wrap;           /* Supaya responsif di layar kecil */
}

.answer-btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #007bff;
  border-radius: 8px;
  background-color: white;
  color: #007bff;
  transition: all 0.3s ease;
}

.answer-btn:hover {
  background-color: #007bff;
  color: white;
}

.soal strong {
  display: block;
  margin-top: 15px;
  font-size: 16px;
}

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

.image-box {
  border: 3px solid #ccc;
  width: 120px;
  height: 120px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  box-sizing: border-box;
}

.image-box img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.checked {
  border-color: red;
}

.found {
  border-color: green;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.logo-marker {
  width: 100px;
}
