html, body {
    margin: 0;
    padding: 0;
    width: 100%; /* Ensure the body takes up the full width */
	background-color: #ffffff;
	font-family: Arial, Helvetica, sans-serif !important;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 20px 20px;
}

canvas {
    background-color: transparent;
	border:1px solid #000;
	margin-top:40px;
}

.gameText {
    font-size: 30px;
    font-weight: bold;
}

.btn {

    width: 44px;
    height: 44px;
    margin: 0px 20px;
    font-size: 16px;
    display: inline-block;
    text-align: center; /* Center the content horizontally */
    line-height: 34px; /* Vertically center the content */
}

#fruitCounter{position: absolute; top: 0; left: auto; color: white; background: black; padding: 10px;}

#fruitCounter a, #fruitCounter a:hover{color:#ffffff; text-decoration:none;}

#gameControls{ margin-top:20px;}



#gameOverText {
    display: none;
}

#restartBtn {
    display: none;
	margin-top:20px;
}

/* Centered HUD wrapper */
#hudCenter {
  position: absolute;       /* sits over the canvas area */
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;                 /* space between rows */
  z-index: 10;              /* above the canvas */
}

/* Rows hold the green/blue boxes side-by-side */
#hudCenter .hud-row {
  display: flex;
  gap: 8px;                 /* space between green/blue */
}

/* Shared box look */
.hud-box {
  color: #ffffff;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  font-weight: normal;
  user-select: none;
  white-space: nowrap;
  
}

/* Match snake colors from game.js */
.hud-green {                /* player head color: #1f9d1f */
  background: #1f9d1f;
  /* subtle edge similar to darkgreen */
}

.hud-blue {                 /* cpu head color: #1a4dff */
  background: #1a4dff;

}


