Update style.css
Browse files
style.css
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
* {
|
2 |
margin: 0;
|
3 |
padding: 0;
|
@@ -6,54 +7,35 @@
|
|
6 |
|
7 |
body {
|
8 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
9 |
-
background: linear-gradient(135deg, #
|
10 |
display: flex;
|
11 |
justify-content: center;
|
12 |
align-items: center;
|
13 |
height: 100vh;
|
14 |
color: #333;
|
15 |
position: relative;
|
16 |
-
padding: 20px;
|
17 |
}
|
18 |
|
|
|
19 |
.container {
|
20 |
background: #ffffff;
|
21 |
border-radius: 15px;
|
22 |
-
box-shadow: 0
|
23 |
padding: 40px;
|
24 |
width: 100%;
|
25 |
max-width: 600px;
|
26 |
text-align: center;
|
27 |
-
|
28 |
}
|
29 |
|
|
|
30 |
header {
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
h1 {
|
35 |
-
font-size: 2rem;
|
36 |
-
color: #2D3A3A;
|
37 |
-
font-weight: 600;
|
38 |
-
animation: slideIn 2s ease-out;
|
39 |
margin-bottom: 20px;
|
40 |
}
|
41 |
|
42 |
-
/*
|
43 |
-
@keyframes slideIn {
|
44 |
-
0% {
|
45 |
-
transform: translateX(-100%);
|
46 |
-
opacity: 0;
|
47 |
-
}
|
48 |
-
50% {
|
49 |
-
opacity: 0.5;
|
50 |
-
}
|
51 |
-
100% {
|
52 |
-
transform: translateX(0);
|
53 |
-
opacity: 1;
|
54 |
-
}
|
55 |
-
}
|
56 |
-
|
57 |
input, select {
|
58 |
padding: 12px;
|
59 |
margin: 10px 0;
|
@@ -63,11 +45,6 @@ input, select {
|
|
63 |
border: 1px solid #E0E0E0;
|
64 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
|
65 |
transition: all 0.3s ease;
|
66 |
-
appearance: none;
|
67 |
-
-webkit-appearance: none;
|
68 |
-
-moz-appearance: none;
|
69 |
-
background-color: #fff;
|
70 |
-
color: #555;
|
71 |
}
|
72 |
|
73 |
input:focus, select:focus {
|
@@ -76,15 +53,7 @@ input:focus, select:focus {
|
|
76 |
box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
|
77 |
}
|
78 |
|
79 |
-
/*
|
80 |
-
select {
|
81 |
-
background-image: url('https://img.icons8.com/ios/452/down-squared.png');
|
82 |
-
background-repeat: no-repeat;
|
83 |
-
background-position: right 10px center;
|
84 |
-
background-size: 16px;
|
85 |
-
padding-right: 40px;
|
86 |
-
}
|
87 |
-
|
88 |
.currency-selectors {
|
89 |
display: flex;
|
90 |
justify-content: center;
|
@@ -98,6 +67,7 @@ span {
|
|
98 |
color: #555;
|
99 |
}
|
100 |
|
|
|
101 |
button {
|
102 |
padding: 12px 20px;
|
103 |
background-color: #4CAF50;
|
@@ -109,13 +79,13 @@ button {
|
|
109 |
font-weight: 600;
|
110 |
cursor: pointer;
|
111 |
transition: background-color 0.3s ease;
|
112 |
-
margin-top: 20px;
|
113 |
}
|
114 |
|
115 |
button:hover {
|
116 |
background-color: #45a049;
|
117 |
}
|
118 |
|
|
|
119 |
#result {
|
120 |
margin-top: 20px;
|
121 |
font-size: 20px;
|
@@ -128,28 +98,22 @@ button:hover {
|
|
128 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
129 |
}
|
130 |
|
|
|
131 |
footer {
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
text-align: center;
|
136 |
-
}
|
137 |
-
|
138 |
-
footer p {
|
139 |
-
margin: 0;
|
140 |
-
font-weight: 400;
|
141 |
}
|
142 |
|
143 |
-
/*
|
144 |
@media (max-width: 768px) {
|
145 |
.container {
|
146 |
padding: 30px;
|
147 |
max-width: 100%;
|
148 |
}
|
149 |
-
|
150 |
h1 {
|
151 |
font-size: 1.5rem;
|
152 |
-
margin-bottom: 15px;
|
153 |
}
|
154 |
|
155 |
input, select {
|
@@ -159,13 +123,9 @@ footer p {
|
|
159 |
button {
|
160 |
font-size: 16px;
|
161 |
}
|
162 |
-
|
163 |
-
footer {
|
164 |
-
font-size: 12px;
|
165 |
-
}
|
166 |
}
|
167 |
|
168 |
-
/*
|
169 |
@media (min-width: 769px) {
|
170 |
.container {
|
171 |
max-width: 700px;
|
@@ -182,8 +142,4 @@ footer p {
|
|
182 |
button {
|
183 |
font-size: 20px;
|
184 |
}
|
185 |
-
|
186 |
-
footer {
|
187 |
-
font-size: 14px;
|
188 |
-
}
|
189 |
}
|
|
|
1 |
+
/* Resetting and global styles */
|
2 |
* {
|
3 |
margin: 0;
|
4 |
padding: 0;
|
|
|
7 |
|
8 |
body {
|
9 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
10 |
+
background: linear-gradient(135deg, #D9E4EC, #F5F7FA); /* Soft gradient background */
|
11 |
display: flex;
|
12 |
justify-content: center;
|
13 |
align-items: center;
|
14 |
height: 100vh;
|
15 |
color: #333;
|
16 |
position: relative;
|
|
|
17 |
}
|
18 |
|
19 |
+
/* Container styles for the content */
|
20 |
.container {
|
21 |
background: #ffffff;
|
22 |
border-radius: 15px;
|
23 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft shadow for elevation */
|
24 |
padding: 40px;
|
25 |
width: 100%;
|
26 |
max-width: 600px;
|
27 |
text-align: center;
|
28 |
+
margin: 0 20px;
|
29 |
}
|
30 |
|
31 |
+
/* Header section */
|
32 |
header {
|
33 |
+
border-bottom: 2px solid #333; /* Header border */
|
34 |
+
padding-bottom: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
margin-bottom: 20px;
|
36 |
}
|
37 |
|
38 |
+
/* Form styles */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
input, select {
|
40 |
padding: 12px;
|
41 |
margin: 10px 0;
|
|
|
45 |
border: 1px solid #E0E0E0;
|
46 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
|
47 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
input:focus, select:focus {
|
|
|
53 |
box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
|
54 |
}
|
55 |
|
56 |
+
/* Styling for currency selectors */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
.currency-selectors {
|
58 |
display: flex;
|
59 |
justify-content: center;
|
|
|
67 |
color: #555;
|
68 |
}
|
69 |
|
70 |
+
/* Button styles */
|
71 |
button {
|
72 |
padding: 12px 20px;
|
73 |
background-color: #4CAF50;
|
|
|
79 |
font-weight: 600;
|
80 |
cursor: pointer;
|
81 |
transition: background-color 0.3s ease;
|
|
|
82 |
}
|
83 |
|
84 |
button:hover {
|
85 |
background-color: #45a049;
|
86 |
}
|
87 |
|
88 |
+
/* Result box styles */
|
89 |
#result {
|
90 |
margin-top: 20px;
|
91 |
font-size: 20px;
|
|
|
98 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
99 |
}
|
100 |
|
101 |
+
/* Footer section styles */
|
102 |
footer {
|
103 |
+
border-top: 2px solid #333; /* Footer border */
|
104 |
+
padding-top: 15px;
|
105 |
+
margin-top: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
|
108 |
+
/* Responsiveness for mobile screens */
|
109 |
@media (max-width: 768px) {
|
110 |
.container {
|
111 |
padding: 30px;
|
112 |
max-width: 100%;
|
113 |
}
|
114 |
+
|
115 |
h1 {
|
116 |
font-size: 1.5rem;
|
|
|
117 |
}
|
118 |
|
119 |
input, select {
|
|
|
123 |
button {
|
124 |
font-size: 16px;
|
125 |
}
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
|
128 |
+
/* Responsiveness for larger screens */
|
129 |
@media (min-width: 769px) {
|
130 |
.container {
|
131 |
max-width: 700px;
|
|
|
142 |
button {
|
143 |
font-size: 20px;
|
144 |
}
|
|
|
|
|
|
|
|
|
145 |
}
|