* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
   background-color: #1a1a2e;
  font-family: Arial, sans-serif;
  overflow: hidden;
  touch-action: manipulation;
}

#game-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 600px;
  overflow: hidden;
  background-color: #87ceeb;
  border: 2px solid #333;
  touch-action: none;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  z-index: 0;
  width: 100%;
  height: 100%;
}

#score-display {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

#high-score-display {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

#pause-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0);
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  z-index: 10;
  display: none;
  cursor: pointer;
  border: none;
  padding: 0;
}

#start-screen, #game-over-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  z-index: 15;
  text-align: center;
}

#game-over-screen {
  display: none;
}

button {
  padding: 12px 24px;
  margin-top: 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  min-width: 150px;
}

button:active {
  background-color: #3e8e41;
  transform: scale(0.98);
}

h1 {
  margin-bottom: 20px;
  font-size: 32px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

p {
  margin-bottom: 10px;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  padding: 0 20px;
}

.controls-info {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Floating Home Button Styles */
.floating-home-btn {
    position: fixed; /* Keeps it floating on the screen */
    bottom: 20px;    /* Positioned at the bottom-right for easy access */
    right: 20px;
    background-color: #40407a; /* Matches your button background */
    color: white; /* White text/icon for contrast */
    border: solid rgba(255, 255, 255, 0.454); /* Same subtle border */
    border-radius: 50%; /* Circular shape for a modern, button-like feel */
    width: 50px; /* Compact size */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em; /* Larger icon for visibility */
    text-decoration: none; /* No underline */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Your smooth animation */
    z-index: 1000; /* Ensures it stays on top of other elements */
}

.floating-home-btn:hover {
    transform: scale(1.05); /* Slight scale up, matching your buttons */
    background-color: #555; /* Lighter dark gray hover */
}

.floating-home-btn:active {
    transform: scale(0.95); /* Scale down on click for feedback */
}



