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

body {
  font-family: "Arial", sans-serif;
  overflow: hidden;
  /* Previne barras de rolagem caso elementos saiam da tela */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  margin: 0;
  background-size: cover;
  background-position: center;
}

#game-container {
  width: 600px;
  height: 400px;
  border: 5px solid #5a2d0b;
  /* Borda da tela de jogo */
  border-radius: 10px;
  margin: 20px auto;
  position: relative;
  /* Essencial para posicionar elementos filhos com 'absolute' */
  background-color: rgba(173, 216, 230, 0.7);
  /* Céu com alguma transparência */
  overflow: hidden;
  /* Garante que as frutas não saiam da caixa visivelmente */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cesta-frutas.costas {
  background-image: url("imgs/cesta.png");
  width: 99px;
  height: 106px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.cesta-frutas.frente {
  background-image: url("imgs/front.png");
  width: 99px;
  height: 106px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#placar-pontos {
  position: absolute;
  left: 10px;
  top: 15px;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
}

.tela-jogo {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.tela-jogo h1,
.tela-jogo h2 {
  margin-bottom: 10px;
}

.tela-jogo p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.tela-jogo button {
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.tela-jogo button:hover {
  background-color: #45a049;
}

.hidden {
  display: none;
}

.fruta {
  position: absolute;
  width: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 5;
  pointer-events: none;
}
