html, body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow: hidden;
}

/* Make the background wrapper fill the entire screen */
.background-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Hide anything that overflows */
}

#gameCanvas {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  background-color: #000;
}

#score-container, #lives-container {
  position: fixed;
  top: 20px;
  left: 20px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  z-index: 10;
  line-height: 20px;
}

#score-container {
  margin-bottom: 10px;
}

#lives-container {
  position: fixed;
  top: 50px;  /* Adjusted to separate from the score */
  left: 20px;
  display: flex;
  align-items: center;  /* Align items vertically centered */
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  z-index: 10;
  gap: 10px;  /* Adds space between the 'Lives:' label and the heart icons */
}

/* Styling the hearts (lives) */
#lives {
  display: flex;
  flex-direction: row;  /* Align heart icons in a row */
  gap: 5px;  /* Space between heart icons */
}

/* Heart icon styling */
.heart-icon {
  width: 20px;
  height: 20px;
}

.gameText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-align: center;
  font-family: "Press Start 2P", system-ui;
  display: none;
}

#flapText {
  display: none;
}

#flapAgainButton {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#flapAgainButton:hover {
  background-color: #218838;
}

