Update style.css
Browse files
style.css
CHANGED
@@ -1,107 +1,97 @@
|
|
1 |
-
/* General */
|
2 |
body {
|
3 |
-
font-family: Arial, sans-serif;
|
|
|
|
|
4 |
margin: 0;
|
5 |
padding: 0;
|
6 |
display: flex;
|
7 |
justify-content: center;
|
8 |
align-items: center;
|
9 |
-
|
10 |
-
background-color: #f5f5f5;
|
11 |
}
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
19 |
max-width: 400px;
|
|
|
20 |
}
|
21 |
|
22 |
-
/* Header */
|
23 |
-
|
|
|
|
|
24 |
text-align: center;
|
25 |
-
margin-bottom: 20px;
|
26 |
-
color: #333;
|
27 |
-
}
|
28 |
-
|
29 |
-
/* Form Groups */
|
30 |
-
.form-group {
|
31 |
-
margin-bottom: 15px;
|
32 |
}
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
color: #555;
|
38 |
-
}
|
39 |
-
|
40 |
-
input, select {
|
41 |
width: 100%;
|
42 |
padding: 10px;
|
|
|
|
|
|
|
43 |
font-size: 16px;
|
44 |
-
border: 1px solid #ddd;
|
45 |
-
border-radius: 4px;
|
46 |
-
}
|
47 |
-
|
48 |
-
/* Swap Button */
|
49 |
-
.swap-group {
|
50 |
-
text-align: center;
|
51 |
-
margin: 15px 0;
|
52 |
}
|
53 |
|
|
|
54 |
#swapButton {
|
55 |
-
background-color: #
|
56 |
border: none;
|
57 |
border-radius: 50%;
|
58 |
padding: 10px;
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
61 |
cursor: pointer;
|
62 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
63 |
-
transition: background-color 0.3s ease;
|
64 |
}
|
65 |
|
66 |
#swapButton:hover {
|
67 |
-
background-color: #
|
68 |
}
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
border: none;
|
74 |
-
border-radius: 8px;
|
75 |
-
padding: 12px 20px;
|
76 |
-
font-size: 18px;
|
77 |
color: white;
|
78 |
-
|
|
|
|
|
79 |
cursor: pointer;
|
80 |
-
width: 100%;
|
81 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
82 |
-
transition: background-color 0.3s ease;
|
83 |
}
|
84 |
|
85 |
-
.
|
86 |
-
background-color: #
|
87 |
}
|
88 |
|
89 |
-
/* Result
|
90 |
-
|
91 |
-
margin-top:
|
92 |
-
|
93 |
-
font-
|
94 |
-
color: #333;
|
95 |
text-align: center;
|
96 |
-
background-color: #f9f9f9;
|
97 |
-
border: 1px solid #ddd;
|
98 |
-
border-radius: 4px;
|
99 |
}
|
100 |
|
101 |
/* Footer */
|
102 |
footer {
|
103 |
-
text-align: center;
|
104 |
margin-top: 20px;
|
105 |
-
font-size:
|
106 |
-
|
|
|
107 |
}
|
|
|
1 |
+
/* General body styling */
|
2 |
body {
|
3 |
+
font-family: 'Arial', sans-serif;
|
4 |
+
background-color: #001d57; /* Dark blue background */
|
5 |
+
color: #ffffff; /* White text */
|
6 |
margin: 0;
|
7 |
padding: 0;
|
8 |
display: flex;
|
9 |
justify-content: center;
|
10 |
align-items: center;
|
11 |
+
height: 100vh;
|
|
|
12 |
}
|
13 |
|
14 |
+
/* Card container */
|
15 |
+
.currency-converter {
|
16 |
+
background-color: #ffffff;
|
17 |
+
color: #001d57;
|
18 |
+
border-radius: 15px;
|
19 |
+
padding: 20px 25px;
|
20 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
|
21 |
max-width: 400px;
|
22 |
+
width: 100%;
|
23 |
}
|
24 |
|
25 |
+
/* Header styling */
|
26 |
+
.currency-converter h1 {
|
27 |
+
font-size: 24px;
|
28 |
+
margin-bottom: 10px;
|
29 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
+
/* Input and select fields */
|
33 |
+
.currency-converter input,
|
34 |
+
.currency-converter select {
|
|
|
|
|
|
|
|
|
35 |
width: 100%;
|
36 |
padding: 10px;
|
37 |
+
margin: 10px 0;
|
38 |
+
border: 1px solid #ccc;
|
39 |
+
border-radius: 10px;
|
40 |
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
+
/* Swap button styling */
|
44 |
#swapButton {
|
45 |
+
background-color: #eaf3ff;
|
46 |
border: none;
|
47 |
border-radius: 50%;
|
48 |
padding: 10px;
|
49 |
+
width: 40px;
|
50 |
+
height: 40px;
|
51 |
+
display: flex;
|
52 |
+
justify-content: center;
|
53 |
+
align-items: center;
|
54 |
+
margin: 10px auto;
|
55 |
cursor: pointer;
|
|
|
|
|
56 |
}
|
57 |
|
58 |
#swapButton:hover {
|
59 |
+
background-color: #d3e6ff;
|
60 |
}
|
61 |
|
62 |
+
#swapButton img {
|
63 |
+
width: 20px;
|
64 |
+
height: 20px;
|
65 |
+
}
|
66 |
+
|
67 |
+
/* Convert button */
|
68 |
+
.currency-converter button {
|
69 |
+
width: 100%;
|
70 |
+
background-color: #007bff;
|
71 |
border: none;
|
|
|
|
|
|
|
72 |
color: white;
|
73 |
+
padding: 10px;
|
74 |
+
border-radius: 10px;
|
75 |
+
font-size: 16px;
|
76 |
cursor: pointer;
|
|
|
|
|
|
|
77 |
}
|
78 |
|
79 |
+
.currency-converter button:hover {
|
80 |
+
background-color: #0056b3;
|
81 |
}
|
82 |
|
83 |
+
/* Result styling */
|
84 |
+
#result {
|
85 |
+
margin-top: 20px;
|
86 |
+
font-size: 18px;
|
87 |
+
font-weight: bold;
|
|
|
88 |
text-align: center;
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
/* Footer */
|
92 |
footer {
|
|
|
93 |
margin-top: 20px;
|
94 |
+
font-size: 12px;
|
95 |
+
text-align: center;
|
96 |
+
color: rgba(255, 255, 255, 0.7);
|
97 |
}
|