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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
p {
  margin-top: px;
  margin-bottom: 30px;
}



body {
  background-image: url("https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcDM0YTdsdm9lZjdhbGFpYnB3dmN1Nno4NDFsY3llYzJzM2hkcWN2cCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FlodpfQUBSp20/giphy.gif");
  background-repeat: repeat;
  background-size: 400px;
  background-position: center;
  text-align: center;

}

#jabuti {
  text-align: center;
  font-family: "Jacquard 12", system-ui;
  font-style: normal;
  font-size: 70px;
  color: #c8f2ad;
  line-height: 1.2;
  position: relative;
  
}  

::selection {
  background-color: #fc90b7;
  color: #000000;
}

::-moz-selection {
  background-color: #fc90b7;
  color: #000000;
}

#container-jabuti {
  position: absolute;
  width: 340px;
  height: 340px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border: 0px solid #c8f2ad;
  
}  

/* ===============================
   container das massinhas
================================ */

body {
  position: relative;      
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.container {
  position: absolute;     
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;

}

.container-menu-index {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
}

.container-menu-index .botao-imagem {
  pointer-events: auto; 
}


/* fallback para navegadores antigos que não suportam dvh */
@supports not (height: 100dvh) {
  .container-menu-index {
    height: 100vh;
  }
}



/* ===============================
   PENSAMENTO-NUVEM
================================ */
.pensamento-nuvem {
  position: absolute;
  width: 130px;
  height: 160px;
  left: 0;
  top: 140px;
}

.nuvem-imagem {
  position: absolute;
  width: 130px;
  height: auto;
  pointer-events: none;
}

#ultimo-pensamento {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 200px;
  height: 500px;

  box-sizing: border-box;
  padding: 4px;

  overflow-y: auto;
  overflow-x: hidden;

  text-align: left;
  font-family: "Victor Mono", monospace;
  font-style: normal;
  font-size: 9px;
  line-height: 1.6;
  color: #ffffff;

  overflow-wrap: break-word;
  z-index: 2;
  pointer-events: auto;
  cursor: text;


}

#ultimo-pensamento img {
  max-width: 80px;
  height: auto;
}

.ultima-data {
    font-size: 9px;
    margin-bottom: 5px;
}

/* ===============================
   BOTÃO BASE (o link é o alvo)
================================ */
.botao-imagem {
  position: absolute;
  z-index: 100;

  --tx: 0px;
  --ty: 0px;
  --rot: 5deg;

  --float-x: 0px;
  --float-y: 0px;

  transform:
    translate(
      calc(var(--tx) + var(--float-x)),
      calc(var(--ty) + var(--float-y))
    )
    rotate(var(--rot));

  transform-origin: center center;

  user-select: none;
  touch-action: none;
  cursor: grab;
  pointer-events: auto;
  text-decoration: none;
}

.botao-imagem.arrastando {
  cursor: grabbing;
}

.botao-imagem img {
  width: 240px;
  height: auto;
  display: block;
  max-width: none;
  pointer-events: none;
  transition: filter 0s ease;
}

/* ===============================
   DROP SHADOW no hover/drag
================================ */
.botao-imagem:hover img,
.botao-imagem.arrastando img {
  filter: drop-shadow(0 0 18px #fc90b7);
}

/* Garante que o hover funciona mesmo com z-index */
.botao-imagem:hover {
  z-index: 1000;
}

/* ===============================
   ROTAÇÕES INICIAIS
================================ */
.botao-imagem.aves        { --rot: -42deg;   }
.botao-imagem.musica      { --rot: -18deg; }
.botao-imagem.galeria     { --rot: 8deg;    }
.botao-imagem.pensamentos { --rot: 12deg;  }
.botao-imagem.mensagens   { --rot: -6deg;  }
.botao-imagem.arte        { --rot: 6deg;   }

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 768px) {
  .botao-imagem img {
    width: 220px;
    min-width: 120px;
  }
  #ultimo-pensamento {

  width: 150px;


}
  
  
}

@media (max-width: 480px) {
  .botao-imagem img {
    width: 120px;
  }
}