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

body {
    color: #e6e6e6;
    background-color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    --content-background: rgba(18, 18, 28, 0.2);
    background-color: blue !;
}

/* Starfield background placeholder */
#nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(72, 61, 139, 0.35), transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(184, 104, 238, 0.2), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-container {
    position: relative;
    z-index: 1;
    max-width: 68rem;
    margin-left: auto;
    margin-right: auto;
}

/* Header with site branding and navigation */
.page-header {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    background: rgba(10, 10, 18, 0.75);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(90, 140, 200, 0.25);
}

.branding {
    font-size: 1.5rem;
    font-weight: 500;
    color: #b4d9ff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 6px rgba(180, 217, 255, 0.4);
}

.branding a {
    color: #b4d9ff;
    text-decoration: none;
}

.branding a:hover {
    color: #61b8fa;
}

.page-title {
    font-size: 2.5rem;
    color: #d3e7ff;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.15rem;
    color: #c4c4d0;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    row-gap: 0.1rem;
    margin-top: 1rem;
}

nav a {
    color: #b4d9ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #61b8fa;
}

.name-banner {
    /* === YOUR VARIABLES (change these anywhere to retune the whole banner) === */
    --main-color: rgb(195, 217, 234);
    --secondary-color: rgb(113, 194, 221);
    --main-font-size: 62px;
    --secondary-font-size: 20px;
    --secondary-font-size: 1.1rem;
    --v-spacing: 0px;
    --h-offset: 3rem;
    --scale: 1.0; 

    /* Core layout */
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    height: fit-content;
    box-sizing: border-box;
    background: transparent;
    font-family: "ITC Zapf Chancery", "Zapf Chancery", "Apple Chancery", cursive;
    line-height: 1;
    padding: 0;

    text-shadow:
        2px 2px 4px #000,
        4px 4px 4px rgba(203, 233, 252, 0.8);
}

.name-banner .top-line {
    align-self: flex-start;         /* flush left */
    font-size: calc(var(--secondary-font-size) * var(--scale));
    color: var(--secondary-color);
}

.name-banner .main-line {
    align-self: center;             /* horizontally centered */
    font-size: calc(var(--main-font-size) * var(--scale));
    color: var(--main-color);
    white-space: nowrap;
    letter-spacing: 0.4px;
    padding: calc(var(--v-spacing) * var(--scale)) calc(var(--h-offset) * var(--scale));
}

.name-banner .bottom-line {
    align-self: flex-end;           /* flush right */
    font-size: calc(var(--secondary-font-size) * var(--scale));
    color: var(--secondary-color);
    margin-bottom: calc(var(--v-spacing) / 2);
}

/* Banner section - recreated header image */
/* .banner-section {
    background: var(--content-background);
    padding: 0.6rem;
    margin: 2rem auto;
    border-radius: 10px;
    border: 1px solid rgba(74, 168, 255, 0.3);
    backdrop-filter: blur(2px);
    text-align: center;
} */

.banner-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #9ad4ff;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Welcome banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(74, 168, 255, 0.25), rgba(154, 212, 255, 0.15));
    padding: 0.6rem 1rem 0 1rem;
    margin: 2rem auto;
    border-radius: 10px;
    border: 1px solid rgba(74, 168, 255, 0.4);
    text-align: center;
    backdrop-filter: blur(2px);
}

.welcome-banner h2 {
    font-size: 2rem;
    color: #d3e7ff;
}

/* Two-column grid for content */
.intro-card,
.section-content-grid {
    display: grid;
    align-items: baseline;
    background: var(--content-background);
    padding: 0.5rem 1rem 0.5rem 0rem;
    grid-template-columns: 230px 1fr;
    row-gap: 0.5rem;
    gap: 1rem;
    width: 100%;
}

/* Main content intro card */
.intro-card {
    align-items: flex-start;
    padding: 0;
    margin: 2rem auto;
    border-radius: 10px;
    border: 1px solid #1c1c28;
    backdrop-filter: blur(2px);
}


.intro-image {
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(74, 168, 255, 0.3);
}

.intro-links h3 {
    color: #d3e7ff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.intro-links ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro-links li {
    margin-bottom: 0.5rem;
}

.intro-links a {
    color: #61b8fa;
    text-decoration: none;
    transition: color 0.3s;
}

