Spaces:
Running
Running
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| --primary-color: #6366f1; | |
| --primary-dark: #4f46e5; | |
| --secondary-color: #22d3ee; | |
| --background: #0f172a; | |
| --surface: #1e293b; | |
| --surface-light: #334155; | |
| --text-primary: #f1f5f9; | |
| --text-secondary: #94a3b8; | |
| --accent: #f43f5e; | |
| --success: #10b981; | |
| --border-radius: 12px; | |
| --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| background: linear-gradient(135deg, var(--background) 0%, #1a1f3a 100%); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| line-height: 1.6; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 20px; | |
| } | |
| header { | |
| background: rgba(30, 41, 59, 0.8); | |
| backdrop-filter: blur(10px); | |
| border-bottom: 1px solid rgba(148, 163, 184, 0.1); | |
| padding: 2rem 0; | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| header h1 { | |
| font-size: 2rem; | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| margin-bottom: 0.5rem; | |
| } | |
| header p { | |
| color: var(--text-secondary); | |
| margin-bottom: 1rem; | |
| } | |
| .built-with { | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| font-size: 0.9rem; | |
| transition: var(--transition); | |
| display: inline-block; | |
| padding: 0.5rem 1rem; | |
| border: 1px solid var(--primary-color); | |
| border-radius: 20px; | |
| } | |
| .built-with:hover { | |
| background: var(--primary-color); | |
| color: white; | |
| transform: translateY(-2px); | |
| } | |
| main { | |
| padding: 3rem 0; | |
| } | |
| section { | |
| margin-bottom: 3rem; | |
| } | |
| .upload-area { | |
| background: var(--surface); | |
| border: 2px dashed var(--surface-light); | |
| border-radius: var(--border-radius); | |
| padding: 3rem; | |
| text-align: center; | |
| transition: var(--transition); | |
| cursor: pointer; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .upload-area:hover { | |
| border-color: var(--primary-color); | |
| background: rgba(99, 102, 241, 0.05); | |
| } | |
| .upload-area.dragover { | |
| border-color: var(--secondary-color); | |
| background: rgba(34, 211, 238, 0.05); | |
| transform: scale(1.02); | |
| } | |
| .upload-icon { | |
| width: 64px; | |
| height: 64px; | |
| margin: 0 auto 1.5rem; | |
| color: var(--primary-color); | |
| stroke-width: 2; | |
| } | |
| .upload-content h3 { | |
| color: var(--text-primary); | |
| margin-bottom: 0.5rem; | |
| font-size: 1.25rem; | |
| } | |
| .upload-content p { | |
| color: var(--text-secondary); | |
| font-size: 0.9rem; | |
| } | |
| .gallery-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); | |
| gap: 1rem; | |
| margin-top: 1.5rem; | |
| } | |
| .gallery-item { | |
| position: relative; | |
| aspect-ratio: 1; | |
| border-radius: var(--border-radius); | |
| overflow: hidden; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| border: 2px solid transparent; | |
| } | |
| .gallery-item:hover { | |
| transform: translateY(-4px); | |
| box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); | |
| } | |
| .gallery-item.selected { | |
| border-color: var(--primary-color); | |
| box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); | |
| } | |
| .gallery-item img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .gallery-item .remove-btn { | |
| position: absolute; | |
| top: 8px; | |
| right: 8px; | |
| background: rgba(244, 63, 94, 0.9); | |
| color: white; | |
| border: none; | |
| width: 24px; | |
| height: 24px; | |
| border-radius: 50%; | |
| cursor: pointer; | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| transition: var(--transition); | |
| } | |
| .gallery-item:hover .remove-btn { | |
| display: flex; | |
| } | |
| .gallery-item .remove-btn:hover { | |
| background: var(--accent); | |
| transform: scale(1.1); | |
| } | |
| .control-panel { | |
| background: var(--surface); | |
| border-radius: var(--border-radius); | |
| padding: 2rem; | |
| border: 1px solid rgba(148, 163, 184, 0.1); | |
| } | |
| .image-selector { | |
| display: grid; | |
| grid-template-columns: 1fr auto 1fr; | |
| gap: 2rem; | |
| align-items: center; | |
| margin-bottom: 2rem; | |
| } | |
| .arrow { | |
| font-size: 2rem; | |
| color: var(--primary-color); | |
| text-align: center; | |
| } | |
| .selector-group label { | |
| display: block; | |
| color: var(--text-secondary); | |
| margin-bottom: 0.5rem; | |
| font-size: 0.9rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .selected-image { | |
| background: var(--surface-light); | |
| border: 2px dashed rgba(148, 163, 184, 0.3); | |
| border-radius: var(--border-radius); | |
| aspect-ratio: 1; | |
| position: relative; | |
| cursor: pointer; | |
| overflow: hidden; | |
| transition: var(--transition); | |
| } | |
| .selected-image:hover { | |
| border-color: var(--primary-color); | |
| } | |
| .selected-image img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .selected-image .label { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| color: var(--text-secondary); | |
| text-align: center; | |
| pointer-events: none; | |
| } | |
| .selected-image img[src=""] + .label { | |
| display: block; | |
| } | |
| .selected-image img:not([src=""]) + .label { | |
| display: none; | |
| } | |
| .settings { | |
| display: grid; | |
| gap: 1.5rem; | |
| margin-bottom: 2rem; | |
| } | |
| .setting-item { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .setting-item label { | |
| color: var(--text-primary); | |
| font-weight: 500; | |
| } | |
| .slider-container { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .slider-container input[type="range"] { | |
| width: 200px; | |
| height: 6px; | |
| background: var(--surface-light); | |
| border-radius: 3px; | |
| outline: none; | |
| -webkit-appearance: none; | |
| } | |
| .slider-container input[type="range"]::-webkit-slider-thumb { | |
| -webkit-appearance: none; | |
| width: 20px; | |
| height: 20px; | |
| background: var(--primary-color); | |
| border-radius: 50%; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| } | |
| .slider-container input[type="range"]::-webkit-slider-thumb:hover { | |
| background: var(--primary-dark); | |
| transform: scale(1.2); | |
| } | |
| .slider-container .value { | |
| min-width: 60px; | |
| text-align: right; | |
| color: var(--secondary-color); | |
| font-weight: 600; | |
| } | |
| .generate-btn { | |
| width: 100%; | |
| padding: 1rem 2rem; | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| color: white; | |
| border: none; | |
| border-radius: var(--border-radius); | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .generate-btn:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4); | |
| } | |
| .generate-btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .generate-btn .spinner { | |
| display: inline-block; | |
| width: 20px; | |
| height: 20px; | |
| border: 3px solid rgba(255, 255, 255, 0.3); | |
| border-radius: 50%; | |
| border-top-color: white; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .result-viewer { | |
| background: var(--surface); | |
| border-radius: var(--border-radius); | |
| padding: 2rem; | |
| border: 1px solid rgba(148, 163, 184, 0.1); | |
| } | |
| .result-controls { | |
| display: flex; | |
| gap: 1rem; | |
| margin-bottom: 2rem; | |
| flex-wrap: wrap; | |
| } | |
| .control-btn { | |
| padding: 0.75rem 1.5rem; | |
| background: var(--surface-light); | |
| color: var(--text-primary); | |
| border: 1px solid rgba(148, 163, 184, 0.2); | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| font-weight: 500; | |
| } | |
| .control-btn:hover { | |
| background: var(--primary-color); | |
| transform: translateY(-2px); | |
| } | |
| .image-display { | |
| position: relative; | |
| background: var(--background); | |
| border-radius: var(--border-radius); | |
| overflow: hidden; | |
| margin-bottom: 1.5rem; | |
| } | |
| .image-display img { | |
| width: 100%; | |
| height: 400px; | |
| object-fit: contain; | |
| display: block; | |
| } | |
| .progress-bar { | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| height: 4px; | |
| background: rgba(0, 0, 0, 0.5); | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); | |
| width: 0; | |
| transition: width 0.3s ease; | |
| } | |
| .timeline { | |
| background: var(--background); | |
| border-radius: 8px; | |
| padding: 1rem; | |
| } | |
| .timeline-track { | |
| display: flex; | |
| gap: 0.5rem; | |
| overflow-x: auto; | |
| padding: 0.5rem 0; | |
| } | |
| .timeline-item { | |
| flex-shrink: 0; | |
| width: 80px; | |
| height: 80px; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| border: 2px solid transparent; | |
| } | |
| .timeline-item:hover { | |
| transform: scale(1.1); | |
| border-color: var(--secondary-color); | |
| } | |
| .timeline-item.active { | |
| border-color: var(--primary-color); | |
| box-shadow: 0 0 15px rgba(99, 102, 241, 0.5); | |
| } | |
| .timeline-item img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| footer { | |
| background: var(--surface); | |
| border-top: 1px solid rgba(148, 163, 184, 0.1); | |
| padding: 2rem 0; | |
| margin-top: 4rem; | |
| text-align: center; | |
| color: var(--text-secondary); | |
| } | |
| h2 { | |
| font-size: 1.5rem; | |
| margin-bottom: 1rem; | |
| color: var(--text-primary); | |
| } | |
| @media (max-width: 768px) { | |
| .image-selector { | |
| grid-template-columns: 1fr; | |
| gap: 1rem; | |
| } | |
| .arrow { | |
| transform: rotate(90deg); | |
| } | |
| .setting-item { | |
| flex-direction: column; | |
| align-items: stretch; | |
| gap: 0.5rem; | |
| } | |
| .slider-container { | |
| justify-content: space-between; | |
| } | |
| .slider-container input[type="range"] { | |
| flex: 1; | |
| } | |
| .result-controls { | |
| justify-content: center; | |
| } | |
| .timeline-track { | |
| justify-content: center; | |
| } | |
| } |