Repository navigation
Expand file tree
/
Copy pathtest.css
More file actions
199 lines (183 loc) · 4.75 KB
/
Copy pathtest.css
File metadata and controls
199 lines (183 loc) · 4.75 KB
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
/* ---------- BASIC LAYOUT ---------- */
:root{
--accent: #00ff66;
--muted-bg: rgba(0,0,0,0.6);
--panel-bg: rgba(10,10,10,0.65);
}
html,body{
height:100%;
margin:0;
background:#000; /* keeps edges black behind matrix */
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
color: #e6f7e6;
}
/* Matrix canvas sits behind everything */
#matrixCanvas {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
z-index: -2;
display: block;
}
/* camera container centered */
#cameraContainer {
position: relative;
width: 640px;
margin: 28px auto;
text-align: center;
z-index: 10;
max-width: calc(100% - 32px);
}
/* Camera video preview */
#cameraFeed {
width: 100%;
height: auto;
border-radius: 14px;
overflow: hidden;
box-shadow:
0 12px 30px rgba(0,0,0,0.6),
0 0 50px rgba(0,255,102,0.06) inset;
border: 2px solid rgba(0,255,102,0.06);
display: block;
transform-origin: center center;
transition: transform 200ms ease, box-shadow 300ms ease;
}
/* subtle scale on hover */
#cameraFeed:hover{
transform: scale(1.02);
box-shadow:
0 18px 50px rgba(0,0,0,0.7),
0 0 70px rgba(0,255,102,0.11) inset;
}
/* overlay timestamp (top-right) */
#timestampOverlay {
position: absolute;
top: 12px;
right: 12px;
background: var(--muted-bg);
color: #dfffe6;
padding: 6px 10px;
border-radius: 8px;
font-size: 13px;
backdrop-filter: blur(4px);
box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
/* center countdown (big circular number) */
#countdownDisplay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(1);
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
color: var(--accent);
font-size: 44px;
border-radius: 50%;
width: 110px;
height: 110px;
display: none;
align-items: center;
justify-content: center;
border: 2px solid rgba(0,255,102,0.12);
box-shadow: 0 6px 30px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,102,0.05);
z-index: 20;
}
/* controls */
#controls {
margin: 10px 0 6px;
}
button {
margin: 6px 6px;
padding: 10px 14px;
border-radius: 8px;
border: none;
background: rgba(255,255,255,0.06);
color: #e8ffee;
cursor: pointer;
min-width: 92px;
transition: transform 120ms ease, box-shadow 200ms ease, background 180ms;
box-shadow: 0 6px 14px rgba(0,0,0,0.45);
backdrop-filter: blur(4px);
}
button:hover{
transform: translateY(-3px);
background: linear-gradient(180deg, rgba(0,255,102,0.06), rgba(255,255,255,0.02));
box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0,255,102,0.08);
}
/* filters row */
#filters{ margin: 8px 0; }
.filterBtn{
padding: 8px 12px;
border-radius: 6px;
}
/* settings panel */
#settingsPanel {
margin: 8px auto;
padding: 10px;
background: rgba(255,255,255,0.02);
border-radius: 8px;
width: calc(100% - 40px);
text-align: left;
}
/* AI Results panel - hidden by default, animated in when .show added */
#aiResults {
width: calc(100% - 20px);
margin: 12px auto 0;
padding: 12px;
border-radius: 10px;
background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(10,10,10,0.3));
border: 1px solid rgba(0,255,102,0.06);
box-shadow: 0 10px 30px rgba(0,0,0,0.6);
opacity: 0;
transform: translateY(20px) scale(0.99);
transition: opacity 420ms cubic-bezier(.2,.9,.3,1), transform 420ms cubic-bezier(.2,.9,.3,1);
z-index: 30;
}
/* shown state */
#aiResults.show {
display: block; /* previously set to block by JS, keep as block for animation */
opacity: 1;
transform: translateY(0) scale(1);
}
/* list items appear staggered via inline animation-delay set in JS */
#aiResults ul {
list-style: none;
margin: 6px 0 0;
padding: 0;
}
#aiResults li {
margin: 6px 0;
padding: 8px;
border-radius: 8px;
background: rgba(0,0,0,0.25);
color: #e9ffe9;
font-size: 14px;
display: inline-block;
min-width: 120px;
transform: translateX(-12px);
opacity: 0;
animation: aiFadeIn 420ms forwards;
}
/* AI item animation keyframes (fade + slide from left) */
@keyframes aiFadeIn {
to {
transform: translateX(0);
opacity: 1;
}
}
/* accessibility & responsive */
@media (max-width: 768px) {
#cameraContainer { width: 100%; margin: 14px auto; }
#countdownDisplay { width: 86px; height: 86px; font-size: 34px; }
button { min-width: 72px; padding: 8px 10px; }
}
/* minor decorative glow to match matrix theme */
#cameraContainer::before{
content: "";
pointer-events: none;
position: absolute;
inset: -18px;
border-radius: 18px;
box-shadow: 0 0 80px rgba(0,255,102,0.035);
z-index: -1;
}