/* Reset básico */
body {
  margin: 0;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background: radial-gradient(#000, #020024); /* Fundo de céu escuro */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Mensagem inicial */
#message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.fade-in-out {
  animation: fadeInOut 6s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  20% { opacity: 1; transform: translate(-50%, -50%); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -40%); }
}

/* Canvas ocupa a tela inteira */
canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Tooltip (balão de mensagem) */
.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  display: none;
  z-index: 10;
}

/* Player de áudio com tema de céu estrelado */
#audio-player {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 90%; /* Largura responsiva */
  max-width: 300px; /* Largura máxima */
  z-index: 1000;
  background: linear-gradient(135deg, #0d1b2a, #1b263b); /* Gradiente azul escuro */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Borda sutil */
  border-radius: 12px; /* Cantos arredondados */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Sombra suave */
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px; /* Espaçamento entre os elementos */
}

#audio-player audio {
  width: 100%; /* O áudio ocupa toda a largura do container */
  border-radius: 8px; /* Bordas arredondadas */
  outline: none;
}

#audio-player .icon {
  width: 24px; /* Ícone menor */
  height: 24px;
  background: radial-gradient(circle, #1b263b, #415a77); /* Ícone com tema de estrela */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3); /* Sombra brilhante */
}

#audio-player .icon img {
  width: 16px; /* Tamanho reduzido do ícone */
  height: 16px;
}

#audio-player p {
  margin: 0;
  color: #ffffff;
  font-size: 12px; /* Texto menor */
  font-weight: bold;
  text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
  #audio-player {
    bottom: 10px;
    left: 10px;
    width: 95%; /* Largura maior para telas menores */
    max-width: none; /* Remove limite de largura */
  }

  #audio-player .icon {
    width: 20px; /* Ícone menor */
    height: 20px;
  }

  #audio-player .icon img {
    width: 14px; /* Ícone reduzido */
    height: 14px;
  }
}

@media (max-width: 480px) {
  #audio-player {
    padding: 6px; /* Reduz o espaçamento interno */
  }

  #audio-player audio {
    border-radius: 6px; /* Ajusta as bordas */
  }

  #message {
    font-size: 16px; /* Texto menor para mensagens */
    padding: 8px;
  }
}





.custom-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1b263b, #415a77); /* Gradiente azul */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.custom-button:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #415a77, #1b263b); /* Gradiente invertido */
}

.custom-button:active {
  transform: scale(1);
}







.bodySegundaPagina {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: radial-gradient(#000, #020024); /* Fundo de céu escuro */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.bodySegundaPagina h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.bodySegundaPagina #audio-player {
  margin-top: 20px;
  text-align: center;
}

.bodySegundaPagina #audio-player audio {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


.cartaoMensagem {
  background: rgba(255, 255, 255, 0.1); /* Fundo translúcido */
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  max-width: 500px;
  text-align: center;
  backdrop-filter: blur(8px); /* Efeito de desfoque atrás do cartão */
  margin-top: 20px;
}

.mensagemBonita {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
}
