/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #020617, #000);
    color: white;
    text-align: center;
}


/* ===== STAR BACKGROUND ===== */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    background: radial-gradient(circle at center, #050816 0%, #000 70%);
}


/* ===== LAYOUT ===== */
.container {
    padding: 40px 20px;
}

/* ===== HEADINGS ===== */
h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 30px;
}

.input-section {
    display: flex;
    justify-content: center;
    padding: 15px;
    margin-bottom: 25px;
}

/* Form alignment */
.input-section form {
    display: flex;
    gap: 10px;
}

/* Input styling */
input {
    padding: 12px;
    width: 250px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    outline: none;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 16px;
}

input::placeholder {
    color: #aaa;
}

/* ===== BUTTONS ===== */
button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover glow */
button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Disabled button */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== FRAME (FIXED SIZE) ===== */
.frame {
    margin: 20px auto;
    padding: 20px;

    width: 982.08px;
    height: 231.2px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    /* NASA-style glow */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 10px 40px rgba(0,0,0,0.8),
        0 0 40px rgba(0, 150, 255, 0.1);
}

/* ===== CANVAS ===== */
canvas {
    display: block;
    border-radius: 10px;

    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

/* Fade-in */
canvas.show {
    opacity: 1;
    transform: scale(1);
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #00c853, #64dd17);
}

/* ===== LOADER ===== */
.loader {
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #00d2ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

/* @keyframes spin {
    100% { transform: rotate(360deg); }
} */
.footer {
    margin-top: 40px;
    padding: 15px;

    font-size: 20px;
    color: #aaa;

    text-align: center;

    opacity: 0.8;
}
