/* === ANIMAÇÕES === */

@keyframes pular {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-40px); }
  70%  { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

@keyframes andar-direita {
  from { transform: translateX(0); }
  to   { transform: translateX(120px); }
}

@keyframes andar-esquerda {
  from { transform: translateX(0); }
  to   { transform: translateX(-120px); }
}

@keyframes falar {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* === CLASSES DE ANIMAÇÃO === */

.pular {
  animation: pular 0.8s ease-out;
}

.andar-direita {
  animation: andar-direita 1.2s linear forwards;
}

.andar-esquerda {
  animation: andar-esquerda 1.2s linear forwards;
}

.falando {
  animation: falar 0.4s ease-in-out;
  filter: brightness(1.15);
}

/* === AJUSTES PARA TRANSIÇÕES === */

.objeto {
  transition: transform 0.3s ease;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #e6e6e6;
  color: #222;
}

/* TOPO */
#topo {
  background-color: #333;
  color: #fff;
  padding: 12px;
  text-align: center;
}

#topo h1 {
  margin: 0;
  font-size: 28px;
}

#topo h2 {
  margin: 4px 0 0 0;
  font-size: 16px;
  font-weight: normal;
}

/* PALCO */
#palco {
  position: relative;
  height: 300px;
  background-color: #8fda8f;
  border-bottom: 5px solid #444;
}

/* OBJETOS */
.objeto {
  position: absolute;
  bottom: 40px;
  width: 90px;
  text-align: center;
}

.nome-objeto {
  display: block;
  margin-top: 6px;
  font-weight: bold;
}

/* FORMAS */
.forma {
  margin: 0 auto;
}

.bola-forma {
  width: 60px;
  height: 60px;
  background-color: red;
  border-radius: 50%;
}

.lapis-forma {
  width: 20px;
  height: 90px;
  background-color: gold;
}

.copo-forma {
  width: 50px;
  height: 70px;
  border: 4px solid #555;
  background-color: transparent;
}

/* POSIÇÕES */
#bola { left: 15%; }
#lapis { left: 45%; }
#copo { left: 70%; }

/* DIÁLOGO */
#painel-dialogo {
  background-color: #ffffff;
  padding: 16px;
  min-height: 100px;
  border-top: 5px solid #444;
}

#fala-autor {
  font-weight: bold;
  margin-bottom: 8px;
}

#fala-texto {
  font-size: 18px;
  line-height: 1.4;
}

/* CONTROLES */
#painel-controle {
  background-color: #d2d2d2;
  padding: 12px;
  text-align: center;
}

#painel-controle button {
  padding: 8px 14px;
  font-size: 16px;
  margin: 0 6px;
  cursor: pointer;
}

/* RODAPÉ */
#rodape {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}