/* Astral theme: dark purple -> black background with scattered stars */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #e9e8ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base gradient (deep purple to black) */
body {
    background: linear-gradient(180deg, #180428 0%, #0b0012 60%, #000000 100%);
    background-attachment: fixed;
    text-align: center;
    font-size: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Starfield layer (repeating small dots to simulate scattered stars) */
/* Canvas-based starfield will be used for randomized stars. */

#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: block;
}

/* Subtle nebula / purple glows for an astral look */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(138,43,226,0.12), transparent 12%),
        radial-gradient(ellipse at 80% 70%, rgba(75,0,130,0.10), transparent 18%);
    mix-blend-mode: screen;
    opacity: 0.95;
}

/* Make sure page content sits above the background layers */
main, header, nav, footer, .container {
    position: relative;
    z-index: 1;
}

/* Twinkle animation lowers opacity occasionally to simulate subtle flicker */
@keyframes twinkle {
    0% { opacity: 0.98; }
    50% { opacity: 0.65; }
    100% { opacity: 0.98; }
}

/* Head / top bar styling */
head, header {
    text-align: center;
    color: #eae6ff;
    font-size: 20px;
    padding: 12px 10px;
    margin: 0 auto 18px auto;
}

/* Links: soft lilac with contrast on hover */
body a {
    color: #cdb4ff;
    text-decoration: none;
}
body a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Navigation: translucent panels that blend with background */
nav {
    background-color: rgba(255,255,255,0.04);
    color: #e6e1ff;
    padding: 10px 14px;
    text-align: center;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

nav a {
    text-decoration: none;
    color: #e6e1ff;
    padding: 6px 10px;
}
nav a:hover {
    color: #ffd6ff;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Small helpers for readability on dark backgrounds */
.card, .panel {
    background: rgba(0,0,0,0.45);
    border-radius: 10px;
    padding: 14px;
    color: #f2f0ff;
}

/* Ensure images and media don't create unexpected stacking issues */
img { max-width: 100%; height: auto; display: block; }

/* Small responsive tweak */
@media (max-width: 600px) {
    body { font-size: 18px; }
    nav { padding: 8px 10px; }
}

/* Content centering: keep main text in the middle 60% of the viewport */
.info {
    max-width: 60vw;
    min-width: 280px;
    margin: 0 auto 36px auto;
    padding: 6px 12px;
    text-align: center;
}

.info h1, .info h2, .info p {
    margin-left: 0;
    margin-right: 0;
}

/* Center images inside content and limit their width for visual balance */
.info img {
    display: block;
    margin: 14px auto;
    max-width: 80%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .info { max-width: 90vw; padding: 8px 10px; }
    .info img { max-width: 95%; }
}


