File size: 7,697 Bytes
c8661e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');


/* Main styling */
body {
    background: linear-gradient(135deg, #e0f2f7 0%, #b3e0f2 100%); /* Light blue gradient */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333; /* Default text color */
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Header styling */
.game-header {
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Game card styling */
.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.18);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Progress bar styling */
.progress-container {
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 5px;
    margin: 20px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #00C9FF, #92FE9D);
    height: 30px;
    border-radius: 20px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    min-width: 0; /* Allow it to be 0% width */
}

/* XP and Level styling */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Space between items */
}

.stat-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: 'Orbitron', monospace;
    flex-grow: 1; /* Allow items to grow */
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* General button styling */
.button-group {
    display: flex;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.button-group button, .button-full-width {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex: 1; /* Make buttons grow to fill space */
    min-width: 150px; /* Minimum width for buttons */
    text-decoration: none; /* For anchor tags acting as buttons */
    display: inline-block;
}

.button-full-width {
    width: 100%;
}

.button-group button:hover, .button-full-width:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #7b8cec, #8a5bb8);
}


/* Achievement badge */
.achievement {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 10px 5px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Welcome screen styling */
.welcome-container {
    text-align: center;
    padding: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    margin: 20px auto; /* Centered */
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.welcome-title {
    font-size: 3.5em;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-text {
    font-size: 1.3em;
    color: #34495e; /* Darker text for readability */
    margin: 30px 0;
    line-height: 1.6;
}

.welcome-text strong {
    color: #2c3e50;
}

.welcome-image {
    max-width: 100%;
    max-height: 100px; /* fixed syntax */
    border-radius: 12px; /* slightly softer than 15px */
    margin-top:60px;
    object-fit: contain; /* keeps aspect ratio without distortion */
    display: block;
    margin-left: auto;
    margin-right: auto; /* centers the image */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* softer shadow for a clean look */
}


/* Certificate styling */
.certificate {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 3px solid #FFD700;
}

/* Video container styling */
.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin: 20px 0;
    width: 100%; /* Ensure video container takes full width */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Question container styling */
.question-container {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

/* Video watched indicator */
.video-watched {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    color: #2E7D32;
    font-weight: bold;
    text-align: center;
}

/* Feedback messages */
.feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #badbcc;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.feedback.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

/* Utility classes for layout */
.columns-3 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping */
}

.columns-3 > div {
    flex: 1;
    min-width: 250px; /* Ensure columns don't get too small */
}

.columns-5 {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.columns-5 > div {
    flex: 1;
    min-width: 150px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    color: #34495e;
}

p {
    line-height: 1.6;
}