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

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +19 -54
style.css CHANGED
@@ -1,11 +1,13 @@
 
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;
@@ -16,12 +18,14 @@ body {
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;
@@ -39,6 +43,7 @@ body {
39
  font-size: 18px;
40
  }
41
 
 
42
  .content {
43
  background-color: white;
44
  padding: 40px 20px;
@@ -59,25 +64,24 @@ body {
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;
@@ -86,38 +90,7 @@ body {
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;
@@ -134,14 +107,11 @@ body {
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;
@@ -158,11 +128,13 @@ body {
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;
@@ -179,6 +151,7 @@ body {
179
  margin-bottom: 20px;
180
  }
181
 
 
182
  .steps {
183
  display: flex;
184
  justify-content: center;
@@ -200,6 +173,7 @@ body {
200
  font-weight: bold;
201
  }
202
 
 
203
  .footer {
204
  background-color: #666666;
205
  color: white;
@@ -213,6 +187,7 @@ body {
213
  margin: 5px 0;
214
  }
215
 
 
216
  @media screen and (max-width: 768px) {
217
  .currency-select {
218
  flex-direction: column;
@@ -226,16 +201,6 @@ body {
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) {
 
1
+ /* Body style */
2
  body {
3
  font-family: Arial, sans-serif;
4
  margin: 0;
5
  padding: 0;
6
+ background-color: #f4f4f4;
7
  overflow-x: hidden; /* Prevent horizontal scroll */
8
  }
9
 
10
+ /* Navbar style */
11
  .navbar {
12
  position: fixed;
13
  top: 0;
 
18
  display: flex;
19
  justify-content: flex-start;
20
  align-items: center;
21
+ z-index: 100;
22
  }
23
 
24
  .navbar .logo img {
25
  height: 40px;
26
  }
27
 
28
+ /* Headline Section */
29
  .headline {
30
  text-align: center;
31
  background-color: #004d00;
 
43
  font-size: 18px;
44
  }
45
 
46
+ /* Main content section */
47
  .content {
48
  background-color: white;
49
  padding: 40px 20px;
 
64
  border-radius: 12px;
65
  border: 2px solid #ccc;
66
  background-color: #f8f8f8;
 
67
  }
68
 
69
+ /* Currency Input Boxes */
70
+ .currency-box, .currency-select {
71
  width: 100%;
72
+ margin: 15px 0;
73
  display: flex;
74
  flex-direction: column;
 
75
  }
76
 
77
+ .currency-box label, .currency-group label {
78
  font-weight: bold;
79
  font-size: 16px;
80
  margin-bottom: 5px;
81
  }
82
 
83
+ .currency-box input, .currency-group select {
84
+ padding: 12px;
85
  font-size: 16px;
86
  width: 100%;
87
  max-width: 400px;
 
90
  box-sizing: border-box;
91
  }
92
 
93
+ /* Swap Button */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  #swap-btn {
95
  background-color: #006400;
96
  color: white;
 
107
  align-items: center;
108
  }
109
 
 
 
 
 
110
  #swap-btn:hover {
111
  background-color: #004d00;
112
  }
113
 
114
+ /* Convert Button */
115
  #convert-btn {
116
  background-color: #006400;
117
  color: white;
 
128
  background-color: #004d00;
129
  }
130
 
131
+ /* Result display */
132
  #result {
133
  font-size: 18px;
134
  margin-top: 20px;
135
  }
136
 
137
+ /* How to Use Section */
138
  .how-to-use {
139
  background-color: #004d00;
140
  color: white;
 
151
  margin-bottom: 20px;
152
  }
153
 
154
+ /* Steps */
155
  .steps {
156
  display: flex;
157
  justify-content: center;
 
173
  font-weight: bold;
174
  }
175
 
176
+ /* Footer */
177
  .footer {
178
  background-color: #666666;
179
  color: white;
 
187
  margin: 5px 0;
188
  }
189
 
190
+ /* Media Queries for responsiveness */
191
  @media screen and (max-width: 768px) {
192
  .currency-select {
193
  flex-direction: column;
 
201
  .steps {
202
  flex-direction: column;
203
  }
 
 
 
 
 
 
 
 
 
 
204
  }
205
 
206
  @media screen and (max-width: 480px) {