/* src/style.css */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

#root {
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 20px;
  padding: 40px;
}

.space {
  position: absolute;
  left: var(--left, 0px);
  top: var(--top, 0px);
  background: var(--bg, #f0f0f0);
  display: flex;
  color: #333;
  text-align: center;
  word-break: break-word;
  border: 1px solid #333;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 80px;
  height: 80px;
  padding: 2px;
  font-size: 10px;
  font-weight: bold;
}

.space-name {
  font-size: 9px;
}

.space-price {
  margin-top: 2px;
  font-size: 8px;
}

.board-container {
  position: relative;
  background: #2e8b57;
  border-radius: 8px;
  width: 924px;
  height: 924px;
  margin: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px #0000004d;
}

.center-panel {
  position: absolute;
  display: flex;
  background: #fffffff2;
  border-radius: 8px;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  inset: 88px;
}

.game-info {
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.player-row {
  display: flex;
  opacity: 1;
  align-items:  center;
  gap: 8px;
  transition: opacity .3s;
  font-size: 12px;
}

.player-row.bankrupt {
  opacity: .5;
}

.player-token {
  border: 2px solid #333;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.player-jail {
  color: red;
}

.controls-panel {
  position: fixed;
  text-align: center;
  z-index: 1000;
  color: #fff;
  background: #000000e6;
  border-radius: 12px;
  min-width: 300px;
  padding: 32px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 32px #00000080;
}

.action-panel {
  position: fixed;
  color: #fff;
  text-align: center;
  background: #000000f2;
  border-radius: 12px;
  max-width: 400px;
  padding: 20px;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 4px 16px #0000004d;
}

.game-title {
  color: #333;
  margin-bottom: 8px;
  font-size: 24px;
}

.game-message {
  color: #ccc;
  margin-bottom: 12px;
  font-size: 18px;
}

.button {
  color: #fff;
  cursor: pointer;
  background: #4caf50;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
}

.button:hover {
  background: #45a049;
}

.button:disabled {
  cursor: not-allowed;
  background: #ccc;
}

.action-button {
  color: #fff;
  background: #ff9800;
  margin-top: 8px;
}

.secondary-button, .jail-button {
  background: #2196f3;
}

.passed-go {
  color: #4caf50;
  animation: pulse 1s ease-in-out;
  margin-top: 16px;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}
