Files changed (1) hide show
  1. reading.html +886 -0
reading.html ADDED
@@ -0,0 +1,886 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Reading Practice - RISE</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <style>
9
+
10
+ /* ----------------------------------------------------------------
11
+ PAGE-SPECIFIC STYLES
12
+ All colours and type follow style.css; these rules only handle
13
+ layout and components that don't exist on other pages.
14
+ ---------------------------------------------------------------- */
15
+
16
+ /* Hero */
17
+ .reading-hero {
18
+ padding: 120px 5% 60px;
19
+ text-align: center;
20
+ max-width: 720px;
21
+ margin: 0 auto;
22
+ }
23
+
24
+ .reading-hero h1 {
25
+ font-size: clamp(2rem, 5vw, 3.2rem);
26
+ line-height: 1.15;
27
+ margin: 12px 0 20px;
28
+ }
29
+
30
+ .reading-hero p {
31
+ font-size: 1.1rem;
32
+ opacity: 0.75;
33
+ max-width: 560px;
34
+ margin: 0 auto 40px;
35
+ line-height: 1.7;
36
+ }
37
+
38
+ /* Current level pill */
39
+ .current-pill {
40
+ display: inline-flex;
41
+ align-items: center;
42
+ gap: 8px;
43
+ background: rgba(255,255,255,0.07);
44
+ border: 1px solid rgba(255,255,255,0.15);
45
+ border-radius: 100px;
46
+ padding: 8px 20px;
47
+ font-size: 0.9rem;
48
+ margin-bottom: 32px;
49
+ }
50
+
51
+ .current-pill .dot {
52
+ width: 8px;
53
+ height: 8px;
54
+ border-radius: 50%;
55
+ background: #7c6ff7;
56
+ flex-shrink: 0;
57
+ }
58
+
59
+ /* ----------------------------------------------------------------
60
+ LEVELS GRID
61
+ ---------------------------------------------------------------- */
62
+ .levels-section {
63
+ padding: 20px 5% 80px;
64
+ max-width: 1100px;
65
+ margin: 0 auto;
66
+ }
67
+
68
+ .levels-grid {
69
+ display: grid;
70
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
71
+ gap: 24px;
72
+ margin-top: 48px;
73
+ }
74
+
75
+ /* Each level card */
76
+ .level-card {
77
+ border-radius: 16px;
78
+ padding: 36px 32px;
79
+ display: flex;
80
+ flex-direction: column;
81
+ gap: 16px;
82
+ position: relative;
83
+ overflow: hidden;
84
+ transition: transform 0.2s, box-shadow 0.2s;
85
+ cursor: pointer;
86
+ border: 1px solid rgba(255,255,255,0.08);
87
+ background: rgba(255,255,255,0.03);
88
+ }
89
+
90
+ .level-card:hover {
91
+ transform: translateY(-4px);
92
+ box-shadow: 0 16px 40px rgba(0,0,0,0.35);
93
+ }
94
+
95
+ /* Accent strip at the top of each card */
96
+ .level-card::before {
97
+ content: '';
98
+ position: absolute;
99
+ top: 0;
100
+ left: 0;
101
+ right: 0;
102
+ height: 3px;
103
+ border-radius: 16px 16px 0 0;
104
+ }
105
+
106
+ .level-card.l1::before { background: #7c6ff7; }
107
+ .level-card.l2::before { background: #56b0f5; }
108
+ .level-card.l3::before { background: #4ecdc4; }
109
+ .level-card.l4::before { background: #f5a623; }
110
+ .level-card.l5::before { background: #f56565; }
111
+
112
+ /* Number badge */
113
+ .level-badge {
114
+ font-size: 0.75rem;
115
+ font-weight: 700;
116
+ letter-spacing: 0.08em;
117
+ text-transform: uppercase;
118
+ opacity: 0.5;
119
+ }
120
+
121
+ .level-card .level-icon {
122
+ font-size: 2rem;
123
+ line-height: 1;
124
+ }
125
+
126
+ .level-card h3 {
127
+ font-size: 1.25rem;
128
+ font-weight: 700;
129
+ margin: 0;
130
+ }
131
+
132
+ .level-card .level-desc {
133
+ font-size: 0.92rem;
134
+ opacity: 0.65;
135
+ line-height: 1.6;
136
+ flex: 1;
137
+ }
138
+
139
+ /* Part pills inside each card */
140
+ .part-pills {
141
+ display: flex;
142
+ gap: 8px;
143
+ flex-wrap: wrap;
144
+ margin-top: 4px;
145
+ }
146
+
147
+ .part-pill {
148
+ font-size: 0.75rem;
149
+ font-weight: 600;
150
+ padding: 4px 12px;
151
+ border-radius: 100px;
152
+ background: rgba(255,255,255,0.08);
153
+ border: 1px solid rgba(255,255,255,0.12);
154
+ opacity: 0.8;
155
+ }
156
+
157
+ /* Lock overlay for locked levels */
158
+ .level-card.locked {
159
+ cursor: not-allowed;
160
+ }
161
+
162
+ .level-card.locked::after {
163
+ content: '🔒';
164
+ position: absolute;
165
+ top: 20px;
166
+ right: 20px;
167
+ font-size: 1.1rem;
168
+ opacity: 0.5;
169
+ }
170
+
171
+ .level-card.locked:hover {
172
+ transform: none;
173
+ box-shadow: none;
174
+ }
175
+
176
+ /* Active indicator for current level */
177
+ .level-card.active-level {
178
+ border-color: rgba(124, 111, 247, 0.4);
179
+ background: rgba(124, 111, 247, 0.05);
180
+ }
181
+
182
+ .active-badge {
183
+ display: inline-block;
184
+ font-size: 0.7rem;
185
+ font-weight: 700;
186
+ letter-spacing: 0.06em;
187
+ text-transform: uppercase;
188
+ background: rgba(124,111,247,0.2);
189
+ border: 1px solid rgba(124,111,247,0.4);
190
+ color: #a99ff7;
191
+ padding: 3px 10px;
192
+ border-radius: 100px;
193
+ margin-top: -4px;
194
+ }
195
+
196
+ .level-card .start-btn {
197
+ margin-top: 8px;
198
+ display: inline-block;
199
+ padding: 12px 24px;
200
+ border-radius: 8px;
201
+ font-size: 0.9rem;
202
+ font-weight: 600;
203
+ text-align: center;
204
+ cursor: pointer;
205
+ border: none;
206
+ transition: opacity 0.15s;
207
+ text-decoration: none;
208
+ }
209
+
210
+ .level-card.locked .start-btn {
211
+ background: rgba(255,255,255,0.06);
212
+ color: rgba(255,255,255,0.35);
213
+ cursor: not-allowed;
214
+ }
215
+
216
+ .level-card:not(.locked) .start-btn {
217
+ background: #7c6ff7;
218
+ color: #fff;
219
+ }
220
+
221
+ .level-card:not(.locked) .start-btn:hover {
222
+ opacity: 0.88;
223
+ }
224
+
225
+ /* ----------------------------------------------------------------
226
+ HOW THE LEVELS WORK — info strip
227
+ ---------------------------------------------------------------- */
228
+ .how-levels-section {
229
+ padding: 60px 5%;
230
+ border-top: 1px solid rgba(255,255,255,0.07);
231
+ border-bottom: 1px solid rgba(255,255,255,0.07);
232
+ background: rgba(255,255,255,0.02);
233
+ }
234
+
235
+ .how-levels-inner {
236
+ max-width: 1000px;
237
+ margin: 0 auto;
238
+ }
239
+
240
+ .how-levels-steps {
241
+ display: grid;
242
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
243
+ gap: 32px;
244
+ margin-top: 48px;
245
+ }
246
+
247
+ .how-step {
248
+ display: flex;
249
+ flex-direction: column;
250
+ gap: 12px;
251
+ }
252
+
253
+ .how-step-icon {
254
+ font-size: 1.6rem;
255
+ }
256
+
257
+ .how-step h4 {
258
+ font-size: 1rem;
259
+ font-weight: 700;
260
+ margin: 0;
261
+ }
262
+
263
+ .how-step p {
264
+ font-size: 0.88rem;
265
+ opacity: 0.6;
266
+ line-height: 1.6;
267
+ margin: 0;
268
+ }
269
+
270
+ /* ----------------------------------------------------------------
271
+ GESTURE GUIDE
272
+ ---------------------------------------------------------------- */
273
+ .gesture-section {
274
+ padding: 70px 5%;
275
+ max-width: 900px;
276
+ margin: 0 auto;
277
+ }
278
+
279
+ .gesture-grid {
280
+ display: grid;
281
+ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
282
+ gap: 20px;
283
+ margin-top: 40px;
284
+ }
285
+
286
+ .gesture-card {
287
+ background: rgba(255,255,255,0.03);
288
+ border: 1px solid rgba(255,255,255,0.08);
289
+ border-radius: 12px;
290
+ padding: 24px 20px;
291
+ text-align: center;
292
+ display: flex;
293
+ flex-direction: column;
294
+ align-items: center;
295
+ gap: 10px;
296
+ }
297
+
298
+ .gesture-emoji {
299
+ font-size: 2rem;
300
+ }
301
+
302
+ .gesture-label {
303
+ font-size: 0.8rem;
304
+ font-weight: 700;
305
+ letter-spacing: 0.04em;
306
+ text-transform: uppercase;
307
+ opacity: 0.45;
308
+ }
309
+
310
+ .gesture-action {
311
+ font-size: 0.9rem;
312
+ font-weight: 600;
313
+ margin: 0;
314
+ }
315
+
316
+ .gesture-card p {
317
+ font-size: 0.8rem;
318
+ opacity: 0.55;
319
+ line-height: 1.5;
320
+ margin: 0;
321
+ }
322
+
323
+ /* ----------------------------------------------------------------
324
+ MODAL — launched when user clicks Start (non-locked levels)
325
+ ---------------------------------------------------------------- */
326
+ .modal-backdrop {
327
+ display: none;
328
+ position: fixed;
329
+ inset: 0;
330
+ background: rgba(0,0,0,0.75);
331
+ z-index: 1000;
332
+ align-items: center;
333
+ justify-content: center;
334
+ padding: 24px;
335
+ }
336
+
337
+ .modal-backdrop.open {
338
+ display: flex;
339
+ }
340
+
341
+ .modal {
342
+ background: #1a1a2e;
343
+ border: 1px solid rgba(255,255,255,0.12);
344
+ border-radius: 20px;
345
+ padding: 44px 40px;
346
+ max-width: 520px;
347
+ width: 100%;
348
+ position: relative;
349
+ }
350
+
351
+ .modal h2 {
352
+ margin: 0 0 12px;
353
+ font-size: 1.6rem;
354
+ }
355
+
356
+ .modal p {
357
+ opacity: 0.65;
358
+ line-height: 1.65;
359
+ margin: 0 0 28px;
360
+ font-size: 0.95rem;
361
+ }
362
+
363
+ .modal-parts {
364
+ display: flex;
365
+ gap: 12px;
366
+ margin-bottom: 32px;
367
+ }
368
+
369
+ .modal-part {
370
+ flex: 1;
371
+ background: rgba(255,255,255,0.05);
372
+ border: 1px solid rgba(255,255,255,0.1);
373
+ border-radius: 10px;
374
+ padding: 16px 12px;
375
+ text-align: center;
376
+ font-size: 0.82rem;
377
+ }
378
+
379
+ .modal-part .part-num {
380
+ font-size: 1.4rem;
381
+ margin-bottom: 4px;
382
+ }
383
+
384
+ .modal-part strong {
385
+ display: block;
386
+ font-size: 0.85rem;
387
+ margin-bottom: 4px;
388
+ }
389
+
390
+ .modal-part span {
391
+ opacity: 0.5;
392
+ font-size: 0.78rem;
393
+ }
394
+
395
+ .modal-actions {
396
+ display: flex;
397
+ gap: 12px;
398
+ }
399
+
400
+ .modal-close {
401
+ position: absolute;
402
+ top: 16px;
403
+ right: 20px;
404
+ background: none;
405
+ border: none;
406
+ color: rgba(255,255,255,0.4);
407
+ font-size: 1.4rem;
408
+ cursor: pointer;
409
+ line-height: 1;
410
+ }
411
+
412
+ .modal-close:hover {
413
+ color: rgba(255,255,255,0.8);
414
+ }
415
+
416
+ .btn-secondary-modal {
417
+ padding: 12px 24px;
418
+ border-radius: 8px;
419
+ font-size: 0.9rem;
420
+ font-weight: 600;
421
+ border: 1px solid rgba(255,255,255,0.15);
422
+ background: transparent;
423
+ color: rgba(255,255,255,0.7);
424
+ cursor: pointer;
425
+ }
426
+
427
+ .btn-secondary-modal:hover {
428
+ background: rgba(255,255,255,0.06);
429
+ }
430
+
431
+ /* Responsive */
432
+ @media (max-width: 600px) {
433
+ .modal { padding: 32px 24px; }
434
+ .modal-parts { flex-direction: column; }
435
+ .modal-actions { flex-direction: column; }
436
+ .levels-grid { grid-template-columns: 1fr; }
437
+ }
438
+
439
+ </style>
440
+ </head>
441
+
442
+ <body>
443
+
444
+ <!-- ================================================================
445
+ NAVIGATION (matches all other pages exactly)
446
+ ================================================================ -->
447
+ <nav class="navbar">
448
+
449
+ <div class="logo">RISE</div>
450
+
451
+ <div class="nav-links">
452
+ <a href="dashboard.html">Home</a>
453
+ <a href="reading.html" class="active">Reading</a>
454
+ <a href="speaking.html">Speaking</a>
455
+ </div>
456
+
457
+ <a href="index.html" class="signin-btn">Log Out</a>
458
+
459
+ </nav>
460
+
461
+
462
+ <!-- ================================================================
463
+ HERO
464
+ ================================================================ -->
465
+ <section class="reading-hero">
466
+
467
+ <p class="small-title">READING PRACTICE</p>
468
+
469
+ <h1>Build fluency,<br><span>one level at a time.</span></h1>
470
+
471
+ <p>
472
+ Read aloud, get real-time pronunciation feedback, and advance through
473
+ five levels of increasing complexity — from simple sentences to full stories.
474
+ </p>
475
+
476
+ <div class="current-pill">
477
+ <span class="dot"></span>
478
+ <span id="hero-level-text">You are on Level 1 — Beginner</span>
479
+ </div>
480
+
481
+ </section>
482
+
483
+
484
+ <!-- ================================================================
485
+ HOW LEVELS WORK
486
+ ================================================================ -->
487
+ <section class="how-levels-section">
488
+ <div class="how-levels-inner">
489
+
490
+ <div class="section-heading" style="text-align:left; max-width:480px;">
491
+ <p>HOW IT WORKS</p>
492
+ <h2>Each level has three parts</h2>
493
+ </div>
494
+
495
+ <div class="how-levels-steps">
496
+
497
+ <div class="how-step">
498
+ <div class="how-step-icon">📝</div>
499
+ <h4>Part 1 — Sentence</h4>
500
+ <p>Read a set of short sentences. Good for warming up and building word-by-word accuracy.</p>
501
+ </div>
502
+
503
+ <div class="how-step">
504
+ <div class="how-step-icon">📄</div>
505
+ <h4>Part 2 — Paragraph</h4>
506
+ <p>Read a connected paragraph on one topic. Builds reading flow and natural phrasing.</p>
507
+ </div>
508
+
509
+ <div class="how-step">
510
+ <div class="how-step-icon">📖</div>
511
+ <h4>Part 3 — Story</h4>
512
+ <p>Read a short story with a beginning, middle and end. The full fluency challenge.</p>
513
+ </div>
514
+
515
+ <div class="how-step">
516
+ <div class="how-step-icon">🎯</div>
517
+ <h4>Score 85% to advance</h4>
518
+ <p>You need 85% or above in each part. If you slip on Part 2 or 3, you restart from Part 1.</p>
519
+ </div>
520
+
521
+ </div>
522
+
523
+ </div>
524
+ </section>
525
+
526
+
527
+ <!-- ================================================================
528
+ LEVELS GRID
529
+ ================================================================ -->
530
+ <section class="levels-section">
531
+
532
+ <div class="section-heading" style="text-align:center;">
533
+ <p>CHOOSE YOUR LEVEL</p>
534
+ <h2>Where would you like to read today?</h2>
535
+ </div>
536
+
537
+ <div class="levels-grid" id="levels-grid">
538
+
539
+ <!-- Level 1 — always unlocked -->
540
+ <div class="level-card l1" id="card-1" onclick="openModal(1)">
541
+ <div class="level-badge">Level 1</div>
542
+ <div class="level-icon">🌱</div>
543
+ <h3>Beginner</h3>
544
+ <p class="level-desc">
545
+ Short everyday sentences using simple, common words. A comfortable
546
+ starting point focused on building word-level accuracy.
547
+ </p>
548
+ <div class="part-pills">
549
+ <span class="part-pill">Sentences</span>
550
+ <span class="part-pill">Paragraph</span>
551
+ <span class="part-pill">Story</span>
552
+ </div>
553
+ <button class="start-btn">Start Level 1</button>
554
+ </div>
555
+
556
+ <!-- Level 2 -->
557
+ <div class="level-card l2" id="card-2" onclick="openModal(2)">
558
+ <div class="level-badge">Level 2</div>
559
+ <div class="level-icon">📗</div>
560
+ <h3>Elementary</h3>
561
+ <p class="level-desc">
562
+ Slightly longer sentences with a wider vocabulary. Introduces
563
+ descriptive language and connected ideas.
564
+ </p>
565
+ <div class="part-pills">
566
+ <span class="part-pill">Sentences</span>
567
+ <span class="part-pill">Paragraph</span>
568
+ <span class="part-pill">Story</span>
569
+ </div>
570
+ <button class="start-btn">Start Level 2</button>
571
+ </div>
572
+
573
+ <!-- Level 3 -->
574
+ <div class="level-card l3" id="card-3" onclick="openModal(3)">
575
+ <div class="level-badge">Level 3</div>
576
+ <div class="level-icon">📘</div>
577
+ <h3>Intermediate</h3>
578
+ <p class="level-desc">
579
+ Multi-clause sentences with richer vocabulary and descriptive
580
+ passages. A step up in reading flow and phrasing.
581
+ </p>
582
+ <div class="part-pills">
583
+ <span class="part-pill">Sentences</span>
584
+ <span class="part-pill">Paragraph</span>
585
+ <span class="part-pill">Story</span>
586
+ </div>
587
+ <button class="start-btn">Start Level 3</button>
588
+ </div>
589
+
590
+ <!-- Level 4 -->
591
+ <div class="level-card l4" id="card-4" onclick="openModal(4)">
592
+ <div class="level-badge">Level 4</div>
593
+ <div class="level-icon">📙</div>
594
+ <h3>Upper Intermediate</h3>
595
+ <p class="level-desc">
596
+ Complex sentence structures, abstract vocabulary and nuanced ideas.
597
+ Designed for confident, fluid reading.
598
+ </p>
599
+ <div class="part-pills">
600
+ <span class="part-pill">Sentences</span>
601
+ <span class="part-pill">Paragraph</span>
602
+ <span class="part-pill">Story</span>
603
+ </div>
604
+ <button class="start-btn">Start Level 4</button>
605
+ </div>
606
+
607
+ <!-- Level 5 -->
608
+ <div class="level-card l5" id="card-5" onclick="openModal(5)">
609
+ <div class="level-badge">Level 5</div>
610
+ <div class="level-icon">🏆</div>
611
+ <h3>Advanced</h3>
612
+ <p class="level-desc">
613
+ Sophisticated academic and literary language. Complex syntax,
614
+ formal register, and rich vocabulary throughout.
615
+ </p>
616
+ <div class="part-pills">
617
+ <span class="part-pill">Sentences</span>
618
+ <span class="part-pill">Paragraph</span>
619
+ <span class="part-pill">Story</span>
620
+ </div>
621
+ <button class="start-btn">Start Level 5</button>
622
+ </div>
623
+
624
+ </div>
625
+
626
+ </section>
627
+
628
+
629
+ <!-- ================================================================
630
+ GESTURE GUIDE
631
+ ================================================================ -->
632
+ <section class="gesture-section">
633
+
634
+ <div class="section-heading" style="text-align:center;">
635
+ <p>HAND GESTURES</p>
636
+ <h2>Navigate with your hands</h2>
637
+ </div>
638
+
639
+ <div class="gesture-grid">
640
+
641
+ <div class="gesture-card">
642
+ <div class="gesture-emoji">☝️</div>
643
+ <div class="gesture-label">1 finger</div>
644
+ <p class="gesture-action">Jump to Level 1</p>
645
+ </div>
646
+
647
+ <div class="gesture-card">
648
+ <div class="gesture-emoji">✌️</div>
649
+ <div class="gesture-label">2 fingers</div>
650
+ <p class="gesture-action">Jump to Level 2</p>
651
+ </div>
652
+
653
+ <div class="gesture-card">
654
+ <div class="gesture-emoji">🤟</div>
655
+ <div class="gesture-label">3 fingers</div>
656
+ <p class="gesture-action">Jump to Level 3</p>
657
+ </div>
658
+
659
+ <div class="gesture-card">
660
+ <div class="gesture-emoji">🖐</div>
661
+ <div class="gesture-label">4 fingers</div>
662
+ <p class="gesture-action">Jump to Level 4</p>
663
+ </div>
664
+
665
+ <div class="gesture-card">
666
+ <div class="gesture-emoji">✋</div>
667
+ <div class="gesture-label">Open palm</div>
668
+ <p class="gesture-action">Jump to Level 5</p>
669
+ </div>
670
+
671
+ <div class="gesture-card">
672
+ <div class="gesture-emoji">👍</div>
673
+ <div class="gesture-label">Thumbs up</div>
674
+ <p class="gesture-action">Restart from Level 1</p>
675
+ </div>
676
+
677
+ <div class="gesture-card">
678
+ <div class="gesture-emoji">👎</div>
679
+ <div class="gesture-label">Thumbs down</div>
680
+ <p class="gesture-action">Pause & see results</p>
681
+ </div>
682
+
683
+ </div>
684
+
685
+ <p style="text-align:center; opacity:0.45; font-size:0.85rem; margin-top:28px;">
686
+ Gestures are detected automatically between passages inside the Colab session.
687
+ </p>
688
+
689
+ </section>
690
+
691
+
692
+ <!-- ================================================================
693
+ FOOTER (matches all other pages)
694
+ ================================================================ -->
695
+ <footer>
696
+
697
+ <div class="logo">RISE</div>
698
+
699
+ <p>AI-powered social communication coaching.</p>
700
+
701
+ <p class="copyright">© 2026 RISE. All rights reserved.</p>
702
+
703
+ </footer>
704
+
705
+
706
+ <!-- ================================================================
707
+ START MODAL
708
+ ================================================================ -->
709
+ <div class="modal-backdrop" id="modal-backdrop" onclick="closeModal(event)">
710
+ <div class="modal" id="modal">
711
+
712
+ <button class="modal-close" onclick="closeModalDirect()">✕</button>
713
+
714
+ <h2 id="modal-title">Level 1 — Beginner</h2>
715
+ <p id="modal-desc">
716
+ You are about to start Level 1. Read each passage aloud and score 85%
717
+ or above to move through the three parts.
718
+ </p>
719
+
720
+ <div class="modal-parts">
721
+ <div class="modal-part">
722
+ <div class="part-num">📝</div>
723
+ <strong>Part 1</strong>
724
+ <span>Sentences</span>
725
+ </div>
726
+ <div class="modal-part">
727
+ <div class="part-num">📄</div>
728
+ <strong>Part 2</strong>
729
+ <span>Paragraph</span>
730
+ </div>
731
+ <div class="modal-part">
732
+ <div class="part-num">📖</div>
733
+ <strong>Part 3</strong>
734
+ <span>Story</span>
735
+ </div>
736
+ </div>
737
+
738
+ <div class="modal-actions">
739
+ <a id="modal-colab-link" href="#" target="_blank" class="primary-btn" style="flex:1; text-align:center; padding:14px;">
740
+ Open in Colab
741
+ </a>
742
+ <button class="btn-secondary-modal" onclick="closeModalDirect()">
743
+ Cancel
744
+ </button>
745
+ </div>
746
+
747
+ </div>
748
+ </div>
749
+
750
+
751
+ <!-- ================================================================
752
+ JAVASCRIPT
753
+ ================================================================ -->
754
+ <script>
755
+
756
+ // ----------------------------------------------------------------
757
+ // Level metadata
758
+ // ----------------------------------------------------------------
759
+ const LEVELS = {
760
+ 1: {
761
+ name: "Beginner",
762
+ label: "Level 1 — Beginner",
763
+ colour: "#7c6ff7",
764
+ desc: "You are about to start Level 1. Read short everyday sentences aloud and score 85%+ in each part to advance.",
765
+ colab: "#", // replace with your Colab notebook URL
766
+ },
767
+ 2: {
768
+ name: "Elementary",
769
+ label: "Level 2 — Elementary",
770
+ colour: "#56b0f5",
771
+ desc: "You are starting Level 2. Sentences are a little longer and vocabulary is wider. Score 85%+ in each part to move on.",
772
+ colab: "#",
773
+ },
774
+ 3: {
775
+ name: "Intermediate",
776
+ label: "Level 3 — Intermediate",
777
+ colour: "#4ecdc4",
778
+ desc: "Level 3 introduces multi-clause sentences and richer descriptions. Score 85%+ in all three parts to advance.",
779
+ colab: "#",
780
+ },
781
+ 4: {
782
+ name: "Upper Intermediate",
783
+ label: "Level 4 — Upper Intermediate",
784
+ colour: "#f5a623",
785
+ desc: "Level 4 uses complex structures and abstract vocabulary. Score 85%+ to reach the final level.",
786
+ colab: "#",
787
+ },
788
+ 5: {
789
+ name: "Advanced",
790
+ label: "Level 5 — Advanced",
791
+ colour: "#f56565",
792
+ desc: "The highest level. Literary and academic language, sophisticated syntax. Complete all three parts to finish the programme.",
793
+ colab: "#",
794
+ },
795
+ };
796
+
797
+ // ----------------------------------------------------------------
798
+ // Read progress from localStorage
799
+ // ----------------------------------------------------------------
800
+ const savedLevel = Number(localStorage.getItem("readingLevel")) || 1;
801
+ const savedPart = Number(localStorage.getItem("readingPart")) || 1;
802
+
803
+ // ----------------------------------------------------------------
804
+ // Mark cards as locked / active on page load
805
+ // ----------------------------------------------------------------
806
+ function applyLockStates() {
807
+ for (let i = 1; i <= 5; i++) {
808
+ const card = document.getElementById("card-" + i);
809
+ if (!card) continue;
810
+
811
+ // Remove any existing state classes
812
+ card.classList.remove("locked", "active-level");
813
+
814
+ // Remove previous active badge if any
815
+ const prevBadge = card.querySelector(".active-badge");
816
+ if (prevBadge) prevBadge.remove();
817
+
818
+ if (i > savedLevel) {
819
+ // Future level — lock it
820
+ card.classList.add("locked");
821
+ card.querySelector(".start-btn").textContent = "Locked";
822
+ } else if (i === savedLevel) {
823
+ // Current level — mark as active
824
+ card.classList.add("active-level");
825
+ const badge = document.createElement("span");
826
+ badge.className = "active-badge";
827
+ badge.textContent = "Current level · Part " + savedPart + " / 3";
828
+ card.querySelector("h3").insertAdjacentElement("afterend", badge);
829
+ card.querySelector(".start-btn").textContent = "Continue Level " + i;
830
+ } else {
831
+ // Completed level
832
+ card.querySelector(".start-btn").textContent = "Revisit Level " + i;
833
+ }
834
+ }
835
+
836
+ // Update hero pill
837
+ const heroText = document.getElementById("hero-level-text");
838
+ heroText.textContent =
839
+ "You are on Level " + savedLevel +
840
+ " — " + LEVELS[savedLevel].name +
841
+ " (Part " + savedPart + " of 3)";
842
+ }
843
+
844
+ applyLockStates();
845
+
846
+ // ----------------------------------------------------------------
847
+ // Modal
848
+ // ----------------------------------------------------------------
849
+ let selectedLevel = null;
850
+
851
+ function openModal(levelNum) {
852
+ if (levelNum > savedLevel) return; // locked — do nothing
853
+
854
+ selectedLevel = levelNum;
855
+ const data = LEVELS[levelNum];
856
+
857
+ document.getElementById("modal-title").textContent = data.label;
858
+ document.getElementById("modal-desc").textContent = data.desc;
859
+ document.getElementById("modal-colab-link").href = data.colab;
860
+
861
+ // Tint the modal accent strip to match the level colour
862
+ document.getElementById("modal").style.borderTopColor = data.colour;
863
+ document.getElementById("modal").style.borderTopWidth = "3px";
864
+
865
+ document.getElementById("modal-backdrop").classList.add("open");
866
+ }
867
+
868
+ function closeModalDirect() {
869
+ document.getElementById("modal-backdrop").classList.remove("open");
870
+ }
871
+
872
+ function closeModal(e) {
873
+ if (e.target === document.getElementById("modal-backdrop")) {
874
+ closeModalDirect();
875
+ }
876
+ }
877
+
878
+ // Close on Escape
879
+ document.addEventListener("keydown", e => {
880
+ if (e.key === "Escape") closeModalDirect();
881
+ });
882
+
883
+ </script>
884
+
885
+ </body>
886
+ </html>