body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("https://i.postimg.cc/fWcyCpLN/desktop-wallpaper-flappy-bird-backgrounds-flappy-bird.jpg") no-repeat center center;
  background-size: cover;
  filter: blur(20px) brightness(0.6);
  z-index: -1;
}


#gameFrame {
  width: 900px;
  height: 600px;
  position: relative;
  margin: auto;
  border: 9px solid yellow;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
  background-color: transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto; /* ensures sharp image rendering */
}



/* Score - Pixelated Retro Style */
#score {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px; /* Smaller size */
  font-weight: bold; /* Bold text */
  font-family: 'Press Start 2P', cursive; /* Retro pixelated font */
  color: orange; /* Solid orange color */
  text-shadow: 
    2px 2px 0 black, 
    -2px -2px 0 black,  
    2px -2px 0 black,  
    -5px 5px 0 black; /* Clear black outline */
}



#startHint, #getReady, #countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  font-weight: bold;
  color: orange;
  text-align: center;
  display: none;
  font-family: 'Press Start 2P', cursive;
  text-shadow:
 -5px 5px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
    -2px  0px 0 #000,
     2px  0px 0 #000,
     0px -2px 0 #000,
     0px  2px 0 #000;
}


/* Update game over modal background to white */
/* Modify Game Over Modal to make it white */
#gameOverModal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Slight black background with transparency */
  display: none;
  justify-content: center;
  align-items: center;
}

/* Make the Game Over Box white */
#gameOverBox {
  background: white; /* Change the background to white */
  padding: 30px 50px;
  border-radius: 12px;
  text-align: center;
}

/* Text color and other details */
#gameOverBox h2 {
  margin: 0 0 20px 0;
  color: #ff0000; /* Keep the red color for Game Over text */
}

#restartButton {
  background-color: lightgreen;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}


