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