body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f0f8ff;
  margin: 0;
  padding: 0;
}

h1 {
  color: #333;
}

.card {
  background-color: #f8f9fa;
  border: 2px solid #6c757d;
  border-radius: 10px;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card img {
  width: 80%;
  height: 80%;
  display: none;
}

.card.flipped img {
  display: block;
}

.card.flipped {
  background-color: #fff;
  transform: rotateY(180deg);
}

/*
#game-board {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-gap: 10px;
  justify-content: center;
  margin: 20px auto;
  max-width: 500px;
}
*/

.card {
  width: 100px;
  height: 100px;
  background-color: #ccc;
  border: 2px solid #333;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.card img {
  width: 80%;
  height: 80%;
  display: none;
}

.card.flipped img {
  display: block;
}

.card.flipped {
  background-color: #fff;
}

.game-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spasi di antara elemen */
  gap: 20px; /* Jarak antara tombol dan div */
}

#game-board {
  flex-grow: 2; /* Elemen div mengambil ruang lebih besar */
  max-width: 70%; /* Batas lebar maksimal */
  min-height: 300px; /* Tinggi minimum */
  background-color: #f8f9fa;
  border: 2px solid #6c757d;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.button-container {
  display: flex;
  flex-direction: column; /* Tombol ditampilkan vertikal */
  gap: 10px;
}

button {
  width: 150px; /* Lebar tombol */
  padding: 10px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .game-container {
    flex-direction: column; /* Ubah tata letak menjadi vertikal */
    align-items: center;
  }

  #game-board {
    max-width: 100%;
  }

  .button-container {
    flex-direction: row; /* Tombol sejajar secara horizontal */
    gap: 20px;
  }
}

.message-box {
  margin: 20px auto;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.message-box.info {
  background-color: #d9edf7;
  color: #31708f;
}

.message-box.success {
  background-color: #dff0d8;
  color: #3c763d;
}

.message-box.error {
  background-color: #f2dede;
  color: #a94442;
}

#number-panel,
#order-board {
  min-height: 100px;
}

.number-box {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border: 2px solid #6c757d;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: grab;
}

.number-box.dragging {
  opacity: 0.5;
}

