/* Style mencocokan gambar Game 1 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
  margin: auto;
  max-width: 400px;
  padding: 10px;
}

.emoji-card {
  aspect-ratio: 1/1;
  font-size: 2rem;
  background-color: #dee2e6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
}

.emoji-card.correct { background-color: #a6e3a1 !important; }
.score-box { font-size: 1.25rem; }
#restartBtn {
  display: inline-block;
}

/* Style cakram Game 2*/
.tower-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* ⛔️ Tidak pindah ke baris baru */
  gap: 1vw;
  margin-top: 30px;
  padding: 0 2vw;
}
.tower {
  flex: 1; /* semua tower berbagi lebar yang sama */
  max-width: 30vw; /* batasi agar tidak terlalu lebar */
  height: auto; /* JS akan atur nanti */
  min-height: 220px; /* untuk level rendah */
  border: 2px dashed #6c757d;
  border-radius: 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  padding: 1vw;
  box-sizing: border-box;
}
.disk {
  height: 5vw;
  max-height: 40px;
  border-radius: 6px;
  color: white;
  text-align: center;
  font-weight: bold;
  margin-top: 0.5vw;
  font-size: 3vw;
}
.instructions {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
}
.selected {
  outline: 3px dashed red;
}
@media (max-width: 500px) {
  .disk { font-size: 4vw; }
}

/* Style puzzle Game 3*/
.puzzle-container {
  max-width: 320px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.tile {
  background-color: #42a5f5;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.empty {
  background-color: #ffffff;
  cursor: default;
}

/* Style urutan huruf Game 4 */
.huruf-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0; 
  gap: 10px;
}
.huruf {
  background: #ffc107;
  padding: 15px 20px;
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}
.hasil {
  min-height: 60px;
  font-size: 28px;
  margin-top: 20px;
}