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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: #888;
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 2rem;
}

#promptInput {
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #444;
    background: #111;
    color: #fff;
    border-radius: 8px;
    width: 300px;
    outline: none;
    transition: border-color 0.3s;
}

#promptInput:focus {
    border-color: #00ff88;
}

#animateBtn {
    padding: 1rem 2rem;
    margin-left: 1rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#animateBtn:hover {
    transform: scale(1.05);
}

#animateBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gif-controls {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

#recordBtn, #downloadGifBtn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: bold;
}

#recordBtn:hover, #downloadGifBtn:hover {
    transform: scale(1.05);
}

#recordBtn:disabled, #downloadGifBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#recordBtn.recording {
    background: linear-gradient(45deg, #ff4444, #ff0000);
    animation: recording-pulse 1s infinite;
}

@keyframes recording-pulse {
    0%, 100% { 
        opacity: 0.8;
        box-shadow: 0 0 5px #ff4444;
    }
    50% { 
        opacity: 1.0;
        box-shadow: 0 0 15px #ff4444;
    }
}

.canvas-container {
    margin: 2rem 0;
}

#stickFigureCanvas {
    border: 2px solid #333;
    border-radius: 8px;
}

.status {
    padding: 1rem;
    border-radius: 8px;
    background: #111;
    border: 1px solid #333;
    transition: all 0.3s;
}

.status.loading {
    background: #1a3311;
    border-color: #00ff88;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1.0; }
}

.status.error {
    background: #331111;
    border-color: #ff4444;
    color: #ff6666;
}

.status.success {
    background: #113311;
    border-color: #44ff44;
    color: #66ff66;
}

/* Debug info styling */
.debug-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-radius: 4px;
    max-width: 300px;
    display: none;
}

.debug-info.show {
    display: block;
}