forked from GarimaSingh0109/WasteManagment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Carbo-footprint.css
293 lines (248 loc) · 5.23 KB
/
Carbo-footprint.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
/* Reset some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
color: inherit;
}
/* Progress Bar */
#progress-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 9px;
z-index: 99990;
}
#progress-bar {
height: 9px;
width: 0;
background: linear-gradient(90deg, rgb(38, 166, 154) 0%, rgb(102, 187, 106) 50%, rgb(76, 175, 80) 100%);
box-shadow: 0 0 4px rgba(38, 166, 154, 0.7), 0 0 10px rgba(76, 175, 80, 0.7);
transition: width 0.09s ease-in-out;
border-radius: 10px;
}
/* Header and Navigation */
header {
background-color: #00796b;
color: white;
padding: 15px;
position: sticky;
top: 0;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
font-size: 1.5rem;
margin: 0;
color: white;
}
nav ul {
list-style-type: none;
display: flex;
}
nav ul li {
margin-left: 20px;
}
nav ul li a {
color: white;
transition: color 0.3s;
}
nav ul li a:hover {
color: #e0f7fa;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 7px;
}
.nav-controls {
display: flex;
align-items: center;
}
#theme-toggle, #menu-toggle {
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
margin-left: 15px;
}
#menu-toggle {
display: none;
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #333;
color: white;
}
body.dark-mode header {
background-color: #00796b;
}
body.dark-mode .button a {
color: #ddd;
}
body.dark-mode #progress-container {
background-color: #444;
}
body.dark-mode #progress-bar {
background: linear-gradient(90deg, rgb(38, 166, 154) 0%, rgb(102, 187, 106) 50%, rgb(76, 175, 80) 100%);
}
.dark-mode label{
color: black;
}
/* Responsive Styles */
@media (max-width: 768px) {
.nav-menu {
display: none; /* Hide nav menu on smaller screens */
}
#menu-toggle {
display: block; /* Show menu toggle button */
}
}
main {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Makes sure the content is vertically centered */
background-color: #EDF6F9; /* Light background for the main section */
padding: 20px;
}
main .container {
width: 100%; /* Ensures the container takes full width but stays within max-width */
max-width: 600px; /* Keeps the layout consistent */
background-color: #FFDDD2; /* Matches the container's background */
border: 1px solid #006D77;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
h1 {
margin-bottom: 20px;
color: #006D77;
}
label {
display: block;
margin: 10px 0 5px;
font-weight: bold;
}
input {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #006D77;
border-radius: 5px;
transition: border-color 0.3s;
}
input:focus {
border-color: #004c54;
outline: none;
}
button {
padding: 10px 15px;
background-color: #006D77;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}
button:hover {
background-color: #004c54;
transform: scale(1.05);
}
.result, .tips {
margin-top: 20px;
font-weight: bold;
background-color: #FFF;
border: 1px solid #006D77;
border-radius: 5px;
padding: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-controls {
display: flex;
justify-content: space-between;
align-items: center;
}
.social-media {
display: flex;
justify-content: center;
gap: 15px; /* Space between the icons */
margin-top: 20px;
}
.social-media a {
display: inline-block;
font-size: 2rem;
color: #6366F1; /* Adjust this to match your site's theme */
transition: color 0.3s ease;
}
.social-media a:hover {
color: #4f50c4; /* Darker color on hover */
}
.social-media box-icon {
width: 40px; /* Adjust the size as per your requirement */
height: 40px;
}
@media (max-width: 768px) {
header {
flex-wrap: wrap;
}
nav {
order: 3;
width: 100%;
margin-top: 15px;
}
nav ul {
flex-direction: column;
display: none;
}
nav ul.show {
display: flex;
}
nav ul li {
margin: 10px 0;
}
#menu-toggle {
display: block;
}
}
#footer {
background-color: #00796b;
color: white;
text-align: center;
padding: 20px;
}
#newsletter-form {
display: flex;
justify-content: center;
gap: 10px;
margin: 20px 0;
}
#newsletter-form input {
padding: 10px;
border: 1px solid #e0f7fa;
border-radius: 5px;
}
#newsletter-form button {
background-color: #26a69a;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}
#newsletter-form button:hover {
background-color: #004d40;
transform: scale(1.05);
}
.social-media {
margin: 20px 0;
}
.social-media a {
color: white;
margin: 0 10px;
}