* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

/* Initial page */

.pagina-inicial {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  color: black;
}

.inicio {
  width: 100%;
  padding: 20px;
  text-align: center;
}

.inicio h1 {
  margin-bottom: 35px;
  font-size: 22px;
  font-weight: normal;
}

#botao-surpresa {
  padding: 12px 25px;
  border: 1px solid #555;
  background: #ddd;
  color: black;
  font-size: 16px;
  cursor: pointer;
}

#botao-surpresa:hover {
  background: #bbb;
}

/* Confirmation button */

.botao-confirmacao {
  display: none;
  margin: 25px auto 0;
  padding: 20px 35px;
  border: 4px solid #ff4ecd;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff208d, #7c4dff);
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 0 #4c2799, 0 12px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.botao-confirmacao.mostrar-confirmacao {
  display: block;
  animation: aparecerBotao 0.7s ease-out;
}

.botao-confirmacao:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 13px 0 #4c2799, 0 18px 30px rgba(0, 0, 0, 0.35);
}

.botao-confirmacao:active {
  transform: translateY(3px) scale(1.02);
  box-shadow: 0 5px 0 #4c2799, 0 8px 15px rgba(0, 0, 0, 0.25);
}

/* Birthday page */

.pagina-parabens {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px 15px;
  background: linear-gradient(135deg, #ff4ecd, #7c4dff, #22d3ee);
  background-size: 300% 300%;
  animation: fundoAnimado 8s ease infinite;
}

.mensagem {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  padding: 35px 25px;
  border: 5px solid white;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: aparecer 1.2s ease-out;
}

.brilho {
  font-size: 38px;
  animation: saltar 1s infinite alternate;
}

.mensagem h1 {
  margin: 10px 0;
  color: #ff208d;
  font-size: clamp(48px, 12vw, 100px);
  line-height: 1;
  text-shadow: 4px 4px 0 #ffd43b;
  animation: pulsar 1s infinite alternate;
}

.mensagem h2 {
  margin: 20px 0;
  color: #632cff;
  font-size: clamp(22px, 5vw, 38px);
}

.gif-aniversario {
  display: block;
  width: min(330px, 90%);
  height: auto;
  margin: 25px auto;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mensagem p {
  max-width: 580px;
  margin: 25px auto;
  color: #333;
  font-size: 20px;
  line-height: 1.5;
}

.emoji-final {
  font-size: 42px;
  letter-spacing: 8px;
  animation: saltar 0.8s infinite alternate;
}

/* Confetti */

#confetes {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.confete {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 22px;
  opacity: 0.9;
  animation: cair linear infinite;
}

/* Animations */

@keyframes cair {
  0% {
    transform: translateY(-40px) rotate(0deg);
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
  }
}

@keyframes fundoAnimado {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes aparecerBotao {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes pulsar {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes saltar {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-12px);
  }
}

/* Small screens */

@media (max-height: 700px) {
  .pagina-parabens {
    align-items: flex-start;
  }

  .mensagem {
    margin: 30px 0;
  }
}