-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
384 lines (340 loc) · 9.38 KB
/
style.css
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
/* Set the basic styles for the entire page */
body {
/* Use a modern, sans-serif font stack for readability */
font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif;
/* Make the body take up the full viewport height */
min-height: 95vh;
width: 95vw;
/* Remove default margin and padding */
margin: 0;
padding: 0;
/* Create a dark gradient background */
background: linear-gradient(to bottom, #222, #111);
/* Set text color to white for contrast against dark background */
color: white;
/* Use flexbox for vertical layout */
display: flex;
flex-direction: column;
/* Allow scrolling on the body */
overflow-y: auto;
margin: 0 auto;
}
/* Style the heading container */
.heading-container {
padding: 10px;
background: linear-gradient(45deg, #1a1a1a, #222);
text-align: center;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(255, 255, 255, 0.1);
border-radius: 8px;
margin: 10px 15px;
position: relative;
z-index: 1;
border: 1px solid #333;
transform: translateY(0);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.heading-container:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 2px 5px rgba(255, 255, 255, 0.1);
}
.heading-container h1 {
font-family: 'Poppins', sans-serif;
font-size: 2em;
margin-bottom: 5px;
color: #eee;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.heading-container p {
font-family: 'Open Sans', sans-serif;
font-size: 0.9em;
margin: 3px 0;
color: #bbb;
}
/* Style the main container that holds the race track and model names */
.container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 15px;
width: 100%;
flex-grow: 1;
padding: 15px;
box-sizing: border-box;
}
/* Style the race track element */
#raceTrack {
grid-column: 1 / 2;
grid-row: 1 / 2;
background: linear-gradient(to bottom, #222, #111);
position: relative;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}
/* Style each lane in the race track */
.lane {
position: absolute;
width: 100%;
height: 25%;
border-top: 2px dashed rgba(255, 255, 255, 0.3);
box-sizing: border-box;
}
/* Position each lane */
.lane:nth-child(1) { top: 0; }
.lane:nth-child(2) { top: 25%; }
.lane:nth-child(3) { top: 50%; }
.lane:nth-child(4) { top: 75%; }
/* Style each car in the race */
.car {
width: 100px;
position: absolute;
height: 50px;
left: 0;
transition: left 0.1s linear, transform 0.3s ease-in-out;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 12px;
color: white;
text-shadow: 1px 1px 2px black;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
animation: carAnimation 0.5s ease-in-out infinite alternate;
}
/* Define the car animation */
@keyframes carAnimation {
0% { transform: translateY(0) rotate(-0deg); }
50% { transform: translateY(-0px) rotate(0deg); }
100% { transform: translateY(0) rotate(-1deg); }
}
/* Style the car image */
.car img {
width: 100px;
height: 50px;
border-radius: 5px;
position: absolute;
top: 0;
left: 0;
}
/* Style the information display for each car */
.car-info {
position: absolute;
bottom: 5px;
left: 5px;
right: 5px;
background: rgba(0, 0, 0, 0.5);
border-radius: 3px;
padding: 2px;
font-size: 10px;
font-family: 'Courier New', monospace; /* Use a monospace font for car info */
}
/* Style the car name */
.car-name {
font-weight: bold;
text-transform: uppercase;
font-family: 'Orbitron', sans-serif; /* Futuristic font for car names */
}
/* Style the car speed display */
.car-speed {
font-weight: bold;
font-family: 'Digital-7', 'Courier New', monospace; /* Digital-style font for speed */
}
/* Style the container for model names and controls */
#modelNames {
background-color: #1a1a1a;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
overflow: auto;
font-family: 'Poppins', sans-serif; /* Modern, clean font for model names */
transform: translateY(0);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#modelNames:hover {
transform: translateY(-5px);
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 3px 7px rgba(255, 255, 255, 0.1);
}
#race-controls {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 10px;
background: linear-gradient(to right, #0a0a0a, #1a1a1a);
padding: 50px;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
margin: 0 20px 20px 20px;
width: calc(50%);
overflow: auto;
transform: translateY(0);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#race-controls:hover {
transform: translateY(-5px);
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 3px 7px rgba(255, 255, 255, 0.1);
}
#providers_models {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
gap: 10px;
background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
margin: 0 20px 20px 20px;
width: calc(60% - 40px);
height: 250px;
overflow: hidden;
transform: translateY(0);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#providers_models:hover {
transform: translateY(-5px);
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 3px 7px rgba(255, 255, 255, 0.1);
}
/* Style each model name item */
.model-name {
display: flex;
align-items: center;
margin-bottom: 10px;
font-family: 'Montserrat', sans-serif; /* Modern, clean font for model names */
}
/* Style the label for each model name */
.model-name label {
margin-right: 10px;
}
/* Style the race controls container */
/* Style the start and stop buttons */
#startButton, #stopButton {
margin: 0;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
color: white;
transition: background-color 0.3s;
background-color: #007BFF;
font-family: 'Raleway', sans-serif; /* Modern, clean font for buttons */
text-transform: uppercase; /* Uppercase text for buttons */
letter-spacing: 1px; /* Add letter spacing for buttons */
position: relative;
z-index: 10000; /* Higher than the loading indicator */
}
/* Style the buttons on hover */
#startButton:hover, #stopButton:hover {
background-color: #0056b3;
}
/* Style the finish line input */
#finishLineInput {
margin: 0;
padding: 10px 20px;
font-size: 16px;
background-color: #2a2a2a;
border: 1px solid #444;
color: #ddd;
width: 200px;
border-radius: 5px;
font-family: 'Roboto Mono', monospace; /* Monospace font for input */
}
/* Style the finish line input when focused */
#finishLineInput:focus {
outline: none;
border-color: #007BFF;
}
/* Style the winner display */
#winner {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
font-size: 24px;
font-weight: bold;
color: #FFD700;
text-shadow: 2px 2px 4px #000000;
display: none;
animation: winnerPulse 1.5s infinite;
z-index: 1000;
width: auto;
text-align: center;
pointer-events: none;
background-color: rgba(0, 0, 0, 0.8);
padding: 15px;
border: 3px solid #FFD700;
border-radius: 10px;
box-shadow: 0 0 20px #FFD700;
font-family: 'Bangers', cursive; /* Fun, energetic font for winner display */
}
/* Define the winner pulse animation */
@keyframes winnerPulse {
0% { transform: translateX(-50%) scale(1); }
50% { transform: translateX(-50%) scale(1.1); }
100% { transform: translateX(-50%) scale(1); }
}
/* Style the stream mode container */
#streamModeContainer {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
margin-top: 10px;
font-family: 'Roboto', sans-serif; /* Changed font for stream mode options */
}
/* Style radio buttons and their containers */
#streamModeContainer > div {
display: flex;
align-items: center;
font-family: 'Open Sans', sans-serif; /* Different font for radio button labels */
}
input[type="radio"] {
margin-right: 5px;
}
/* Style the prompt input */
#promptInput {
grid-column: 1 / 2;
grid-row: 2 / 3;
width: 100%;
padding: 10px;
border: 1px solid #333;
border-radius: 5px;
background-color: #2a2a2a;
color: #ddd;
box-sizing: border-box;
margin-bottom: 10px;
font-family: 'Source Code Pro', monospace; /* Monospace font for prompt input */
}
.loading-indicator {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 9999;
justify-content: center;
align-items: center;
flex-direction: column;
}
.spinner {
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-indicator p {
margin-top: 20px;
color: white;
font-size: 18px;
font-family: 'Roboto', sans-serif;
}