@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Montserrat:wght@300;400&display=swap');

body { 
    margin: 0; 
    overflow: hidden; 
    background-color: #000000; 
    font-family: 'Montserrat', sans-serif; 
}

#canvas-container { 
    width: 100vw; 
    height: 100vh; 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 1; 
}

/* UI Overlay - Minimalist */
#ui-layer {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 10; 
    pointer-events: none;
    /* Removed flex centering to allow absolute positioning of children */
    display: block; 
    padding: 0;
    box-sizing: border-box;
}

/* Typography - Centerpiece */
h1 { 
    color: #f0f8ff; 
    font-size: 72px; /* Larger title */
    margin: 0; 
    font-weight: 400; 
    letter-spacing: 12px; 
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(200, 230, 255, 0.2); 
    background: linear-gradient(to bottom, #ffffff 30%, #aaccff 100%);
    background-clip: text; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    font-family: 'Cinzel Decorative', cursive; /* More decorative font */
    opacity: 0.95;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    from { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4); 
    }
    to { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 0 0 60px rgba(100, 200, 255, 0.4); 
    }
}

/* Name Input Button - Style to match upload button */
.name-input-wrapper {
    display: block;
    margin: 0 0 15px 0; /* Space below the input */
    max-width: 280px; /* Limit the width */
}

.name-input-btn {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #e0f7fa; 
    padding: 8px 15px; 
    cursor: pointer; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border-radius: 30px; /* Rounded pill shape */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.name-input-btn span {
    flex: 0 0 auto;
    margin-right: 10px;
    white-space: nowrap;
}

.name-input-btn input {
    flex: 1;
    background: transparent;
    color: #e0f7fa;
    border: none;
    outline: none;
    padding: 5px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    min-width: 0;
}

.name-input-btn input::placeholder {
    color: rgba(224, 247, 250, 0.6);
}

.name-input-btn:hover { 
    background: rgba(255, 255, 255, 0.15); 
    color: #ffffff; 
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Upload Button - Modern & Glassmorphism */
.upload-wrapper {
    margin-top: 40px; /* More separation */
    pointer-events: auto;
    text-align: center;
    transition: opacity 0.5s ease;
}

.upload-btn {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #e0f7fa; 
    padding: 14px 36px; 
    cursor: pointer; 
    text-transform: uppercase; 
    letter-spacing: 4px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    backdrop-filter: blur(10px);
    border-radius: 30px; /* Rounded pill shape */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.upload-btn:hover { 
    background: rgba(255, 255, 255, 0.15); 
    color: #ffffff; 
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.hint-text {
    color: rgba(200, 230, 255, 0.6);
    font-size: 10px;
    margin-top: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Montserrat', sans-serif;
}

/* Status UI - Floating Tag */
#status-indicator {
    position: absolute; 
    top: 30px; 
    right: 30px;
    color: #e0f7fa; 
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; 
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(0, 20, 40, 0.4);
    padding: 8px 20px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    pointer-events: none; 
    z-index: 20;
    transition: all 0.3s;
}

/* Debug console */
#debug-console {
    position: absolute; 
    bottom: 10px; 
    left: 10px;
    color: #0f0; 
    background: rgba(0,0,0,0.7);
    padding: 10px; 
    font-family: monospace; 
    font-size: 12px;
    pointer-events: none; 
    z-index: 200;
    max-width: 300px;
    display: none; /* Hidden by default */
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #e0f7fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #e0f7fa;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
}

/* UI Hidden Class */
.ui-hidden {
    opacity: 0 !important;
}