*{
  -webkit-tap-highlight-color: transparent; /* Remove blue tap highlight on iOS & Android */
  -webkit-touch-callout: none; /* Remove blue tap highlight on iOS long-press menu */
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

canvas {
  background: #000;
  border: 2px solid #fff;
  width: 100%;
  max-width: 800px;
  height: 80vh;
  margin: 20px auto;
  display: block;
  box-sizing: border-box;
}

/* Pause and Arrow Buttons */
#pauseBtn,
#mobileControls button {
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #4285F4;
  color: white;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover Effect */
#pauseBtn:hover,
#mobileControls button:hover {
  background-color: #3367D6;
}

#pauseBtn:active,
#mobileControls button:active {
  background-color: #2A56C6; /* Darker when pressed */
  transform: scale(0.96);
}

#pauseBtn {
  width: 100px;
  text-align: center;
}

/* Arrow Buttons Row */
#mobileControls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

#mobileControls button:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

#leftBtn,
#rightBtn {
  display: none;
}

@media (max-width: 480px) {
  #pauseBtn {
    width: 80px;
  }
  #pause-label {
    display: none;
  }
  #leftBtn,
  #rightBtn {
    display: block;
    width: 90px;
  }
}
