/* General styles */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background-color: #1a1a2a;
}

/* Welcome screen */
#welcomeScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2a, #0f0f1a);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.welcome-content {
  background-color: rgba(40, 40, 60, 0.9);
  border-radius: 15px;
  padding: 40px 60px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 90%;
}

.welcome-content h1 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(50, 200, 255, 0.5);
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  color: #ffffff;
  text-align: left;
  margin-bottom: 8px;
  font-size: 16px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  outline: none;
  transition: all 0.3s;
}

.input-group input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

#startGameBtn {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#startGameBtn:hover {
  background-color: #45a049;
}

/* Game over screen */
#gameOverScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-content {
  background-color: rgba(40, 40, 60, 0.9);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: white;
}

#playAgainBtn {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 20px;
}

#playAgainBtn:hover {
  background-color: #45a049;
}

/* Game UI elements */
#uiOverlay {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.ui-element {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 10px;
  color: white;
  pointer-events: auto;
}

#scoreBoard {
  top: 10px;
  right: 10px;
  text-align: right;
  max-width: 200px;
}

#scoreBoard h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

#winner {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  padding: 20px;
  text-align: center;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.7);
}

#minimap {
  bottom: 10px;
  right: 10px;
  padding: 5px;
}

#debug {
  bottom: 10px;
  left: 10px;
  max-height: 100px;
  overflow-y: auto;
  font-size: 12px;
  color: #aaaaaa;
}

/* Canvas styles */
#board {
  display: block;
}

.eating-flash {
  filter: brightness(1.5);
  transition: filter 0.15s ease-out;
}
