/* General Styles */
body {
  display: flex;
  justify-content: center;
  height: 100vh;
  background-color: #70c5ce;
  margin: 0;
  font-family: 'Arial', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  /* For Safari */
  overflow: hidden;
}

/* Game Container */
#game-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 450px;
  /* Limit max width for larger screens */
}

/* Game Screen */
#game {
  position: relative;
  width: 100%;
  height: 70vh;
  /* Adjust height for responsiveness */
  background-color: #aaddff;
  overflow: hidden;
  border: 3px solid #333;
  border-radius: 10px;
  top: 10%;
}

/* UI Elements */
#ui {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 5px;
}

/* Simple Roblox-like Geometric Face */
#bird {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: #ffcc00;
  border-radius: 10px;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Eyes */
#left-eye,
#right-eye {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: black;
  border-radius: 50%;
  top: 12px;
}

#left-eye {
  left: 10px;
}

#right-eye {
  right: 10px;
}

/* Simple Smile */
#smile {
  position: absolute;
  bottom: 10px;
  width: 20px;
  height: 4px;
  background-color: black;
  border-radius: 2px;
}

/* Pipe - Roblox-like Blocky Style */
.pipe {
  position: absolute;
  width: 60px;
  /* Wider pipes to match the geometric aesthetic */
  background-color: #4caf50;
  /* Bright green color */
  border-radius: 10px;
  /* Rounded corners for a soft, friendly feel */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  /* Light shadow for depth */
  border: 1px solid #439a46;
}

/* Upper Pipe */
.pipe-upper {
  top: -1px;
  bottom: auto;
  border-radius: 0 0 10px 10px;
}

.pipe-upper::before {
  content: '';
  position: absolute;
  top: -10px;
  /* Position above the pipe */
  left: 0;
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(135deg, #4caf50 0, #4caf50 4px, transparent 4px, transparent 8px);
  /* Rough chain-saw like pattern */
}

/* Lower Pipe */
.pipe-lower {
  bottom: -1px;
  top: auto;
  border-radius: 10px 10px 0 0;
}

.pipe-lower::after {
  content: '';
  position: absolute;
  bottom: -10px;
  /* Position below the pipe */
  left: 0;
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(45deg, #4caf50 0, #4caf50 4px, transparent 4px, transparent 8px);
  /* Rough chain-saw like pattern */
}

/* Game Over Screen */
#game-over-screen {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  position: fixed;
  top: 25%;
  width: 80%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Input Field */
.game-input {
  display: block;
  width: 50%;
  margin: 10px auto;
  padding: 8px;
  font-size: 16px;
  background: #222;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 5px;
}

input.game-input:focus {
  outline: none;
}

/* Player Input */
div#player-input {
  display: none;
}

/* Game Buttons */
.game-button {
  display: block;
  margin: 10px auto;
  padding: 5px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  background-color: bisque;
  cursor: pointer;
}

.game-button:hover {
  background-color: #e0c7a3;
}

/* Score card */
#final-score {
  font-size: 22px;
  font-weight: bold;
  color: white;
  padding: 10px;
  margin: 10px auto;
  text-align: center;
  border-radius: 10px;
  width: 80%;
}

#scorecard ul {
  list-style: none;
  /* Remove bullet points */
  padding: 0;
}

#scorecard li {
  padding: 5px 0;
  font-size: 16px;
  font-family: monospace;
}

/* Responsive Design */
@media (max-width: 768px) {

  /* Game Screen */
  #game {
    width: 95%;
    height: 75vh;
    top: 10px;
  }

  /* Bird */
  #bird {
    width: 40px;
    height: 40px;
  }

  #left-eye,
  #right-eye {
    width: 6px;
    height: 6px;
  }

  #smile {
    width: 16px;
  }

  /* Game Over Screen */
  #game-over-screen {
    width: 85%;
    max-width: 320px;
  }

  .game-input {
    width: 70%;
  }

  .game-button {
    font-size: 16px;
  }
}

/* Extra Small Screens (like phones) */
@media (max-width: 480px) {

  /* Game Screen */
  #game {
    width: 95%;
    height: 75vh;
    top: 10px;
  }

  /* Bird */
  #bird {
    width: 35px;
    height: 35px;
  }

  #left-eye,
  #right-eye {
    width: 5px;
    height: 5px;
  }

  #smile {
    width: 14px;
  }

  /* Game Over Screen */
  #game-over-screen {
    width: 90%;
    max-width: 300px;
  }

  .game-input {
    width: 80%;
  }

  .game-button {
    font-size: 14px;
  }
}


/* Banner styles */
.banner {
  position: absolute;
  font-size: 6em;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.1);
  /* Light color for watermark effect */
  white-space: nowrap;
  pointer-events: none;
  /* Prevent interaction with the banner */
  z-index: -100;
  /* Place it behind all content */
  transform: translate(-50%, -50%) rotate(-45deg);
  /* Tilt the text */
  display: none;
}