/* General Body Styling */
body {
  margin: 0;
  padding: 0;
  background-color: #111;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

/* Marquee Styling */
center {
  margin-top: 50px;
}

marquee {
  background-color: #000;
  padding: 20px 0;
  border-top: 2px solid lime;
  border-bottom: 2px solid lime;
  width: 100%;
}

marquee h1 {
  font-size: 48px;
  color: lime;
  margin: 0;
  text-shadow: 0 0 10px lime, 0 0 20px lime;
  letter-spacing: 4px;
}

/* Device Warning */
.device-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: yellow;
  font-size: 16px;
  text-align: center;
  padding: 8px 0;
  border-bottom: 2px solid red;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 0 10px red;
}

/* Game Info */
#result {
  font-size: 20px;
  margin: 20px 0 10px;
}

canvas {
  border: 2px solid #0f0;
  background-color: #000;
  max-width: 100vw;
  max-height: 80vw;
}

/* Game Over Text */
#end {
  display: none;
  font-size: 24px;
  color: red;
  text-align: center;
  margin-top: 10px;
}

/* Restart Button */
.buttons {
  margin-top: 10px;
}

button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background: #333;
  color: white;
  border: 1px solid lime;
  border-radius: 5px;
}

button:hover {
  background: #444;
}

/* Mobile Controls */
.mobile-controls {
  display: none;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.mobile-controls button {
  background-color: #222;
  color: lime;
  border: 2px solid lime;
  font-size: 28px;
  padding: 15px 25px;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
  width: 70px;
}

/* Responsive Media Query for Mobile */
@media (max-width: 768px) {
  .mobile-controls {
    display: block;
  }

  canvas {
    width: 90vw;
    height: 90vw;
  }
}
