-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyles.css
585 lines (501 loc) · 12 KB
/
styles.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
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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
/* Existing CSS content */
body {
font-family: Georgia, serif;
margin: 0;
background-color: #71bf71;
}
.scrollable-container {
overflow-y: auto;
height: calc(100% - 80px);
}
.header {
background-color: black;
color: white;
padding: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
font-size: 18px; /* Slightly larger font size */
font-weight: bold; /* Bold text */
}
.navbar {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.nav-list {
list-style: none;
display: flex;
justify-content: space-around;
align-items: center;
margin: 0;
padding: 0;
}
.nav-list li {
margin: 0 10px;
}
.nav-list a {
color: white;
text-decoration: none;
font-size: 14px;
padding: 5px 10px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-list a:hover {
background-color: #555;
color: #ffdd57;
border-radius: 4px;
}
/* Hero Section */
.hero {
position: relative;
text-align: center;
height: 100vh; /* Ensure the hero section occupies the full viewport height */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px; /* Ensure there's space around the content */
box-sizing: border-box;
}
.hero-image {
width: 100%;
height: auto;
position: absolute;
top: 0;
left: 0;
z-index: -1; /* Place the image behind the text */
}
.hero-text-box {
color: white;
padding: 20px;
width: 65%; /* Ensure it's not too wide */
box-sizing: border-box;
margin-bottom: 20px; /* Add spacing between the text box and the button */
top: 40%;
left: 50%;
background-color: rgba(126, 217, 87, 0.75);
color: #0f1544;
padding: 40px 60px;
border-radius: 50px / 25px;
max-height: 45vh;
z-index: 2;
}
.button-container {
text-align: center; /* Center the button container */
}
.cta-button {
display: inline-block;
padding: 10px 20px;
color: white;
background-color: rgba(126, 217, 87, 0.75);
text-decoration: none;
border-radius: 5px;
font-size: 1.2em;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: darkgreen;
}
.logos-container {
position: absolute;
bottom: 70px;
left: 20px;
display: flex;
gap: 10px; /* Add some space between the logos */
}
.logo {
width: 50px; /* Adjust size as necessary */
height: auto;
}
.scroll-annotation-new {
position: absolute;
bottom: 70px; /* Adjust to float just above the bottom */
left: 50%;
transform: translateX(-50%);
font-size: 18px;
animation: blink 1.5s step-end infinite;
z-index: 2; /* Ensures it is above the overlay */
color: #ffffff; /* White color for better visibility */
}
/* Responsive Design */
@media (max-width: 768px) {
.nav-list {
flex-direction: column;
align-items: center;
}
.nav-list li {
margin: 10px 0;
}
.hero-text-box {
padding: 30px 50px;
width: 90%; /* Adjust width for smaller screens */
}
.hero-text-box h1 {
font-size: 28px;
}
.hero-text-box p {
font-size: 16px;
}
.logo {
bottom: 50px; /* Adjusted for smaller screens */
}
}
/* Additional CSS for Best Practices section */
h1 {
text-align: center;
margin: 20px 0;
color: #fff;
}
.cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
padding: 20px;
}
.card {
background-color: #ffd962;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 300px;
padding: 20px;
text-align: center;
}
.card h2 {
background-color: #006400;
color: #fff;
padding: 10px;
border-radius: 8px 8px 0 0;
margin: -20px -20px 20px -20px;
text-align: center;
}
.card p {
margin: 0;
}
/* CSS for About Us section */
main {
text-align: center;
padding: 20px;
}
.about-cards {
display: flex;
justify-content: center;
gap: 20px;
padding: 20px;
}
.about-card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 300px;
padding: 20px;
text-align: center;
}
.card-header {
background-color: #fec925;
color: #fff;
padding: 10px;
border-radius: 8px 8px 0 0;
margin: -20px -20px 20px -20px;
}
.about-card p {
margin: 0;
color: #0f1544;
}
.about-card img, .about-card svg {
display: block;
margin: 0 auto 10px;
width: 64px; /* Set a uniform size for all icons */
height: auto;
}
/* Styles for impact-calculator */
/* Add the following CSS to style the title container like the input fields */
.title-container {
background-color: #006400;
color: white;
padding: 15px;
margin: 20px 0;
border-radius: 5px;
display: inline-block;
text-align: center;
}
.title-container h1 {
margin: 0;
font-size: 24px;
}
.title-container h1 {
display: block;
margin-bottom: 5px;
font-size: 16px;
}
#video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* Ensure the video stays behind other content */
object-fit: cover; /* Ensure the video covers the entire background */
}
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden; /* Prevent scrolling */
}
.calculator-page {
position: relative;
z-index: 1; /* Ensure the calculator content appears above the video */
}
body.calculator-page {
background-color: transparent;
font-family: Georgia, serif;
color: white;
text-align: center;
}
.calculator-page h1 {
font-size: 28px; /* Increased font size for the main heading */
}
.calculator-page h2 {
font-size: 24px; /* Ensuring consistent font sizing between headings */
}
.content-container {
display: flex;
justify-content: space-between;
padding: 20px;
align-items: start;
}
.input-section {
width: 30%;
padding-right: 20px;
}
.input-box {
background-color: #006400;
border-radius: 10px; /* More rounded corners */
padding: 10px;
margin-bottom: 20px;
}
.input-box a {
color: #d0d0dd;
text-decoration: underline;
}
.input {
background-color: white;
border-radius: 5px;
padding: 8px;
margin-top: 6px;
width: calc(100% - 16px);
}
.calculate-button {
background-color: #ffd962;
color: white;
font-family: Georgia, serif; /* Font changed to Georgia */
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
width: 80%; /* Reduced width for better alignment */
font-size: 18px; /* Increased font size */
font-weight: bold; /* Made the text bold */
}
.divider {
border-left: 2px solid white;
height: 500px;
margin-left: 10px;
}
.results-section {
width: 65%;
margin-top: 20px; /* Adjusted for alignment */
}
.semi-circle {
width: 350px; /* Further increased size */
height: 175px;
background: #006400; /* Dark green */
border-top-left-radius: 175px;
border-top-right-radius: 175px;
position: relative;
margin: 20px auto 10px; /* Adjusted spacing */
}
.smaller-semi-circle {
width: 160px; /* Size of the smaller semi-circle */
height: 80px;
background: #71bf71; /* Light green color */
border-top-left-radius: 160px;
border-top-right-radius: 160px;
position: absolute;
top: 58%;
left: 67%; /* Centers horizontally */
transform: translateX(-50%); /* Adjusts the centering horizontally */
bottom: 20px; /* Adjusts the position to be inside the larger arc */
}
.efficiency-box {
background-color: #efc952;
border-top-right-radius: 20px; /* Highly rounded top-right */
border-bottom-left-radius: 20px; /* Highly rounded bottom-left */
padding: 10px;
width: 28%; /* Reduced width for side-by-side alignment */
display: inline-block;
margin: 5px;
position: relative;
height: 60px; /* Fixed height */
vertical-align: top;
margin-top: 30px; /* Spacing from the semi-circle */
}
.efficiency-box p {
position: absolute;
bottom: 5px;
left: -0.5%;
width: 100%;
text-align: center;
}
/* New styles for results text */
.efficiency-box .result-value {
color: white;
font-size: 32px; /* Increased font size */
font-weight: bold;
position: absolute;
top: -25px; /* Positioning higher inside the box */
left: 50%;
transform: translateX(-50%);
width: 100%;
text-align: center;
}
.comparison-box {
background-color: #efc952;
border-top-right-radius: 20px; /* Highly rounded top-right */
border-bottom-left-radius: 20px; /* Highly rounded bottom-left */
padding: 10px;
width: 92%; /* Reduced width for side-by-side alignment */
display: inline-block;
margin: 5px;
position: relative;
height: 125px; /* Fixed height */
vertical-align: top;
margin-top: 30px; /* Spacing from the semi-circle */
}
.comparison-box p {
position: absolute;
top: 0px;
left: -0.5%;
width: 100%;
text-align: center;
}
.comparison-box .result-value {
color: white;
font-size: 24px; /* Increased font size */
font-weight: bold;
margin: 0%;
position: relative;
top: 20%;/* Positioning higher inside the box */
left: 50%;
transform: translateX(-50%);
width: 100%;
text-align: center;
}
/* Hero Section */
.hero-info {
position: relative;
height: 100vh;
overflow: hidden;
background-image:
linear-gradient(rgba(162, 213, 162, 0.4), rgba(162, 213, 162, 0.4)),
url('img/info-background.jpg'); /* Update with the actual path to your image */
background-size: cover;
background-position: center;
}
.hero-info-text-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color:transparent;
color: #0f1544;
padding: 40px 60px;
width: 65%; /* Adjusted width */
border-radius: 50px / 25px; /* Fully curved left and right edges */
text-align: center;
z-index: 2; /* Ensures text is above the overlay */
}
.hero-info-text-box h1 {
font-family: 'Georgia', serif;
font-size: 38px; /* Increased font size */
font-weight: normal; /* Less bold */
margin: 0;
}
.hero-info-text-box p {
font-family: 'Cardo', serif;
font-size: 22px; /* Increased font size */
margin: 20px 0 0;
}
.scroll-annotation {
position: absolute;
bottom: -190px; /* Adjust to float just above the bottom */
left: 50%;
transform: translateX(-50%);
font-size: 18px;
animation: blink 1.5s step-end infinite;
z-index: 2; /* Ensures it is above the overlay */
color: #ffffff; /* White color for better visibility */
}
@keyframes blink {
from, to {
opacity: 1;
}
50% {
opacity: 0;
}
}
/* Info Page Styles */
.info-page {
padding: 20px;
background-color: #a2d5a2; /* Lighter green background */
display: flex;
flex-direction: column;
align-items: center; /* Centers the tiles horizontally */
}
.tile {
position: relative;
background-color: #2d5a27; /* Green background */
border-radius: 10px;
padding: 20px;
margin: 60px; /* Increase margin to add more space between tiles */
text-align: center;
width: 60%;
}
.centered-icon {
width: 100px; /* Adjust size as necessary */
height: auto;
position: absolute;
top: -50px; /* Adjust to move the icon out of the box */
left: 50%;
transform: translateX(-50%);
/* Remove bubble styles */
background-color: transparent;
border-radius: 0;
padding: 0;
box-shadow: none;
}
.invert-colors {
filter: invert(100%);
}
.tile h2 {
margin-top: 70px; /* Adjust to provide space for the icon */
color: #fff;
font-size: 1.1em;
}
.tile p {
color: #fff;
text-align: justify;
font-size: 1.1em;
}
.expand-button {
background-color: #fdd835;
border: none;
color: #000;
padding: 10px 20px;
margin-top: 20px;
border-radius: 5px;
cursor: pointer;
}
.expand-button:hover {
background-color: #ffeb3b;
}