Update style.css
Browse files
style.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/* Reset
|
2 |
* {
|
3 |
margin: 0;
|
4 |
padding: 0;
|
@@ -7,95 +7,162 @@
|
|
7 |
|
8 |
body {
|
9 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
10 |
-
background: #
|
11 |
-
color: #fff;
|
12 |
display: flex;
|
13 |
justify-content: center;
|
14 |
-
align-items:
|
15 |
-
height: 100vh;
|
16 |
-
overflow-y: auto; /* Allow vertical scrolling */
|
17 |
padding: 20px;
|
|
|
18 |
}
|
19 |
|
20 |
.container {
|
21 |
-
background: #
|
22 |
-
border-radius:
|
23 |
-
box-shadow: 0 10px
|
24 |
padding: 40px;
|
25 |
width: 100%;
|
26 |
-
max-width: 600px;
|
27 |
-
|
28 |
-
color: #333;
|
29 |
}
|
30 |
|
31 |
header h1 {
|
32 |
-
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
label {
|
36 |
display: block;
|
37 |
-
|
38 |
font-weight: bold;
|
39 |
-
|
|
|
40 |
}
|
41 |
|
42 |
-
input
|
|
|
43 |
width: 100%;
|
44 |
-
|
45 |
-
|
46 |
border: 1px solid #ccc;
|
47 |
-
|
48 |
-
|
|
|
49 |
}
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
56 |
font-size: 16px;
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
61 |
-
transition: background-color 0.3s ease;
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
66 |
}
|
67 |
|
68 |
#swapButton {
|
69 |
-
background: #
|
70 |
-
color:
|
71 |
-
|
72 |
-
|
73 |
-
width:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
-
#
|
|
|
|
|
|
|
|
|
77 |
margin-top: 20px;
|
78 |
font-size: 18px;
|
79 |
font-weight: bold;
|
80 |
-
color: #
|
81 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
padding: 15px;
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
footer {
|
87 |
-
margin-top:
|
88 |
font-size: 14px;
|
89 |
-
color: #
|
|
|
90 |
}
|
91 |
|
92 |
-
/*
|
93 |
@media (max-width: 768px) {
|
94 |
.container {
|
95 |
-
padding:
|
|
|
96 |
}
|
97 |
|
98 |
-
|
|
|
|
|
|
|
|
|
99 |
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
}
|
|
|
1 |
+
/* Reset styles */
|
2 |
* {
|
3 |
margin: 0;
|
4 |
padding: 0;
|
|
|
7 |
|
8 |
body {
|
9 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
10 |
+
background: #001F3F; /* Background biru tua */
|
|
|
11 |
display: flex;
|
12 |
justify-content: center;
|
13 |
+
align-items: flex-start; /* Posisi atas */
|
14 |
+
min-height: 100vh;
|
|
|
15 |
padding: 20px;
|
16 |
+
overflow-y: auto; /* Scroll vertikal */
|
17 |
}
|
18 |
|
19 |
.container {
|
20 |
+
background: #ffffff;
|
21 |
+
border-radius: 20px;
|
22 |
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); /* Bayangan tegas */
|
23 |
padding: 40px;
|
24 |
width: 100%;
|
25 |
+
max-width: 600px; /* Ukuran lebih besar */
|
26 |
+
margin-bottom: 20px;
|
|
|
27 |
}
|
28 |
|
29 |
header h1 {
|
30 |
+
font-size: 28px; /* Ukuran header lebih besar */
|
31 |
+
color: #333;
|
32 |
+
text-align: center;
|
33 |
+
margin-bottom: 30px;
|
34 |
}
|
35 |
|
36 |
label {
|
37 |
display: block;
|
38 |
+
font-size: 16px;
|
39 |
font-weight: bold;
|
40 |
+
margin-bottom: 8px;
|
41 |
+
color: #555;
|
42 |
}
|
43 |
|
44 |
+
input {
|
45 |
+
padding: 15px;
|
46 |
width: 100%;
|
47 |
+
font-size: 18px; /* Font input lebih besar */
|
48 |
+
border-radius: 10px;
|
49 |
border: 1px solid #ccc;
|
50 |
+
margin-bottom: 20px;
|
51 |
+
text-align: center;
|
52 |
+
font-weight: bold;
|
53 |
}
|
54 |
|
55 |
+
.currency-selectors {
|
56 |
+
display: flex;
|
57 |
+
align-items: center;
|
58 |
+
justify-content: space-between;
|
59 |
+
margin-bottom: 20px;
|
60 |
+
}
|
61 |
+
|
62 |
+
.input-group select {
|
63 |
+
padding: 15px;
|
64 |
font-size: 16px;
|
65 |
+
border-radius: 10px;
|
66 |
+
border: 1px solid #ccc;
|
67 |
+
width: 100%;
|
|
|
|
|
68 |
}
|
69 |
|
70 |
+
/* Tombol swap */
|
71 |
+
.swap-group {
|
72 |
+
display: flex;
|
73 |
+
justify-content: center;
|
74 |
+
margin: 20px 0;
|
75 |
}
|
76 |
|
77 |
#swapButton {
|
78 |
+
background-color: #ffffff;
|
79 |
+
color: #007BFF;
|
80 |
+
border: 2px solid #ccc;
|
81 |
+
border-radius: 50%;
|
82 |
+
width: 60px;
|
83 |
+
height: 60px;
|
84 |
+
display: flex;
|
85 |
+
justify-content: center;
|
86 |
+
align-items: center;
|
87 |
+
cursor: pointer;
|
88 |
+
font-size: 22px; /* Ukuran font lebih besar */
|
89 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
90 |
+
transition: background-color 0.3s ease;
|
91 |
}
|
92 |
|
93 |
+
#swapButton:hover {
|
94 |
+
background-color: #f1f1f1;
|
95 |
+
}
|
96 |
+
|
97 |
+
.result-box {
|
98 |
margin-top: 20px;
|
99 |
font-size: 18px;
|
100 |
font-weight: bold;
|
101 |
+
color: #333;
|
102 |
+
background-color: #f8f8f8;
|
103 |
+
padding: 20px;
|
104 |
+
border-radius: 10px;
|
105 |
+
text-align: center;
|
106 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
107 |
+
}
|
108 |
+
|
109 |
+
button[type="submit"] {
|
110 |
padding: 15px;
|
111 |
+
background-color: #00BFFF; /* Warna biru langit */
|
112 |
+
color: white;
|
113 |
+
border: none;
|
114 |
+
border-radius: 10px;
|
115 |
+
font-size: 18px; /* Font lebih besar */
|
116 |
+
cursor: pointer;
|
117 |
+
width: 100%;
|
118 |
+
transition: background-color 0.3s ease;
|
119 |
+
}
|
120 |
+
|
121 |
+
button[type="submit"]:hover {
|
122 |
+
background-color: #1E90FF; /* Warna biru hover */
|
123 |
}
|
124 |
|
125 |
footer {
|
126 |
+
margin-top: 30px;
|
127 |
font-size: 14px;
|
128 |
+
color: #666;
|
129 |
+
text-align: center;
|
130 |
}
|
131 |
|
132 |
+
/* Responsiveness */
|
133 |
@media (max-width: 768px) {
|
134 |
.container {
|
135 |
+
padding: 20px;
|
136 |
+
max-width: 95%;
|
137 |
}
|
138 |
|
139 |
+
input {
|
140 |
+
font-size: 16px; /* Font input lebih kecil untuk mobile */
|
141 |
+
}
|
142 |
+
|
143 |
+
select {
|
144 |
font-size: 14px;
|
145 |
+
padding: 12px;
|
146 |
+
}
|
147 |
+
|
148 |
+
#swapButton {
|
149 |
+
width: 50px;
|
150 |
+
height: 50px;
|
151 |
+
font-size: 20px;
|
152 |
+
}
|
153 |
+
|
154 |
+
button[type="submit"] {
|
155 |
+
font-size: 16px;
|
156 |
+
padding: 12px;
|
157 |
+
}
|
158 |
+
|
159 |
+
header h1 {
|
160 |
+
font-size: 24px;
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
@media (min-width: 769px) {
|
165 |
+
.container {
|
166 |
+
max-width: 700px;
|
167 |
}
|
168 |
}
|