-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
391 lines (333 loc) · 7.54 KB
/
styles.css
File metadata and controls
391 lines (333 loc) · 7.54 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
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
/* Reset defaults */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #003366;
--accent: #CC0000;
--secondary: #4D4C55;
--light: #CCCCCC; /* used only for dividing lines */
--white: #FFFFFF;
}
body {
font-family: 'Montserrat', Avenir, sans-serif;
line-height: 1.6;
background-color: var(--white);
color: var(--secondary);
}
/* Container */
.container {
width: 90%;
max-width: 1100px;
margin: auto;
padding: 20px 0;
}
/* Header */
header {
background: var(--primary);
color: var(--white);
padding: 60px 0;
text-align: center;
}
header h1 {
font-size: 3rem;
margin-bottom: 10px;
}
header .tagline {
font-size: 1.2rem;
margin-bottom: 5px;
}
header .dates {
font-size: 1.1rem;
margin-bottom: 20px;
}
header .header-image {
max-width: 100%;
height: auto;
margin: 20px 0;
}
header .cta {
margin-top: 20px;
}
header .btn {
display: inline-block;
background: var(--accent);
color: var(--white);
padding: 10px 20px;
margin: 0 10px;
text-decoration: none;
font-weight: bold;
border-radius: 4px;
transition: background 0.3s ease, color 0.3s ease;
}
header .btn:hover {
background: var(--secondary);
color: var(--white);
}
header .event-ended {
font-size: 1.2rem;
margin-bottom: 15px;
color: var(--accent);
font-weight: bold;
}
/* Sections */
.section {
padding: 60px 0;
background: var(--white);
margin-bottom: 20px;
/* border-bottom: 1px solid var(--light); */
}
/* Section headings */
.section h2 {
text-align: center;
margin-bottom: 40px;
font-size: 2rem;
color: var(--primary);
}
/* Section images float to the side */
.section-image {
float: left;
width: 40%;
margin: 0 20px 20px 0;
}
/* Clear float after paragraphs if needed */
.section p::after {
content: "";
display: table;
clear: both;
}
/* ========== Updated Hackathon Tracks Layout ========== */
/* Grid container for the tracks */
.tracks-grid {
display: grid;
/* Adjust the minmax and repeat to control columns and responsiveness */
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px; /* spacing between cards */
}
/* Style each track item as a card */
.track {
border: 1px solid var(--light); /* faint border to mimic a "card" look */
border-radius: 6px;
padding: 20px;
background-color: #fff; /* ensure a white card background */
transition: box-shadow 0.2s ease-in-out;
}
/* Hover effect (optional) */
.track:hover {
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Heading inside each card */
.track h3 {
font-size: 1.25rem;
color: var(--primary);
margin-bottom: 10px;
}
/* Paragraph text in each card */
.track p {
margin-bottom: 15px;
line-height: 1.4;
}
/* “Learn More” link styling */
.track a {
color: var(--accent);
text-decoration: none;
font-weight: bold;
}
.track a:hover {
text-decoration: underline;
}
/* ========== Updated Awards Layout ========== */
/* Awards section header with a "More Awards" link on the right */
.awards-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.awards-header h2 {
font-size: 2rem;
color: var(--primary);
}
.more-awards {
color: var(--primary);
text-decoration: none;
font-weight: bold;
transition: color 0.2s ease;
}
.more-awards:hover {
color: var(--accent);
}
/* Awards grid layout (similar to the 3-column event cards) */
.awards-grid {
display: grid;
/* Adjust columns as needed; this example will create up to 3 columns */
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
/* Individual "card" style for each award */
.award-card {
border: 1px solid var(--light);
padding: 20px;
/* Remove rounded corners */
border-radius: 0;
text-align: left;
transition: box-shadow 0.2s ease-in-out;
}
/* Hover effect to match the style from your screenshot (optional) */
.award-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Card headings */
.award-card h3 {
font-size: 1.2rem;
font-weight: bold;
color: var(--primary);
margin-bottom: 10px;
}
/* Card paragraphs */
.award-card p {
margin-bottom: 10px;
line-height: 1.4;
}
/* "Learn More" button styling to resemble the screenshot's look */
.learn-more {
background-color: transparent;
border: 2px solid var(--primary);
color: var(--primary);
padding: 10px 20px;
cursor: pointer;
text-transform: uppercase;
font-weight: bold;
border-radius: 0; /* remove corners */
transition: background-color 0.2s ease, color 0.2s ease;
}
.learn-more:hover {
background-color: var(--primary);
color: #fff;
}
/* Hidden awards are displayed only after the user clicks "Show More" */
.hidden-award {
display: none;
}
/* "Show More" button container */
.show-more-container {
text-align: center;
margin-top: 20px;
}
/* The "Show More" button itself */
.show-more-btn {
background-color: transparent;
border: 2px solid var(--primary);
color: var(--primary);
padding: 10px 20px;
cursor: pointer;
text-transform: uppercase;
font-weight: bold;
border-radius: 0; /* remove corners */
transition: background-color 0.2s ease, color 0.2s ease;
}
.show-more-btn:hover {
background-color: var(--primary);
color: #fff;
}
/* ========== Remove Rounded Corners Site-Wide ========== */
* {
border-radius: 0 !important;
}
/* Schedule */
.schedule-item {
margin-bottom: 30px;
}
.schedule-item h3 {
font-size: 1.5rem;
color: var(--secondary);
margin-bottom: 10px;
}
/* Footer */
footer {
background: var(--secondary);
color: var(--white);
text-align: center;
padding: 20px 0;
}
.footer-link {
color: var(--light);
text-decoration: underline;
}
.footer-link:hover {
color: var(--white);
}
/* On-scroll animations */
.hidden {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate {
opacity: 1;
transform: translateY(0);
}
/* Responsive adjustments */
@media (max-width: 768px) {
header h1 {
font-size: 2.5rem;
}
.section h2 {
font-size: 1.8rem;
}
/* Remove float on section images for smaller screens */
.section-image {
float: none;
width: 100%;
margin: 0 auto 20px;
display: block;
}
}
/* ========== FAQ Accordion ========== */
.faq-section {
background-color: var(--white);
}
.faq-section h2 {
font-size: 2rem;
color: var(--blue);
margin-bottom: 10px;
text-align: center;
}
.accordion {
max-width: 800px;
margin: 20px auto 0;
}
.accordion-item {
border: 1px solid var(--light-gray);
border-radius: 4px;
margin-bottom: 10px;
overflow: hidden;
}
.accordion-header {
background-color: var(--white);
color: var(--blue);
cursor: pointer;
width: 100%;
text-align: left;
border: none;
outline: none;
padding: 15px 20px;
font-size: 1rem;
font-weight: 600;
transition: background 0.3s;
}
.accordion-header:hover {
background-color: #f2f2f2;
}
.accordion-content {
display: none;
padding: 15px 20px;
background-color: #fafafa;
color: var(--gray);
font-size: 0.95rem;
}
.accordion-item.active .accordion-content {
display: block;
}