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
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
:root {
|
2 |
+
--wattpad-orange: #FF8F00;
|
3 |
+
--wattpad-orange-light: #FFB74D;
|
4 |
+
--wattpad-orange-dark: #F57C00;
|
5 |
+
--wattpad-white: #FFFFFF;
|
6 |
+
--text-color: #333333;
|
7 |
+
--text-secondary: #666666;
|
8 |
+
--background-light: #f8f9fa;
|
9 |
+
--shadow-color: rgba(0, 0, 0, 0.1);
|
10 |
+
--border-color: #e0e0e0;
|
11 |
+
}
|
12 |
+
|
13 |
+
* {
|
14 |
+
margin: 0;
|
15 |
+
padding: 0;
|
16 |
+
box-sizing: border-box;
|
17 |
+
}
|
18 |
+
|
19 |
+
body {
|
20 |
+
font-family: 'Source Sans Pro', sans-serif;
|
21 |
+
line-height: 1.6;
|
22 |
+
color: var(--text-color);
|
23 |
+
background-color: var(--background-light);
|
24 |
+
}
|
25 |
+
|
26 |
+
/* Navbar Styles */
|
27 |
+
.navbar {
|
28 |
+
background-color: var(--wattpad-white);
|
29 |
+
box-shadow: 0 2px 4px var(--shadow-color);
|
30 |
+
position: sticky;
|
31 |
+
top: 0;
|
32 |
+
z-index: 1000;
|
33 |
+
}
|
34 |
+
|
35 |
+
.nav-container {
|
36 |
+
max-width: 1200px;
|
37 |
+
margin: 0 auto;
|
38 |
+
padding: 0.8rem 20px;
|
39 |
+
display: flex;
|
40 |
+
justify-content: space-between;
|
41 |
+
align-items: center;
|
42 |
+
}
|
43 |
+
|
44 |
+
.logo {
|
45 |
+
display: flex;
|
46 |
+
align-items: center;
|
47 |
+
gap: 0.5rem;
|
48 |
+
}
|
49 |
+
|
50 |
+
.logo i {
|
51 |
+
color: var(--wattpad-orange);
|
52 |
+
font-size: 1.8rem;
|
53 |
+
}
|
54 |
+
|
55 |
+
.logo h1 {
|
56 |
+
color: var(--wattpad-orange);
|
57 |
+
font-size: 1.8rem;
|
58 |
+
font-weight: 700;
|
59 |
+
}
|
60 |
+
|
61 |
+
.logo span {
|
62 |
+
color: var(--text-color);
|
63 |
+
}
|
64 |
+
|
65 |
+
.nav-links {
|
66 |
+
display: flex;
|
67 |
+
gap: 1.5rem;
|
68 |
+
}
|
69 |
+
|
70 |
+
.nav-links a {
|
71 |
+
color: var(--text-secondary);
|
72 |
+
text-decoration: none;
|
73 |
+
font-weight: 600;
|
74 |
+
display: flex;
|
75 |
+
align-items: center;
|
76 |
+
gap: 0.5rem;
|
77 |
+
transition: color 0.3s ease;
|
78 |
+
}
|
79 |
+
|
80 |
+
.nav-links a:hover,
|
81 |
+
.nav-links a.active {
|
82 |
+
color: var(--wattpad-orange);
|
83 |
+
}
|
84 |
+
|
85 |
+
.nav-links i {
|
86 |
+
font-size: 1.1rem;
|
87 |
+
}
|
88 |
+
|
89 |
+
/* Container Styles */
|
90 |
+
.container {
|
91 |
+
max-width: 1200px;
|
92 |
+
margin: 0 auto;
|
93 |
+
padding: 2rem 20px;
|
94 |
+
}
|
95 |
+
|
96 |
+
/* Story Generator Styles */
|
97 |
+
.story-generator {
|
98 |
+
background-color: var(--wattpad-white);
|
99 |
+
border-radius: 15px;
|
100 |
+
padding: 2rem;
|
101 |
+
box-shadow: 0 4px 6px var(--shadow-color);
|
102 |
+
}
|
103 |
+
|
104 |
+
.input-section {
|
105 |
+
text-align: center;
|
106 |
+
margin-bottom: 2rem;
|
107 |
+
}
|
108 |
+
|
109 |
+
.input-section h2 {
|
110 |
+
color: var(--text-color);
|
111 |
+
margin-bottom: 0.5rem;
|
112 |
+
font-size: 2rem;
|
113 |
+
font-weight: 700;
|
114 |
+
}
|
115 |
+
|
116 |
+
.subtitle {
|
117 |
+
color: var(--text-secondary);
|
118 |
+
margin-bottom: 2rem;
|
119 |
+
font-size: 1.1rem;
|
120 |
+
}
|
121 |
+
|
122 |
+
.input-group {
|
123 |
+
display: flex;
|
124 |
+
gap: 1rem;
|
125 |
+
max-width: 700px;
|
126 |
+
margin: 0 auto;
|
127 |
+
}
|
128 |
+
|
129 |
+
.input-wrapper {
|
130 |
+
flex: 1;
|
131 |
+
position: relative;
|
132 |
+
}
|
133 |
+
|
134 |
+
.input-icon {
|
135 |
+
position: absolute;
|
136 |
+
left: 1.2rem;
|
137 |
+
top: 50%;
|
138 |
+
transform: translateY(-50%);
|
139 |
+
color: var(--text-secondary);
|
140 |
+
}
|
141 |
+
|
142 |
+
input[type="text"] {
|
143 |
+
width: 100%;
|
144 |
+
padding: 1rem 1rem 1rem 3rem;
|
145 |
+
border: 2px solid var(--border-color);
|
146 |
+
border-radius: 30px;
|
147 |
+
font-size: 1rem;
|
148 |
+
transition: all 0.3s ease;
|
149 |
+
background-color: var(--background-light);
|
150 |
+
}
|
151 |
+
|
152 |
+
input[type="text"]:focus {
|
153 |
+
outline: none;
|
154 |
+
border-color: var(--wattpad-orange);
|
155 |
+
background-color: var(--wattpad-white);
|
156 |
+
box-shadow: 0 0 0 4px rgba(255, 143, 0, 0.1);
|
157 |
+
}
|
158 |
+
|
159 |
+
button {
|
160 |
+
background-color: var(--wattpad-orange);
|
161 |
+
color: var(--wattpad-white);
|
162 |
+
border: none;
|
163 |
+
padding: 1rem 2rem;
|
164 |
+
border-radius: 30px;
|
165 |
+
cursor: pointer;
|
166 |
+
font-size: 1rem;
|
167 |
+
font-weight: 600;
|
168 |
+
display: flex;
|
169 |
+
align-items: center;
|
170 |
+
gap: 0.5rem;
|
171 |
+
transition: all 0.3s ease;
|
172 |
+
}
|
173 |
+
|
174 |
+
button:hover {
|
175 |
+
background-color: var(--wattpad-orange-dark);
|
176 |
+
transform: translateY(-1px);
|
177 |
+
box-shadow: 0 4px 8px rgba(255, 143, 0, 0.2);
|
178 |
+
}
|
179 |
+
|
180 |
+
/* Loading Spinner Styles */
|
181 |
+
.loading-spinner {
|
182 |
+
display: flex;
|
183 |
+
flex-direction: column;
|
184 |
+
align-items: center;
|
185 |
+
justify-content: center;
|
186 |
+
padding: 3rem;
|
187 |
+
}
|
188 |
+
|
189 |
+
.spinner {
|
190 |
+
width: 50px;
|
191 |
+
height: 50px;
|
192 |
+
border: 3px solid var(--background-light);
|
193 |
+
border-top: 3px solid var(--wattpad-orange);
|
194 |
+
border-radius: 50%;
|
195 |
+
animation: spin 1s linear infinite;
|
196 |
+
margin-bottom: 1rem;
|
197 |
+
}
|
198 |
+
|
199 |
+
.loading-spinner p {
|
200 |
+
color: var(--text-secondary);
|
201 |
+
font-size: 1.1rem;
|
202 |
+
display: flex;
|
203 |
+
align-items: center;
|
204 |
+
gap: 0.5rem;
|
205 |
+
}
|
206 |
+
|
207 |
+
/* Story Container Styles */
|
208 |
+
.story-container {
|
209 |
+
max-width: 800px;
|
210 |
+
margin: 2rem auto;
|
211 |
+
background-color: var(--wattpad-white);
|
212 |
+
border-radius: 15px;
|
213 |
+
padding: 2rem;
|
214 |
+
box-shadow: 0 4px 6px var(--shadow-color);
|
215 |
+
}
|
216 |
+
|
217 |
+
.story-header {
|
218 |
+
margin-bottom: 2rem;
|
219 |
+
}
|
220 |
+
|
221 |
+
.story-meta {
|
222 |
+
display: flex;
|
223 |
+
align-items: center;
|
224 |
+
gap: 1rem;
|
225 |
+
margin-bottom: 1rem;
|
226 |
+
}
|
227 |
+
|
228 |
+
.story-icon {
|
229 |
+
font-size: 2rem;
|
230 |
+
color: var(--wattpad-orange);
|
231 |
+
}
|
232 |
+
|
233 |
+
.story-title {
|
234 |
+
color: var(--text-color);
|
235 |
+
font-size: 2rem;
|
236 |
+
font-weight: 700;
|
237 |
+
}
|
238 |
+
|
239 |
+
.story-stats {
|
240 |
+
display: flex;
|
241 |
+
gap: 1.5rem;
|
242 |
+
color: var(--text-secondary);
|
243 |
+
font-size: 0.9rem;
|
244 |
+
}
|
245 |
+
|
246 |
+
.story-stats span {
|
247 |
+
display: flex;
|
248 |
+
align-items: center;
|
249 |
+
gap: 0.5rem;
|
250 |
+
}
|
251 |
+
|
252 |
+
.chapter-header {
|
253 |
+
margin-bottom: 1.5rem;
|
254 |
+
padding-bottom: 1rem;
|
255 |
+
border-bottom: 1px solid var(--border-color);
|
256 |
+
}
|
257 |
+
|
258 |
+
.chapter-header h4 {
|
259 |
+
font-size: 1.5rem;
|
260 |
+
color: var(--text-color);
|
261 |
+
font-weight: 600;
|
262 |
+
}
|
263 |
+
|
264 |
+
.story-content {
|
265 |
+
font-size: 1.1rem;
|
266 |
+
line-height: 1.8;
|
267 |
+
color: var(--text-color);
|
268 |
+
}
|
269 |
+
|
270 |
+
.content-warning {
|
271 |
+
background-color: #fff3cd;
|
272 |
+
color: #856404;
|
273 |
+
padding: 1rem;
|
274 |
+
border-radius: 10px;
|
275 |
+
margin-bottom: 1.5rem;
|
276 |
+
display: flex;
|
277 |
+
align-items: center;
|
278 |
+
gap: 0.5rem;
|
279 |
+
}
|
280 |
+
|
281 |
+
.author-note {
|
282 |
+
background-color: var(--background-light);
|
283 |
+
padding: 1.5rem;
|
284 |
+
border-radius: 10px;
|
285 |
+
margin-top: 2rem;
|
286 |
+
font-style: italic;
|
287 |
+
color: var(--text-secondary);
|
288 |
+
display: flex;
|
289 |
+
align-items: center;
|
290 |
+
gap: 0.5rem;
|
291 |
+
}
|
292 |
+
|
293 |
+
.story-actions {
|
294 |
+
display: flex;
|
295 |
+
gap: 1rem;
|
296 |
+
margin-top: 2rem;
|
297 |
+
padding-top: 1.5rem;
|
298 |
+
border-top: 1px solid var(--border-color);
|
299 |
+
}
|
300 |
+
|
301 |
+
.action-btn {
|
302 |
+
background-color: transparent;
|
303 |
+
color: var(--text-secondary);
|
304 |
+
border: 1px solid var(--border-color);
|
305 |
+
padding: 0.8rem 1.5rem;
|
306 |
+
flex: 1;
|
307 |
+
}
|
308 |
+
|
309 |
+
.action-btn:hover {
|
310 |
+
background-color: var(--background-light);
|
311 |
+
color: var(--wattpad-orange);
|
312 |
+
border-color: var(--wattpad-orange);
|
313 |
+
transform: translateY(0);
|
314 |
+
box-shadow: none;
|
315 |
+
}
|
316 |
+
|
317 |
+
@keyframes spin {
|
318 |
+
0% { transform: rotate(0deg); }
|
319 |
+
100% { transform: rotate(360deg); }
|
320 |
+
}
|
321 |
+
|
322 |
+
/* Mobile Responsiveness */
|
323 |
+
@media (max-width: 768px) {
|
324 |
+
.nav-container {
|
325 |
+
padding: 0.8rem 15px;
|
326 |
+
}
|
327 |
+
|
328 |
+
.logo h1 {
|
329 |
+
font-size: 1.5rem;
|
330 |
+
}
|
331 |
+
|
332 |
+
.nav-links {
|
333 |
+
gap: 1rem;
|
334 |
+
}
|
335 |
+
|
336 |
+
.nav-links span {
|
337 |
+
display: none;
|
338 |
+
}
|
339 |
+
|
340 |
+
.container {
|
341 |
+
padding: 1rem 15px;
|
342 |
+
}
|
343 |
+
|
344 |
+
.input-group {
|
345 |
+
flex-direction: column;
|
346 |
+
}
|
347 |
+
|
348 |
+
.input-section h2 {
|
349 |
+
font-size: 1.5rem;
|
350 |
+
}
|
351 |
+
|
352 |
+
.story-container {
|
353 |
+
padding: 1.5rem;
|
354 |
+
}
|
355 |
+
|
356 |
+
.story-title {
|
357 |
+
font-size: 1.5rem;
|
358 |
+
}
|
359 |
+
|
360 |
+
.story-stats {
|
361 |
+
flex-wrap: wrap;
|
362 |
+
gap: 1rem;
|
363 |
+
}
|
364 |
+
|
365 |
+
.story-content {
|
366 |
+
font-size: 1rem;
|
367 |
+
}
|
368 |
+
|
369 |
+
.story-actions {
|
370 |
+
flex-direction: column;
|
371 |
+
}
|
372 |
+
|
373 |
+
.action-btn {
|
374 |
+
width: 100%;
|
375 |
+
}
|
376 |
+
}
|
377 |
+
|
378 |
+
/* Chapter Navigation */
|
379 |
+
.chapter-navigation {
|
380 |
+
display: flex;
|
381 |
+
align-items: center;
|
382 |
+
justify-content: space-between;
|
383 |
+
margin-bottom: 2rem;
|
384 |
+
padding: 1rem;
|
385 |
+
background-color: var(--background-light);
|
386 |
+
border-radius: 10px;
|
387 |
+
}
|
388 |
+
|
389 |
+
.nav-btn {
|
390 |
+
background-color: var(--wattpad-white);
|
391 |
+
color: var(--text-color);
|
392 |
+
border: 1px solid var(--border-color);
|
393 |
+
padding: 0.8rem 1.5rem;
|
394 |
+
border-radius: 25px;
|
395 |
+
cursor: pointer;
|
396 |
+
font-size: 0.9rem;
|
397 |
+
font-weight: 600;
|
398 |
+
display: flex;
|
399 |
+
align-items: center;
|
400 |
+
gap: 0.5rem;
|
401 |
+
transition: all 0.3s ease;
|
402 |
+
}
|
403 |
+
|
404 |
+
.nav-btn:hover:not(:disabled) {
|
405 |
+
background-color: var(--wattpad-orange);
|
406 |
+
color: var(--wattpad-white);
|
407 |
+
border-color: var(--wattpad-orange);
|
408 |
+
}
|
409 |
+
|
410 |
+
.nav-btn:disabled {
|
411 |
+
opacity: 0.5;
|
412 |
+
cursor: not-allowed;
|
413 |
+
}
|
414 |
+
|
415 |
+
.chapter-indicator {
|
416 |
+
font-size: 1.1rem;
|
417 |
+
font-weight: 600;
|
418 |
+
color: var(--text-color);
|
419 |
+
}
|
420 |
+
|
421 |
+
/* Chapter Content */
|
422 |
+
.chapters-list {
|
423 |
+
margin: 2rem 0;
|
424 |
+
}
|
425 |
+
|
426 |
+
.chapter-content {
|
427 |
+
display: none;
|
428 |
+
}
|
429 |
+
|
430 |
+
.chapter-content.active {
|
431 |
+
display: block;
|
432 |
+
animation: fadeIn 0.5s ease;
|
433 |
+
}
|
434 |
+
|
435 |
+
.chapter-title {
|
436 |
+
font-size: 1.8rem;
|
437 |
+
color: var(--text-color);
|
438 |
+
margin-bottom: 1.5rem;
|
439 |
+
font-weight: 700;
|
440 |
+
}
|
441 |
+
|
442 |
+
.chapter-summary {
|
443 |
+
background-color: var(--background-light);
|
444 |
+
padding: 1.5rem;
|
445 |
+
border-radius: 10px;
|
446 |
+
margin-bottom: 2rem;
|
447 |
+
font-style: italic;
|
448 |
+
color: var(--text-secondary);
|
449 |
+
}
|
450 |
+
|
451 |
+
.narrative-hook {
|
452 |
+
background-color: #e3f2fd;
|
453 |
+
padding: 1.5rem;
|
454 |
+
border-radius: 10px;
|
455 |
+
margin: 2rem 0;
|
456 |
+
color: #1976d2;
|
457 |
+
font-weight: 500;
|
458 |
+
}
|
459 |
+
|
460 |
+
.chapter-section {
|
461 |
+
font-size: 1.1rem;
|
462 |
+
line-height: 1.8;
|
463 |
+
margin-bottom: 2rem;
|
464 |
+
}
|
465 |
+
|
466 |
+
/* Animations */
|
467 |
+
@keyframes fadeIn {
|
468 |
+
from {
|
469 |
+
opacity: 0;
|
470 |
+
transform: translateY(10px);
|
471 |
+
}
|
472 |
+
to {
|
473 |
+
opacity: 1;
|
474 |
+
transform: translateY(0);
|
475 |
+
}
|
476 |
+
}
|
477 |
+
|
478 |
+
/* Mobile Responsiveness Updates */
|
479 |
+
@media (max-width: 768px) {
|
480 |
+
.chapter-navigation {
|
481 |
+
flex-direction: column;
|
482 |
+
gap: 1rem;
|
483 |
+
padding: 1rem;
|
484 |
+
}
|
485 |
+
|
486 |
+
.chapter-indicator {
|
487 |
+
order: -1;
|
488 |
+
margin-bottom: 0.5rem;
|
489 |
+
}
|
490 |
+
|
491 |
+
.nav-btn {
|
492 |
+
width: 100%;
|
493 |
+
justify-content: center;
|
494 |
+
}
|
495 |
+
|
496 |
+
.chapter-title {
|
497 |
+
font-size: 1.5rem;
|
498 |
+
}
|
499 |
+
|
500 |
+
.chapter-summary,
|
501 |
+
.narrative-hook {
|
502 |
+
padding: 1rem;
|
503 |
+
}
|
504 |
+
}
|