body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background-color: #87CEEB;
    margin: 0;
    height: 100vh;
  }
  
  h1 {
    margin: 10px 0;
    color: #fff;
  }
  
  #gameCanvas {
    border: 2px solid #000;
    background-color: #87CEEB;
  }
  
  #score {
    font-size: 18px;
    color: #fff;
    margin-top: 10px;
  }
  
  #instructions {
    font-size: 20px;
    color: #fff;
    margin-top: 10px;
  }
  
  #playButton, #replayButton {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
  }
  
  #playButton:hover, #replayButton:hover {
    background-color: #45a049;
  }
  
  #countdown {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-top: 20px;
  }
  
  /* Best score styling */
#bestScore {
  font-size: 18px;
  color: #fff;
  margin-top: 6px;
}
/* GAME OVER OVERLAY */
.game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-in-out;
}

.game-over-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 280px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  animation: popUp 0.3s ease;
}

.game-over-content h2 {
  margin-top: 0;
  color: #333;
}

.game-over-content button {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.game-over-content button:hover {
  background: #45a049;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #87CEEB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid white;
  border-top: 6px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen p {
  color: white;
  font-size: 18px;
}

/* BIRD SELECTOR */

#birdSelector{
margin-top:15px;
text-align:center;
}

.bird-options{
display:flex;
gap:12px;
justify-content:center;
margin-top:10px;
}

.bird-option{
width:50px;
height:50px;
cursor:pointer;
border:3px solid transparent;
border-radius:8px;
transition:transform 0.2s, border 0.2s;
}

.bird-option:hover{
transform:scale(1.1);
}

.bird-option.selected{
border:3px solid yellow;
background:white;
}
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}
