body {
  background: #444;
  color: white;
  font-family: sans-serif;
  text-align: center;
}

#gameBoard {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(8, 60px);
  gap: 5px;
  justify-content: center;
  margin: 20px auto;
  position: relative;
}

.tile {
  width: 60px;
  height: 60px;
  background-color: grey;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  position: relative;
}

.tile.ladder {
  background-color: green;
}

.tile.snake {
  background-color: red;
}

.player-icon {
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 2px;
  left: 2px;
  z-index: 2;
}

.controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap:20px;

}
#dice-container {
  display:flex;
  align-items: center ;
  justify-content: center;
  gap:10px;
  margin-top: 10px;
  
}
#dice-icon {
  transition: none;
}
#dice-icon:hover {
  transform: none;
}
.dice-result{
  text-align: center;
  font-size: 1.5em;
  font-weight:bold;
}
@keyframes rollSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}

.rolling {
  animation: rollSpin 3s ease-in-out;
}

@keyframes climb {
  0% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0); }
}

@keyframes slide {
  0% { transform: translateY(0); }
  50% { transform: translateY(30px); }
  100% { transform: translateY(0); }
}

.animate-climb {
  animation: climb 0.8s ease;
}

.animate-slide {
  animation: slide 0.8s ease;
}

.setup-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 300px;
  margin: 20px auto;
  animation: fadeIn 1s ease;
}

.name-input {
  display: block;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.start-btn {
  background: linear-gradient(135deg, #4CAF50, #81C784);
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.start-btn:hover {
  background: linear-gradient(135deg, #388E3C, #66BB6A);
  transform: scale(1.05);
}

/* Animasi masuk */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
}

.modal-content button {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  width: 80%;
  font-size: 16px;
}

.swal-input-vertical .swal2-radio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-left: 1.5em;
}

#questionText{
  font-size: 12px;
}

