/* style.css — lay-out do felicitação de aniversário */

:root {
  /* arco-íris: 7 cores, de cima para baixo */
  --rainbow: linear-gradient(
    to bottom,
    #ff0000 0%,
    #ff8800 14%,
    #ffe600 28%,
    #00cc00 43%,
    #1a66ff 57%,
    #6600cc 71%,
    #ffffff 100%
  );
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Fredoka", "Baloo 2", "Chango", "Comic Sans MS", "Segoe UI", sans-serif;
  color: #ffffff;
  overflow: hidden;
  letter-spacing: .01em;
}

main {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--rainbow);
}

.title {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 6rem);
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #fff 0%, #ffe600 25%, #fff 50%, #1a66ff 75%, #ffe600 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineTitle 4s linear infinite;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

@keyframes shineTitle {
  to {
    background-position: 200% center;
  }
}

.sub {
  margin: 1.25rem 0 0;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, #ffffff 0%, #ffe600 50%, #ffffff 100%);
  background-size: 200% center;
  animation: shineTitle 3s linear infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
/* camada que segura confete + balões, sem atrapalhar o texto */
#celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
