* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #f0f0f0;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.controls {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 1rem;
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.text-input-container {
    flex: 2;
}

.color-select-container {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #333;
    vertical-align: middle;
    border-radius: 3px;
}

.transparent-preview {
    background-image: linear-gradient(45deg, #555 25%, transparent 25%), 
                      linear-gradient(-45deg, #555 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #555 75%), 
                      linear-gradient(-45deg, transparent 75%, #555 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    background-color: #2c2c2c;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: #f0f0f0;
    font-size: 1rem;
}

.text-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#text-input {
    flex-grow: 1;
    padding-right: 120px; 
}

.alignment-controls {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    background-color: #2c2c2c;
    border-radius: 4px;
    padding: 2px;
}

.align-btn {
    background: none;
    border: none;
    color: #f0f0f0;
    margin: 0;
    padding: 4px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: background-color 0.2s;
}

.align-btn:hover {
    background-color: #444;
}

.align-btn.active {
    background-color: #5f33ff;
}

button {
    background-color: #5f33ff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

button:hover {
    background-color: #4926cc;
}

.preview-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

#neon-preview {
    background-color: rgba(0, 0, 0, 0.8);
    min-height: 200px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

#neon-text {
    font-size: 3rem;
    text-align: center;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.neon-blue {
    color: #fff;
    text-shadow: 
        0 0 5px #0ff,
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
}

.neon-red {
    color: #fff;
    text-shadow: 
        0 0 5px #f00,
        0 0 10px #f00,
        0 0 20px #f00,
        0 0 40px #f00,
        0 0 80px #f00;
}

.neon-green {
    color: #fff;
    text-shadow: 
        0 0 5px #0f0,
        0 0 10px #0f0,
        0 0 20px #0f0,
        0 0 40px #0f0,
        0 0 80px #0f0;
}

.neon-pink {
    color: #fff;
    text-shadow: 
        0 0 5px #f0f,
        0 0 10px #f0f,
        0 0 20px #f0f,
        0 0 40px #f0f,
        0 0 80px #f0f;
}

.neon-purple {
    color: #fff;
    text-shadow: 
        0 0 5px #93f,
        0 0 10px #93f,
        0 0 20px #93f,
        0 0 40px #93f,
        0 0 80px #93f;
}

.neon-yellow {
    color: #fff;
    text-shadow: 
        0 0 5px #ff0,
        0 0 10px #ff0,
        0 0 20px #ff0,
        0 0 40px #ff0,
        0 0 80px #ff0;
}

.neon-orange {
    color: #fff;
    text-shadow: 
        0 0 5px #f90,
        0 0 10px #f90,
        0 0 20px #f90,
        0 0 40px #f90,
        0 0 80px #f90;
}

.neon-cyan {
    color: #fff;
    text-shadow: 
        0 0 5px #0ff,
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
}

.effect-liquid {
    animation: liquidNeon 3s ease-in-out infinite;
    filter: blur(1px);
}

.effect-retro {
    color: #fff;
    text-shadow: 
        0 0 5px #ff00dd,
        0 0 10px #ff00dd,
        0 0 20px #ff8800,
        0 0 40px #ff8800;
    background: linear-gradient(to right, #ff00dd, #ff8800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px #ff00dd);
}

.effect-duotone {
    color: #fff;
    text-shadow: 
        -2px -2px 0 #0ff,
        2px 2px 0 #f0f,
        0 0 15px #0ff,
        0 0 30px #f0f;
}

.effect-worn {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.5),
        0 0 8px currentColor;
    animation: flicker 3s linear infinite;
}

.effect-animated {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes liquidNeon {
    0%, 100% {
        filter: blur(1px) brightness(1);
        text-shadow: 
            0 0 5px currentColor,
            0 0 15px currentColor,
            0 0 30px currentColor;
    }
    50% {
        filter: blur(2px) brightness(1.2);
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 60px currentColor;
    }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    41%, 44% { opacity: 0.8; }
    42%, 43% { opacity: 0.1; }
    45%, 48% { opacity: 0.9; }
    46%, 47% { opacity: 0.4; }
    49%, 52% { opacity: 1; }
    51%, 52% { opacity: 0.7; }
    85%, 87% { opacity: 0.9; }
    86% { opacity: 0.5; }
}

@keyframes glow {
    from {
        filter: brightness(0.5);
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor;
    }
    to {
        filter: brightness(1.2);
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 80px currentColor;
    }
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-oswald {
    font-family: 'Oswald', sans-serif;
}

.font-pacifico {
    font-family: 'Pacifico', cursive;
}

.font-bangers {
    font-family: 'Bangers', cursive;
}

.font-dancing-script {
    font-family: 'Dancing Script', cursive;
}

.font-permanent-marker {
    font-family: 'Permanent Marker', cursive;
}

.font-lobster {
    font-family: 'Lobster', cursive;
}

.font-times-new-roman {
    font-family: 'Times New Roman', serif;
}

.font-georgia {
    font-family: 'Georgia', serif;
}

.font-baskerville {
    font-family: 'Baskerville', serif;
}

.font-garamond {
    font-family: 'Garamond', serif;
}

.font-helvetica {
    font-family: 'Helvetica', sans-serif;
}

.font-futura {
    font-family: 'Futura', sans-serif;
}

.font-arial {
    font-family: 'Arial', sans-serif;
}

.font-proxima-nova {
    font-family: 'Proxima Nova', sans-serif;
}

.font-brush-script {
    font-family: 'Brush Script MT', cursive;
}

.font-playfair-display {
    font-family: 'Playfair Display', serif;
}

.font-bebas-neue {
    font-family: 'Bebas Neue', sans-serif;
}

.font-anton {
    font-family: 'Anton', sans-serif;
}

.font-courier-new {
    font-family: 'Courier New', monospace;
}

.font-roboto-mono {
    font-family: 'Roboto Mono', monospace;
}

.font-neon-tubes {
    font-family: 'Neon Tubes', cursive;
}

.font-billion-dreams {
    font-family: 'Billion Dreams', cursive;
}

.font-diploma-script {
    font-family: 'Diploma Script', cursive;
}

.font-edwardian-script {
    font-family: 'Edwardian Script ITC', 'Edwardian Script', cursive;
}

.font-great-vibes {
    font-family: 'Great Vibes', cursive;
}

.font-lucida-calligraphy {
    font-family: 'Lucida Calligraphy', cursive;
}

.font-palmer-script {
    font-family: 'Palmer Script', cursive;
}

.font-penmanship {
    font-family: 'Penmanship', cursive;
}

.font-script-mt-bold {
    font-family: 'Script MT Bold', cursive;
}

.font-snell-roundhand {
    font-family: 'Snell Roundhand', cursive;
}

.font-zapfino {
    font-family: 'Zapfino', cursive;
}

.ai-preview-container {
    display: none;
}

.ai-preview-container h3 {
    margin-bottom: 1rem;
}

#ai-preview {
    max-width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#ai-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.download-options {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.download-options h3 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

#loading {
    padding: 1rem;
    color: #f0f0f0;
    font-style: italic;
}

@media (max-width: 768px) {
    #neon-text {
        font-size: 2rem;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        margin: 0.5rem 0;
    }
}