/* Reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: #020b22;
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* impede scroll */
    overscroll-behavior: none; /* evita bounce/overscroll em mobile */
}

/* Proteção adicional: evitar que qualquer elemento gere scroll */
* { max-width: 100vw; }

/* Fullscreen canvas */
#nebula {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
}

/* Center content */
.center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}


@keyframes starPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeText 3.5s ease-in-out infinite;
    pointer-events: none;
}

.subtitle {
    margin-top: 12vh; /* distância agradável a partir do topo da página (viewport) */
    align-self: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(.8rem, 2.2vw, 1rem);
    animation: fadeText 3.5s ease-in-out infinite;
    opacity: 0.9;
    pointer-events: none;
}

@keyframes fadeText {
    0%, 100% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }
}

footer {
    position: absolute;
    bottom: 0.6rem; /* mais próximo do fim da página */
    width: 100%;
    text-align: center;
    z-index: 2;
    color: rgba(255, 255, 255, 0.45);
    font-size: .9rem;
    pointer-events: none;
}

/* Optional: subtle overlay gradient to tint the nebula */
#nebula+.center::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 20%, rgba(42, 20, 95, 0.12), transparent 20%), radial-gradient(ellipse at 80% 80%, rgba(10, 70, 150, 0.08), transparent 15%);
}
