upload.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. /* * { margin: 0; padding: 0; box-sizing: border-box; } */
  2. .video-generator {
  3. font-family: 'Inter', 'Segoe UI', sans-serif;
  4. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  5. min-height: 100vh;
  6. overflow-x: hidden;
  7. position: relative;
  8. }
  9. .video-generator::before {
  10. content: '';
  11. position: absolute;
  12. width: 500px;
  13. height: 500px;
  14. background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  15. border-radius: 50%;
  16. top: -200px;
  17. right: -200px;
  18. animation: float 20s ease-in-out infinite;
  19. }
  20. .video-generator::after {
  21. content: '';
  22. position: absolute;
  23. width: 400px;
  24. height: 400px;
  25. background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  26. border-radius: 50%;
  27. bottom: -150px;
  28. left: -150px;
  29. animation: float 15s ease-in-out infinite reverse;
  30. }
  31. @keyframes float {
  32. 0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33. 33% { transform: translate(30px, -30px) rotate(5deg); }
  34. 66% { transform: translate(-20px, 20px) rotate(-5deg); }
  35. }
  36. .container {
  37. position: relative;
  38. z-index: 1;
  39. }
  40. .hero-section {
  41. text-align: center;
  42. padding: 60px 20px 40px;
  43. animation: fadeInDown 0.8s ease-out;
  44. }
  45. @keyframes fadeInDown {
  46. from {
  47. opacity: 0;
  48. transform: translateY(-30px);
  49. }
  50. to {
  51. opacity: 1;
  52. transform: translateY(0);
  53. }
  54. }
  55. .hero-title {
  56. font-size: 3.5rem;
  57. font-weight: 800;
  58. background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  59. -webkit-background-clip: text;
  60. -webkit-text-fill-color: transparent;
  61. background-clip: text;
  62. margin-bottom: 15px;
  63. letter-spacing: -1px;
  64. }
  65. .hero-subtitle {
  66. color: rgba(255,255,255,0.9);
  67. font-size: 1.2rem;
  68. font-weight: 300;
  69. max-width: 600px;
  70. margin: 0 auto;
  71. }
  72. .upload-container {
  73. display: flex;
  74. justify-content: center;
  75. gap: 40px;
  76. margin: 50px auto;
  77. flex-wrap: wrap;
  78. animation: fadeInUp 0.8s ease-out 0.2s both;
  79. }
  80. @keyframes fadeInUp {
  81. from {
  82. opacity: 0;
  83. transform: translateY(30px);
  84. }
  85. to {
  86. opacity: 1;
  87. transform: translateY(0);
  88. }
  89. }
  90. .upload-card {
  91. background: rgba(255, 255, 255, 0.1);
  92. backdrop-filter: blur(20px);
  93. border: 2px solid rgba(255, 255, 255, 0.2);
  94. border-radius: 24px;
  95. width: 280px;
  96. height: 320px;
  97. position: relative;
  98. cursor: pointer;
  99. transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  100. overflow: hidden;
  101. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  102. }
  103. .upload-card::before {
  104. content: '';
  105. position: absolute;
  106. top: 0;
  107. left: 0;
  108. right: 0;
  109. bottom: 0;
  110. background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  111. opacity: 0;
  112. transition: opacity 0.4s ease;
  113. }
  114. .upload-card:hover {
  115. transform: translateY(-10px) scale(1.02);
  116. border-color: rgba(255, 255, 255, 0.4);
  117. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  118. }
  119. .upload-card:hover::before {
  120. opacity: 1;
  121. }
  122. .upload-card.active {
  123. border-color: rgba(255, 255, 255, 0.6);
  124. background: rgba(255, 255, 255, 0.15);
  125. }
  126. .upload-content {
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. justify-content: center;
  131. height: 100%;
  132. padding: 20px;
  133. position: relative;
  134. z-index: 2;
  135. }
  136. .upload-icon {
  137. font-size: 64px;
  138. margin-bottom: 20px;
  139. animation: pulse 2s ease-in-out infinite;
  140. filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  141. }
  142. @keyframes pulse {
  143. 0%, 100% { transform: scale(1); }
  144. 50% { transform: scale(1.05); }
  145. }
  146. .upload-label {
  147. color: white;
  148. font-size: 1.4rem;
  149. font-weight: 600;
  150. margin-bottom: 10px;
  151. text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  152. }
  153. .upload-hint {
  154. color: rgba(255,255,255,0.7);
  155. font-size: 0.9rem;
  156. text-align: center;
  157. }
  158. input[type="file"] {
  159. position: absolute;
  160. width: 100%;
  161. height: 100%;
  162. opacity: 0;
  163. cursor: pointer;
  164. top: 0;
  165. left: 0;
  166. z-index: 3;
  167. }
  168. .preview-container {
  169. display: none;
  170. flex-direction: column;
  171. align-items: center;
  172. justify-content: center;
  173. height: 100%;
  174. animation: zoomIn 0.4s ease-out;
  175. }
  176. @keyframes zoomIn {
  177. from {
  178. opacity: 0;
  179. transform: scale(0.8);
  180. }
  181. to {
  182. opacity: 1;
  183. transform: scale(1);
  184. }
  185. }
  186. .preview-container.show {
  187. display: flex;
  188. }
  189. .preview-img {
  190. width: 200px;
  191. height: 200px;
  192. object-fit: cover;
  193. border-radius: 16px;
  194. border: 3px solid rgba(255,255,255,0.3);
  195. box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  196. margin-bottom: 15px;
  197. }
  198. .file-name {
  199. color: white;
  200. font-size: 0.85rem;
  201. max-width: 90%;
  202. overflow: hidden;
  203. text-overflow: ellipsis;
  204. white-space: nowrap;
  205. text-align: center;
  206. background: rgba(0,0,0,0.3);
  207. padding: 8px 16px;
  208. border-radius: 20px;
  209. backdrop-filter: blur(10px);
  210. }
  211. .arrow-container {
  212. animation: fadeInUp 0.8s ease-out 0.4s both;
  213. display: flex;
  214. align-items: center;
  215. justify-content: center;
  216. margin: 0 20px;
  217. }
  218. .arrow {
  219. font-size: 3rem;
  220. color: rgba(255,255,255,0.6);
  221. animation: slideRight 1.5s ease-in-out infinite;
  222. }
  223. @keyframes slideRight {
  224. 0%, 100% { transform: translateX(0); }
  225. 50% { transform: translateX(10px); }
  226. }
  227. .action-section {
  228. text-align: center;
  229. animation: fadeInUp 0.8s ease-out 0.6s both;
  230. }
  231. .generate-btn {
  232. background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  233. border: none;
  234. color: white;
  235. font-size: 1.3rem;
  236. font-weight: 700;
  237. padding: 18px 60px;
  238. border-radius: 50px;
  239. cursor: pointer;
  240. transition: all 0.3s ease;
  241. box-shadow: 0 10px 40px rgba(245, 87, 108, 0.4);
  242. position: relative;
  243. overflow: hidden;
  244. }
  245. .generate-btn::before {
  246. content: '';
  247. position: absolute;
  248. top: 0;
  249. left: -100%;
  250. width: 100%;
  251. height: 100%;
  252. background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  253. transition: left 0.5s ease;
  254. }
  255. .generate-btn:hover:not(:disabled) {
  256. transform: translateY(-3px);
  257. box-shadow: 0 15px 50px rgba(245, 87, 108, 0.6);
  258. }
  259. .generate-btn:hover:not(:disabled)::before {
  260. left: 100%;
  261. }
  262. .generate-btn:active:not(:disabled) {
  263. transform: translateY(-1px);
  264. }
  265. .generate-btn:disabled {
  266. opacity: 0.5;
  267. cursor: not-allowed;
  268. box-shadow: 0 5px 20px rgba(245, 87, 108, 0.2);
  269. }
  270. .generate-btn.processing {
  271. background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  272. animation: processingPulse 1.5s ease-in-out infinite;
  273. }
  274. @keyframes processingPulse {
  275. 0%, 100% { transform: scale(1); }
  276. 50% { transform: scale(1.05); }
  277. }
  278. .modal-content {
  279. background: rgba(255, 255, 255, 0.95);
  280. backdrop-filter: blur(20px);
  281. border: none;
  282. border-radius: 24px;
  283. overflow: hidden;
  284. box-shadow: 0 20px 80px rgba(0,0,0,0.3);
  285. }
  286. .modal-header {
  287. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  288. color: white;
  289. border: none;
  290. padding: 20px 30px;
  291. }
  292. .modal-title {
  293. font-weight: 700;
  294. font-size: 1.5rem;
  295. }
  296. .btn-close {
  297. filter: brightness(0) invert(1);
  298. opacity: 0.8;
  299. }
  300. .btn-close:hover {
  301. opacity: 1;
  302. }
  303. .modal-body {
  304. padding: 30px;
  305. }
  306. #outputVideo {
  307. border-radius: 16px;
  308. box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  309. }
  310. .spinner {
  311. display: inline-block;
  312. width: 20px;
  313. height: 20px;
  314. border: 3px solid rgba(255,255,255,0.3);
  315. border-radius: 50%;
  316. border-top-color: white;
  317. animation: spin 0.8s linear infinite;
  318. margin-left: 10px;
  319. vertical-align: middle;
  320. }
  321. @keyframes spin {
  322. to { transform: rotate(360deg); }
  323. }
  324. @media (max-width: 768px) {
  325. .hero-title { font-size: 2.5rem; }
  326. .upload-container { gap: 30px; }
  327. .upload-card { width: 240px; height: 280px; }
  328. .arrow { display: none; }
  329. }