:root {
    --primary-color: #00f5ff;
    --accent-color: #ff00e5;
    --background-color: #0a0a12;
    --surface-color: #141422;
    --text-color: #ffffff;
    --neon-glow: 0 0 10px rgba(0, 245, 255, 0.5);
    --accent-glow: 0 0 15px rgba(255, 0, 229, 0.5);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.container {
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
}

.ai-text {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
    text-shadow: var(--accent-glow);
    position: relative;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-top: 1rem;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 245, 255, 0.15);
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

select, input[type="text"], textarea {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus, input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.2);
}

/* Add these new styles for Firefox select options */
select option {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 0.5rem;
}

/* Style for Firefox dropdown */
select {
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f5ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2rem;
}

.genre-option {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
}

.genre-option input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

.genre-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--neon-glow);
}

button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--background-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 245, 255, 0.5),
        0 0 40px rgba(255, 0, 229, 0.3);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.story-container {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

button[disabled] {
    animation: pulse 1.5s infinite;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

/* Selection styling */
::selection {
    background: var(--accent-color);
    color: var(--background-color);
}

.form-hint {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Add these new styles */
.app-layout {
    max-width: 800px;
    margin: 0 auto;
}

/* Story container styles */
#storyOutput {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#storyOutput.has-story {
    opacity: 1;
}

/* Responsive layout */
@media (min-width: 1200px) {
    .app-layout {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .form-container {
        position: sticky;
        top: 1rem;
        height: fit-content;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .story-container {
        margin-top: 0;
    }
}

/* Add some padding for mobile */
@media (max-width: 1199px) {
    .app-layout {
        padding: 0 1rem;
    }
    
    #storyOutput {
        margin-top: 2rem;
    }
}

/* Adjust textarea height */
textarea {
    height: 60px;
    resize: vertical;
}

/* Make the genre section more compact with grid layout */
.genre-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Sticky generate button */
.generate-button-wrapper {
    position: sticky;
    bottom: 1rem;
    background: linear-gradient(to top, var(--background-color) 80%, transparent);
    padding-top: 1rem;
    margin-top: 1rem;
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .app-layout {
        padding: 0 1rem;
    }
    
    /* Stack form elements in two columns on tablets */
    @media (min-width: 768px) {
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        
        .form-grid .form-group.full-width {
            grid-column: 1 / -1;
        }
    }
    
    /* Adjust button on mobile */
    .generate-button-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: var(--background-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Add padding to prevent content being hidden behind fixed button */
    body {
        padding-bottom: 120px;  /* Increased to account for footer + fixed button */
    }
}

/* Update the story container spacing */
.story-container {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Add these styles for the footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
} 