/* Basic resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
}

/* Container styling */
.game-container {
  width: 90%;
  max-width: 700px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

/* Board styles */
#board {
  display: flex;
  flex-direction: column;
  border: 2px solid #333;
  margin: 20px 0;
  background-color: #fff;
}

.row {
  display: flex;
}

.cell {
  width: 40px;
  height: 40px;
  border: 1px solid #999;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background-color: #fff;
}

/* Player marker styles */
.player {
  width: 20px;
  height: 20px;
  font-size: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
  z-index: 10;
}

/* Color for snakes and ladders */
.snake {
  background-color: #ff4d4d; /* red for snakes */
}

.ladder {
  background-color: #4CAF50; /* green for ladders */
}

/* Controls styling */
.controls {
  margin-top: 20px;
}

button {
  padding: 10px 15px;
  margin: 5px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #007BFF;
  color: #fff;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

.exit-button {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

#message {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
}

/* Responsive adjustments for mobile */
@media(max-width: 600px) {
  .cell {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .player {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
  button {
    font-size: 14px;
    padding: 8px 12px;
  }
}
/* Player marker styles with circles and specific colors */
.player {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 2px;
  right: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
  z-index: 10;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}

/* Player 1 - yellow circle with black text */
.player-p1 {
  background-color: yellow;
  border: 2px solid #ccc;
  color: black;
}

/* Player 2 - blue circle with white text */
.player-p2 {
  background-color: #007BFF;
  border: 2px solid #ccc;
  color: white;
}