body {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  margin-bottom: 20px;
}

.game-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

canvas {
  border: 3px solid #fff;
  background-color: #000;
}

.side-panel {
  text-align: left;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.instructions {
  margin-top: 20px;
  font-size: 14px;
}
.instructions ul {
  padding-left: 16px;
}
.instructions li {
  margin-bottom: 4px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.game-over-box {
  background: #222;
  color: white;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
}

.game-over-box button {
  margin-top: 15px;
  padding: 10px 25px;
  font-size: 16px;
  background: #ff4d4d;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
