@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: #71c5cf;
  font-family: "Press Start 2P", cursive;
  color: white;
  user-select: none;
  overflow: hidden;
}

.game-container {
  position: relative;
  width: 432px;
  margin: 0 auto;
  height: 100%;
  max-height: 100vh;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  padding: 15px 0;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
  background: url("./media/flappy-bird-set.png") 0% 340px;
  background-size: contain;
  background-repeat: no-repeat;
  height: 80px;
  line-height: 80px;
  text-indent: -9999px; /* cache le texte mais garde le logo */
}

.score-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  width: fit-content;
  margin: 0 auto;
}

.score {
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.score-label {
  font-size: 1.1rem;
  color: #ddd;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
