body {
  margin: 0;
  padding: 0;
  background: #292929;
  color: white;
  font-family: Arial, sans-serif;
}

.start-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 300px;
  min-height: 100vh;
  background-color: #171717;
  color: white;
  text-align: center;
}

.title-text {
  font-size: 3em;
  color: #ffaa00;
  font-weight: bold;
  font-family: Arial, sans-serif;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 3px black;
}

.pacman-icon {
  width: 300px;
  margin-bottom: 20px;
}

#playButton {
  padding: 10px 20px;
  font-size: 1.2em;
  background-color: #ffcc00;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#playButton:hover {
  background-color: #ffaa00;
}

.game-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  gap: 40px;
}

.highscore-box {
  width: 400px;
}

.highscore-box h3 {
  margin-top: 0;
}

.main-game-area {
  text-align: center;
}

.hud {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

canvas {
  background: #111;
  border: 2px solid white;
  display: block;
  margin: 0 auto;
}

#gameOver {
  text-align: center;
  margin-top: 20px;
  color: red;
}

.hidden {
  display: none;
}

.sidebar-separator {
  margin: 50px 0 10px;
  border: none;
  border-top: 1px solid #444;
  width: 90%;
}

.visitor-section {
  text-align: center;
  margin-top: 10px;
}
.lives-display {
  position: absolute;  
  left: 0;             
  bottom: -40px;       
  display: flex;
  align-items: center;
}

#lives-container {
  display: flex;
  gap: 5px;
  margin-left: 20px;   
}

.life-icon {
  width: 25px;
  height: 25px;
}

.life-inactive {
  opacity: 0.3;
}

.separator-line {
  width: max-content;
  max-width: 100%;
  margin: 20px auto;
  border: none;
  border-top: 10px solid #333;
  opacity: 0.6;
}


.copyright-text {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

.highscore-box {
  width: 300px !important;
  min-width: 300px !important;
}

#highscoreList {
  width: 100% !important;
  padding-left: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#highscoreList li {
  width: 100% !important;
  white-space: nowrap !important;  
  overflow: hidden !important;     
  text-overflow: ellipsis !important; 
  padding: 3px 0 !important;
  margin: 0 !important;
  display: block !important;
  font-family: monospace !important;  
  font-size: 14px !important;
}