GarGerry commited on
Commit
edad6bb
·
verified ·
1 Parent(s): f9b2c5e

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +161 -62
style.css CHANGED
@@ -1,148 +1,247 @@
1
- /* Global Styles */
2
  body {
3
  font-family: Arial, sans-serif;
4
  margin: 0;
5
  padding: 0;
6
- background-color: #f5f5f5;
7
  box-sizing: border-box;
 
8
  }
9
 
10
- /* Navbar */
11
  .navbar {
12
- background-color: #004d00; /* Dark Green */
 
 
 
 
13
  padding: 10px 20px;
14
  display: flex;
15
  justify-content: flex-start;
16
  align-items: center;
17
- position: fixed;
18
- width: 100%;
19
- top: 0;
20
- left: 0;
21
  }
22
 
23
- .logo img {
24
  height: 40px;
25
  }
26
 
27
- /* Headline */
28
  .headline {
29
- margin-top: 70px;
30
  text-align: center;
31
- background-color: #004d00; /* Dark Green */
32
  color: white;
33
- padding: 20px;
 
34
  }
35
 
36
  .headline h1 {
37
- margin: 0;
38
  font-size: 36px;
 
39
  }
40
 
41
  .headline p {
42
  font-size: 18px;
43
  }
44
 
45
- /* Main Content */
46
  .content {
47
- margin: 40px auto;
48
- max-width: 600px;
49
  background-color: white;
50
- padding: 20px;
51
- border-radius: 10px;
52
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
 
 
53
  }
54
 
55
- .currency-box,
56
- .currency-group,
57
- .steps {
58
- margin-bottom: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
- .currency-box label,
62
- .currency-group label,
63
- .steps h3 {
64
  font-weight: bold;
65
- display: block;
66
  margin-bottom: 5px;
67
  }
68
 
69
- .currency-box input,
70
- .currency-group select,
71
- .currency-box button {
72
  width: 100%;
73
- padding: 10px;
74
- margin: 5px 0;
75
  border: 1px solid #ccc;
76
- border-radius: 5px;
77
  box-sizing: border-box;
78
  }
79
 
80
- .currency-group select,
81
- .currency-box input {
 
 
82
  width: 100%;
 
 
83
  }
84
 
85
- .swap-btn {
86
- font-size: 24px;
87
- cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
88
  padding: 10px;
89
- background-color: #004d00;
90
- border: none;
91
- border-radius: 50%;
 
 
 
 
 
 
92
  color: white;
 
 
 
 
 
 
 
 
93
  display: flex;
94
  justify-content: center;
95
  align-items: center;
96
  }
97
 
98
- .converter-container button {
 
 
 
 
99
  background-color: #004d00;
 
 
 
 
100
  color: white;
 
 
 
101
  border: none;
102
- padding: 15px;
103
- border-radius: 5px;
104
  width: 100%;
105
- cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  }
107
 
108
  .steps {
109
  display: flex;
110
- justify-content: space-between;
 
111
  flex-wrap: wrap;
 
112
  }
113
 
114
  .step {
115
- background-color: #f0f0f0;
116
- padding: 15px;
117
  margin: 10px;
118
- border-radius: 5px;
119
- width: 30%;
120
  text-align: center;
121
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
122
  }
123
 
124
- /* Footer */
 
 
 
125
  .footer {
126
- background-color: #333;
127
  color: white;
 
128
  text-align: center;
129
- padding: 20px;
130
  margin-top: 40px;
 
 
 
 
 
131
  }
132
 
133
- /* Responsive Design */
134
- @media (max-width: 768px) {
 
 
 
 
 
 
 
 
135
  .steps {
136
  flex-direction: column;
137
  }
138
 
139
- .step {
 
 
140
  width: 100%;
141
  }
 
 
 
 
142
  }
143
 
144
- /* How to use box alignment */
145
- .how-to-use .steps {
146
- display: block;
147
- margin-top: 20px;
 
 
148
  }
 
 
1
  body {
2
  font-family: Arial, sans-serif;
3
  margin: 0;
4
  padding: 0;
 
5
  box-sizing: border-box;
6
+ overflow-x: hidden; /* Prevent horizontal scroll */
7
  }
8
 
 
9
  .navbar {
10
+ position: fixed;
11
+ top: 0;
12
+ left: 0;
13
+ width: 100%;
14
+ background-color: #006400;
15
  padding: 10px 20px;
16
  display: flex;
17
  justify-content: flex-start;
18
  align-items: center;
 
 
 
 
19
  }
20
 
21
+ .navbar .logo img {
22
  height: 40px;
23
  }
24
 
 
25
  .headline {
 
26
  text-align: center;
27
+ background-color: #004d00;
28
  color: white;
29
+ padding: 50px 20px;
30
+ margin-top: 60px;
31
  }
32
 
33
  .headline h1 {
 
34
  font-size: 36px;
35
+ font-weight: bold;
36
  }
37
 
38
  .headline p {
39
  font-size: 18px;
40
  }
41
 
 
42
  .content {
 
 
43
  background-color: white;
44
+ padding: 40px 20px;
45
+ margin-top: 20px;
46
+ display: flex;
47
+ justify-content: center;
48
+ align-items: center;
49
  }
50
 
51
+ .converter-container {
52
+ display: flex;
53
+ flex-direction: column;
54
+ align-items: center;
55
+ width: 100%;
56
+ max-width: 800px;
57
+ margin: 0 auto;
58
+ padding: 30px;
59
+ border-radius: 12px;
60
+ border: 2px solid #ccc;
61
+ background-color: #f8f8f8;
62
+ box-sizing: border-box;
63
+ }
64
+
65
+ .currency-box {
66
+ margin: 10px 0;
67
+ width: 100%;
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: flex-start;
71
  }
72
 
73
+ .currency-box label {
 
 
74
  font-weight: bold;
75
+ font-size: 16px;
76
  margin-bottom: 5px;
77
  }
78
 
79
+ .currency-box input {
80
+ padding: 15px;
81
+ font-size: 16px;
82
  width: 100%;
83
+ max-width: 400px;
84
+ border-radius: 8px;
85
  border: 1px solid #ccc;
 
86
  box-sizing: border-box;
87
  }
88
 
89
+ .currency-select {
90
+ display: flex;
91
+ justify-content: center;
92
+ align-items: center;
93
  width: 100%;
94
+ margin: 20px 0;
95
+ flex-wrap: wrap;
96
  }
97
 
98
+ .currency-group {
99
+ display: flex;
100
+ flex-direction: column;
101
+ margin: 10px;
102
+ flex-grow: 1;
103
+ width: 100%;
104
+ max-width: 180px;
105
+ }
106
+
107
+ .currency-group label {
108
+ font-weight: bold;
109
+ font-size: 16px;
110
+ }
111
+
112
+ .currency-group select {
113
  padding: 10px;
114
+ font-size: 16px;
115
+ width: 100%;
116
+ border-radius: 8px;
117
+ border: 1px solid #ccc;
118
+ box-sizing: border-box;
119
+ }
120
+
121
+ #swap-btn {
122
+ background-color: #006400;
123
  color: white;
124
+ cursor: pointer;
125
+ padding: 12px 20px;
126
+ border-radius: 50%;
127
+ border: none;
128
+ font-size: 20px;
129
+ margin: 10px;
130
+ height: 50px;
131
+ width: 50px;
132
  display: flex;
133
  justify-content: center;
134
  align-items: center;
135
  }