.intro-links a:hover {
    color: #9ad4ff;
}

/* Section containers */
.content-section {
    background: var(--content-background);
    margin: 1rem auto;
    border-radius: 10px;
    border: 1px solid #1c1c28;
    backdrop-filter: blur(2px);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, rgba(68, 85, 119, 0.9), rgba(68, 85, 119, 0.7));
    padding: 0.6rem 1rem 0 1rem;
    text-align: center;
    border-bottom: 2px solid rgba(74, 168, 255, 0.4);
}

.section-header h2 {
    color: #d3e7ff;
    font-size: 2rem;
}


.section-title {
    text-align: right;
    /* padding-right: 1rem; */
}

.section-title h3 {
    color: #9ad4ff;
    font-size: 1.1rem;
    font-weight: 600;
}

.section-text {
    color: #c0c0d0;
    line-height: 1.5;
}

.section-text p {
    margin-bottom: 1rem;
}

.section-text a {
    color: #61b8fa;
    text-decoration: none;
    transition: color 0.3s;
}

.section-text a:hover {
    color: #9ad4ff;
    text-decoration: underline;
}

.section-text blockquote {
    border-left: 3px solid rgba(74, 168, 255, 0.5);
    padding-left: 1.5rem;
    margin: 1rem 1rem;
    font-style: italic;
    color: #b0b0c0;
}

.section-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-text li {
    margin-bottom: 0.5rem;
}

/* Contact info grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: baseline;
    gap: 0.5rem 1rem;
    color: #c0c0d0;
}

.contact-info-grid div:nth-child(odd) {
    font-weight: 600;
    color: #9ad4ff;
}

.poll {
    display: flex;
    width: 100%;
    height: fit-content;
    flex-direction: column;
    align-items: center;
}
.poll iframe {
    padding: 0 0.5rem !important;
    font-size: 50%;
}
.poll iframe * {
    font-size: 50% !important;
}


/* old poll */
/* .poll * {
    line-height: normal;
    box-sizing: content-box;
}
.poll input[type="text"] {
    width: 20rem;
}
.poll input[type="submit"] {
    width: 8rem;
    margin-top: 1rem;
}
.poll a:link {
    text-decoration: underline;
    color: black;
}

.poll table {
    width: 30rem;
}
.poll tr td {
    padding-bottom: 0.2rem;
}
.poll td {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}
 */

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #888;
    font-size: 0.9rem;
}

footer .signature {
    font-size: 0.85rem;
    color: #8ea5bb;
    opacity: 0.85;
    margin-top: 0.5rem;
}

/* Responsive adjustments */

@media (max-width: 585px) {
    .name-banner  {
        --scale: 0.85;
    }
    #poll .section-content-grid {
        /* border: 1px solid white;
        background-color: blue;
        box-sizing: border-box;  */
        padding-right: 0.5rem;
    }
    #poll .section-content-grid .section-text {
        /* background-color: purple;
        border: 1px solid white; */
        overflow-x: auto;
    }
    .poll {
        /* transform: scale(0.9); */
        /* margin-top: -1.5rem; */
        /* display: none; */
    }
}

@media (max-width: 480px) {
    .name-banner {
        --scale: 0.70;
    }
    #poll .section-content-grid {
        /* border: 1px solid blue;
        background-color: darkgreen; */
        overflow-x: auto;
    }
    #poll .section-content-grid .section-text {
        /* background-color: purple;
        border: 1px solid white; */
        overflow-x: auto;
    }
    .poll {
        /* transform: scale(0.77); */
        /* margin-top: -3.5rem; */
    }
}
@media (max-width: 400px) {
    .name-banner {
        --scale: 0.65;
    }
    #poll .section-content-grid {
        /* border: 1px solid yellow;
        background-color: red; */
        overflow-x: auto;
    }
    .poll {
        /* transform: scale(0.68); */
        /* margin-top: -4rem; */
    }
}

@media (max-width: 370px) {
    .name-banner {
        --scale: 0.65;
    }
}

@media (max-width: 340px) {
    .name-banner {
        --scale: 0.55;
    }
}


@media (max-width: 767px) {
    .section-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 0.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        text-align: left;
        padding-right: 0;
    }
}

