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

body,
html {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  background: black;
  color: white;
  position: relative;
}

/* Fundo estrelado */
.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://raw.githubusercontent.com/KevinAlt/particles-bg/main/star-bg.png') repeat;
  background-size: contain;
  animation: starsMove 60s linear infinite;
  z-index: 0;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -1000px 1000px;
  }
}

/* Tela inicial */
.tela-inicial {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  animation: fadeIn 1.5s ease;
}

.frase-inicial {
  font-size: 1.6rem;
  color: #facc15;
  white-space: nowrap;
  overflow: hidden;
  transition: none;
}

.linha1 {
  animation: typing 3s steps(30, end) forwards;
}

.linha2 {
  animation: typing 3s steps(40, end) forwards;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.msgAleatoria {
  max-width: 300px; 
  white-space: break-spaces;
}

.toque {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #fff;
  animation: pulse 2s infinite;
  cursor: pointer;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cartao {
  position: relative;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  background: linear-gradient(160deg, #0f0f0f, #1e1e1e);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

.conteudo-cartao {
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  padding: 2rem;
  max-width: 90%;
  width: 360px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conteudo-cartao h1 {
  font-size: 1.5rem;
  color: #e11d48;
  margin-bottom: 1rem;
}

.conteudo-cartao p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.assinatura {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1.5rem;
}

.hidden {
  display: none;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.galeria img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}