136
 
137
+ #swap-btn i {
138
+ font-size: 24px;
139
+ }
140
+
141
+ #swap-btn:hover {
142
  background-color: #004d00;
143
+ }
144
+
145
+ #convert-btn {
146
+ background-color: #006400;
147
  color: white;
148
+ cursor: pointer;
149
+ padding: 15px 30px;
150
+ font-size: 16px;
151
  border: none;
152
+ border-radius: 8px;
 
153
  width: 100%;
154
+ margin-top: 10px;
155
+ }
156
+
157
+ #convert-btn:hover {
158
+ background-color: #004d00;
159
+ }
160
+
161
+ #result {
162
+ font-size: 18px;
163
+ margin-top: 20px;
164
+ }
165
+
166
+ .how-to-use {
167
+ background-color: #004d00;
168
+ color: white;
169
+ padding: 30px 20px;
170
+ margin-top: 20px;
171
+ text-align: center;
172
+ display: flex;
173
+ justify-content: center;
174
+ flex-direction: column;
175
+ }
176
+
177
+ .how-to-use h2 {
178
+ font-weight: bold;
179
+ margin-bottom: 20px;
180
  }
181
 
182
  .steps {
183
  display: flex;
184
+ justify-content: center;
185
+ margin-top: 20px;
186
  flex-wrap: wrap;
187
+ gap: 20px;
188
  }
189
 
190
  .step {
191
+ background-color: #e0e0e0;
192
+ padding: 20px;
193
  margin: 10px;
194
+ width: 300px;
195
+ border-radius: 8px;
196
  text-align: center;
 
197
  }
198
 
199
+ .step h3 {
200
+ font-weight: bold;
201
+ }
202
+
203
  .footer {
204
+ background-color: #666666;
205
  color: white;
206
+ padding: 20px 0;
207
  text-align: center;
 
208
  margin-top: 40px;
209
+ border-top: 1px solid #fff;
210
+ }
211
+
212
+ .footer-content p {
213
+ margin: 5px 0;
214
  }
215
 
216
+ @media screen and (max-width: 768px) {
217
+ .currency-select {
218
+ flex-direction: column;
219
+ }
220
+
221
+ .currency-group {
222
+ width: 100%;
223
+ max-width: 200px;
224
+ }
225
+
226
  .steps {
227
  flex-direction: column;
228
  }
229
 
230
+ .currency-box input,
231
+ .currency-select select,
232
+ .currency-select button {
233
  width: 100%;
234
  }
235
+
236
+ .currency-select button {
237
+ margin: 10px 0;
238
+ }
239
  }
240
 
241
+ @media screen and (max-width: 480px) {
242
+ .currency-box input,
243
+ .currency-select select,
244
+ .currency-select button {
245
+ width: 100%;
246
+ }
247
  }