File size: 26,010 Bytes
a382506
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sanctissima Missa - Latin Mass Generator</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        'liturgical-red': '#dc2626',
                        'liturgical-white': '#f8fafc',
                        'liturgical-purple': '#7e22ce',
                        'liturgical-green': '#16a34a',
                        'liturgical-black': '#0f172a',
                        'liturgical-rose': '#f43f5e'
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');
        
        body {
            font-family: 'Crimson Text', serif;
            background-color: #f9f7f2;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d1d5db' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
        }
        
        .liturgical-section {
            transition: all 0.3s ease;
        }
        
        .latin-text {
            font-weight: 600;
            line-height: 1.6;
        }
        
        .english-text {
            font-style: italic;
            line-height: 1.6;
        }
        
        .rubric {
            color: #64748b;
            font-size: 0.9rem;
        }
        
        .seasonal-color {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .accordion-content.open {
            max-height: 2000px;
        }
        
        .accordion-header {
            cursor: pointer;
            user-select: none;
        }
        
        .accordion-header:hover {
            background-color: rgba(220, 38, 38, 0.05);
        }
        
        .hover-translation:hover .english-text {
            display: block !important;
        }
        
        .hover-translation .english-text {
            display: none;
        }
        
        @media print {
            .no-print {
                display: none !important;
            }
            
            body {
                background: white;
            }
            
            .print-section {
                page-break-inside: avoid;
            }
        }
    </style>
</head>
<body class="min-h-screen flex flex-col">
    <!-- Header -->
    <header class="bg-liturgical-red text-white shadow-lg">
        <div class="container mx-auto px-4 py-3 flex flex-col md:flex-row justify-between items-center">
            <div class="flex items-center mb-4 md:mb-0">
                <i class="fas fa-church text-2xl mr-3"></i>
                <h1 class="text-2xl font-bold">Sanctissima Missa</h1>
                <span class="ml-3 text-sm bg-white text-liturgical-red px-2 py-1 rounded">Extraordinary Form</span>
            </div>
            
            <div class="flex items-center space-x-4">
                <div class="flex items-center bg-white bg-opacity-20 px-3 py-1 rounded-full">
                    <i class="fas fa-calendar-alt mr-2"></i>
                    <span id="current-date">July 28, 2025</span>
                </div>
                <button id="settings-btn" class="bg-white bg-opacity-20 hover:bg-opacity-30 px-4 py-2 rounded-full transition">
                    <i class="fas fa-cog mr-2"></i> Settings
                </button>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="flex-grow container mx-auto px-4 py-6">
        <div class="flex flex-col lg:flex-row gap-6">
            <!-- Left Sidebar - Calendar and Info -->
            <div class="w-full lg:w-1/4 space-y-6">
                <!-- Feast Information -->
                <div class="bg-white rounded-lg shadow p-5">
                    <h2 class="text-xl font-bold text-liturgical-red mb-3">Feast of the Day</h2>
                    <div class="flex items-center mb-3">
                        <div class="seasonal-color bg-liturgical-white border border-gray-300"></div>
                        <h3 class="text-lg font-semibold">{{FEAST_NAME}}</h3>
                    </div>
                    <p class="text-gray-600 mb-2">{{FEAST_CLASS}}</p>
                    <p class="text-sm text-gray-500 italic">{{FEAST_DESCRIPTION}}</p>
                    
                    <div class="mt-4 pt-3 border-t border-gray-100">
                        <h4 class="font-semibold text-gray-700 mb-2">Liturgical Season</h4>
                        <p class="flex items-center">
                            <span class="seasonal-color {{SEASON_COLOR_CLASS}}"></span>
                            {{LITURGICAL_SEASON}}
                        </p>
                    </div>
                </div>
                
                <!-- Liturgical Calendar -->
                <div class="bg-white rounded-lg shadow p-5">
                    <h2 class="text-xl font-bold text-liturgical-red mb-3">Liturgical Calendar</h2>
                    <div class="space-y-2">
                        {{#CALENDAR_DAYS}}
                        <div class="flex justify-between items-center p-2 {{DAY_CLASS}} rounded {{DAY_FONT_WEIGHT}}">
                            <span>{{DAY_DATE}}</span>
                            <span>{{DAY_FEAST}}</span>
                        </div>
                        {{/CALENDAR_DAYS}}
                    </div>
                </div>
                
                <!-- Display Options -->
                <div class="bg-white rounded-lg shadow p-5">
                    <h2 class="text-xl font-bold text-liturgical-red mb-3">Display Options</h2>
                    <div class="space-y-3">
                        <div>
                            <label class="flex items-center">
                                <input type="radio" name="display-mode" class="mr-2" checked>
                                <span>Side-by-side view</span>
                            </label>
                        </div>
                        <div>
                            <label class="flex items-center">
                                <input type="radio" name="display-mode" class="mr-2">
                                <span>Interlinear view</span>
                            </label>
                        </div>
                        <div>
                            <label class="flex items-center">
                                <input type="radio" name="display-mode" class="mr-2">
                                <span>Latin only</span>
                            </label>
                        </div>
                        <div>
                            <label class="flex items-center">
                                <input type="radio" name="display-mode" class="mr-2">
                                <span>English only</span>
                            </label>
                        </div>
                    </div>
                    
                    <div class="mt-4 pt-3 border-t border-gray-100">
                        <h3 class="font-semibold mb-2">Text Size</h3>
                        <div class="flex items-center space-x-2">
                            <button class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">A-</button>
                            <div class="w-24 h-2 bg-gray-200 rounded-full"></div>
                            <button class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">A+</button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Main Content Area -->
            <div class="w-full lg:w-3/4">
                <!-- Mass Sections Accordion -->
                <div class="bg-white rounded-lg shadow mb-6">
                    <div class="accordion-header p-4 flex justify-between items-center border-b border-gray-100">
                        <h2 class="text-xl font-bold text-liturgical-red">{{MASS_TITLE}}</h2>
                        <i class="fas fa-chevron-down text-gray-500"></i>
                    </div>
                    
                    <div class="accordion-content open">
                        <div class="p-4">
                            <!-- Preparation Section -->
                            <div class="liturgical-section mb-6">
                                <h3 class="text-lg font-semibold text-liturgical-red mb-3 flex items-center">
                                    <i class="fas fa-pray mr-2"></i> Preparation
                                </h3>
                                
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">In nomine Patris, et Filii, et Spiritus Sancti. Amen.</p>
                                    <p class="english-text">In the name of the Father, and of the Son, and of the Holy Spirit. Amen.</p>
                                </div>
                                
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">Introibo ad altare Dei.</p>
                                    <p class="english-text">I will go in to the altar of God.</p>
                                </div>
                                
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">Ad Deum qui lætificat iuventutem meam.</p>
                                    <p class="english-text">To God who giveth joy to my youth.</p>
                                </div>
                                
                                <div class="rubric mb-4">
                                    The priest makes the Sign of the Cross, saying:
                                </div>
                                
                                {{#PREPARATION_PRAYERS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{LATIN_TEXT}}</p>
                                    <p class="english-text">{{ENGLISH_TEXT}}</p>
                                </div>
                                {{/PREPARATION_PRAYERS}}
                                
                                {{#PREPARATION_ANTIPHONS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{ANTIPHON_LATIN}}</p>
                                    <p class="english-text">{{ANTIPHON_ENGLISH}}</p>
                                </div>
                                {{/PREPARATION_ANTIPHONS}}
                            </div>
                            
                            <!-- Catechumens Section -->
                            <div class="liturgical-section mb-6">
                                <h3 class="text-lg font-semibold text-liturgical-red mb-3 flex items-center">
                                    <i class="fas fa-users mr-2"></i> Instruction of Catechumens
                                </h3>
                                
                                <div class="rubric mb-4">
                                    The priest turns to the people and says:
                                </div>
                                
                                {{#CATECHUMENS_PRAYERS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{LATIN_TEXT}}</p>
                                    <p class="english-text">{{ENGLISH_TEXT}}</p>
                                </div>
                                {{/CATECHUMENS_PRAYERS}}
                                
                                {{#CATECHUMENS_ANTIPHONS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{ANTIPHON_LATIN}}</p>
                                    <p class="english-text">{{ANTIPHON_ENGLISH}}</p>
                                </div>
                                {{/CATECHUMENS_ANTIPHONS}}
                            </div>
                            
                            <!-- Faithful Section -->
                            <div class="liturgical-section mb-6">
                                <h3 class="text-lg font-semibold text-liturgical-red mb-3 flex items-center">
                                    <i class="fas fa-cross mr-2"></i> Sacrifice of the Faithful
                                </h3>
                                
                                {{#FAITHFUL_PRAYERS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{LATIN_TEXT}}</p>
                                    <p class="english-text">{{ENGLISH_TEXT}}</p>
                                </div>
                                {{/FAITHFUL_PRAYERS}}
                                
                                {{#FAITHFUL_ANTIPHONS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{ANTIPHON_LATIN}}</p>
                                    <p class="english-text">{{ANTIPHON_ENGLISH}}</p>
                                </div>
                                {{/FAITHFUL_ANTIPHONS}}
                                
                                <div class="rubric mb-4">
                                    {{CANON_DESCRIPTION}}
                                </div>
                                
                                {{#CANON_PRAYERS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{LATIN_TEXT}}</p>
                                    <p class="english-text">{{ENGLISH_TEXT}}</p>
                                </div>
                                {{/CANON_PRAYERS}}
                                
                                {{#CANON_ANTIPHONS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{ANTIPHON_LATIN}}</p>
                                    <p class="english-text">{{ANTIPHON_ENGLISH}}</p>
                                </div>
                                {{/CANON_ANTIPHONS}}
                            </div>
                            
                            <!-- Communion Section -->
                            <div class="liturgical-section mb-6">
                                <h3 class="text-lg font-semibold text-liturgical-red mb-3 flex items-center">
                                    <i class="fas fa-wine-bottle mr-2"></i> Communion
                                </h3>
                                
                                {{#COMMUNION_PRAYERS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{LATIN_TEXT}}</p>
                                    <p class="english-text">{{ENGLISH_TEXT}}</p>
                                </div>
                                {{/COMMUNION_PRAYERS}}
                                
                                {{#COMMUNION_ANTIPHONS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{ANTIPHON_LATIN}}</p>
                                    <p class="english-text">{{ANTIPHON_ENGLISH}}</p>
                                </div>
                                {{/COMMUNION_ANTIPHONS}}
                            </div>
                            
                            <!-- Dismissal Section -->
                            <div class="liturgical-section">
                                <h3 class="text-lg font-semibold text-liturgical-red mb-3 flex items-center">
                                    <i class="fas fa-door-open mr-2"></i> Dismissal
                                </h3>
                                
                                {{#DISMISSAL_PRAYERS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{LATIN_TEXT}}</p>
                                    <p class="english-text">{{ENGLISH_TEXT}}</p>
                                </div>
                                {{/DISMISSAL_PRAYERS}}
                                
                                {{#DISMISSAL_ANTIPHONS}}
                                <div class="hover-translation mb-4">
                                    <p class="latin-text">{{ANTIPHON_LATIN}}</p>
                                    <p class="english-text">{{ANTIPHON_ENGLISH}}</p>
                                </div>
                                {{/DISMISSAL_ANTIPHONS}}
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Additional Information -->
                <div class="bg-white rounded-lg shadow p-5">
                    <h2 class="text-xl font-bold text-liturgical-red mb-3">About This Feast</h2>
                    <p class="mb-3">{{FEAST_HISTORY}}</p>
                    <p>{{MASS_INFO}}</p>
                </div>
            </div>
        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-liturgical-red text-white py-6">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-bold">Sanctissima Missa</h3>
                    <p class="text-sm opacity-80">Traditional Latin Mass Generator</p>
                </div>
                <div class="flex space-x-4">
                    <a href="#" class="hover:opacity-80"><i class="fab fa-github text-xl"></i></a>
                    <a href="#" class="hover:opacity-80"><i class="fas fa-book text-xl"></i></a>
                    <a href="#" class="hover:opacity-80"><i class="fas fa-info-circle text-xl"></i></a>
                </div>
            </div>
            <div class="mt-4 pt-4 border-t border-white border-opacity-20 text-center text-sm opacity-80">
                <p>Built with reverence for the Traditional Latin Mass and modern web technologies.</p>
                <p class="mt-1">Based on the 1960 Rubrics and Butler's Algorithm for liturgical calculations.</p>
            </div>
        </div>
    </footer>

    <!-- Settings Modal -->
    <div id="settings-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-md">
            <div class="p-5 border-b border-gray-200">
                <h3 class="text-xl font-bold text-liturgical-red">Settings</h3>
            </div>
            <div class="p-5 space-y-4">
                <div>
                    <label class="block text-gray-700 mb-2">Display Mode</label>
                    <select class="w-full p-2 border border-gray-300 rounded">
                        <option>Side-by-side view</option>
                        <option>Interlinear view</option>
                        <option>Latin only</option>
                        <option>English only</option>
                    </select>
                </div>
                
                <div>
                    <label class="block text-gray-700 mb-2">Theme</label>
                    <div class="flex space-x-2">
                        <button class="w-8 h-8 rounded-full bg-liturgical-red border-2 border-white shadow"></button>
                        <button class="w-8 h-8 rounded-full bg-liturgical-purple border-2 border-white shadow"></button>
                        <button class="w-8 h-8 rounded-full bg-liturgical-green border-2 border-white shadow"></button>
                        <button class="w-8 h-8 rounded-full bg-liturgical-black border-2 border-white shadow"></button>
                    </div>
                </div>
                
                <div>
                    <label class="block text-gray-700 mb-2">Text Size</label>
                    <div class="flex items-center space-x-2">
                        <button class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">A-</button>
                        <div class="flex-grow h-2 bg-gray-200 rounded-full">
                            <div class="h-full bg-liturgical-red rounded-full w-1/2"></div>
                        </div>
                        <button class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">A+</button>
                    </div>
                </div>
                
                <div class="flex items-center">
                    <input type="checkbox" id="hover-translation" class="mr-2">
                    <label for="hover-translation">Enable hover translations</label>
                </div>
                
                <div class="flex items-center">
                    <input type="checkbox" id="dark-mode" class="mr-2">
                    <label for="dark-mode">Dark mode</label>
                </div>
            </div>
            <div class="p-5 border-t border-gray-200 flex justify-end">
                <button id="close-settings" class="px-4 py-2 bg-gray-200 rounded mr-2">Cancel</button>
                <button class="px-4 py-2 bg-liturgical-red text-white rounded">Save Settings</button>
            </div>
        </div>
    </div>

    <script>
        // Accordion functionality
        document.querySelectorAll('.accordion-header').forEach(header => {
            header.addEventListener('click', () => {
                const content = header.nextElementSibling;
                const icon = header.querySelector('i');
                
                content.classList.toggle('open');
                icon.classList.toggle('fa-chevron-down');
                icon.classList.toggle('fa-chevron-up');
            });
        });
        
        // Settings modal
        const settingsBtn = document.getElementById('settings-btn');
        const settingsModal = document.getElementById('settings-modal');
        const closeSettings = document.getElementById('close-settings');
        
        settingsBtn.addEventListener('click', () => {
            settingsModal.classList.remove('hidden');
        });
        
        closeSettings.addEventListener('click', () => {
            settingsModal.classList.add('hidden');
        });
        
        // Close modal when clicking outside
        window.addEventListener('click', (e) => {
            if (e.target === settingsModal) {
                settingsModal.classList.add('hidden');
            }
        });
        
        // Hover translation functionality
        const hoverTranslations = document.querySelectorAll('.hover-translation');
        hoverTranslations.forEach(item => {
            item.addEventListener('mouseenter', () => {
                const englishText = item.querySelector('.english-text');
                if (englishText) {
                    englishText.style.display = 'block';
                }
            });
            
            item.addEventListener('mouseleave', () => {
                const englishText = item.querySelector('.english-text');
                if (englishText) {
                    englishText.style.display = 'none';
                }
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=RobinsAIWorld/extraordinary-from-template" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>