@import url("https://fonts.googleapis.com/css2?family=Peralta&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Peralta", serif;
}

body {
  background-image: url("background.jpg");
  background-size: cover; /* Cover the entire page */
  background-repeat: no-repeat; /* Prevent tiling */
  background-position: center; /* Center the image */
  height: 100vh; /* Ensure full viewport height */
  width: 100%;
  overflow: hidden;
}

.small-screen {
  display: none;
  background-color: #acff42;
  color: #000;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9999;
}

@media (max-width: 768px) {
  .small-screen {
    display: block;
  }
}

.start-game,
.game-over {
  display: none;
}

.scoreboard {
  position: absolute;
  top: 12px;
  right: 12px;
  text-align: right;
}

.lives {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  color: #f00;
}

h1 {
  font-size: 4rem;
}

h3 span {
  font-size: 2rem;
  color: #ffffff;
}

button {
  margin-block: 24px;
  width: 200px;
  background: turquoise;
  border: none;
  padding-block: 12px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
button:hover {
  transform: scale(1.3);
}

.bubble {
  position: absolute;
  bottom: -150px;
  height: 150px;
  width: 150px;
  font-size: 4em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: move 5s linear;
}
@keyframes move {
  100% {
    bottom: 100%;
  }
}

.pop {
  transform: scale(250%);
  opacity: 0;
  transition: all 0.8s ease;
}

.popup {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  transform: scale(0);
  transition: all 0.3s linear;
}

.visible {
  transform: scale(1);
}
