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|
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
box-sizing: border-box;
|
6 |
+
overflow-x: hidden; /* Prevent horizontal scroll */
|
7 |
+
background-color: white; /* Warna dasar putih */
|
8 |
+
}
|
9 |
+
|
10 |
+
/* Navbar */
|
11 |
+
.navbar {
|
12 |
+
position: fixed;
|
13 |
+
top: 0;
|
14 |
+
left: 0;
|
15 |
+
width: 100%;
|
16 |
+
background-color: #004d00; /* Hijau tua */
|
17 |
+
color: white;
|
18 |
+
padding: 10px 20px;
|
19 |
+
display: flex;
|
20 |
+
justify-content: space-between;
|
21 |
+
align-items: center;
|
22 |
+
z-index: 1000;
|
23 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
|
24 |
+
}
|
25 |
+
|
26 |
+
.navbar .logo img {
|
27 |
+
height: 40px;
|
28 |
+
}
|
29 |
+
|
30 |
+
.navbar .logo img:hover {
|
31 |
+
transform: scale(1.1); /* Efek hover */
|
32 |
+
transition: transform 0.3s ease;
|
33 |
+
}
|
34 |
+
|
35 |
+
/* Headline */
|
36 |
+
.headline {
|
37 |
+
text-align: center;
|
38 |
+
background-color: #004d00; /* Hijau tua */
|
39 |
+
color: white;
|
40 |
+
padding: 60px 20px;
|
41 |
+
margin-top: 50px;
|
42 |
+
}
|
43 |
+
|
44 |
+
.headline h1 {
|
45 |
+
font-size: 36px;
|
46 |
+
font-weight: bold;
|
47 |
+
}
|
48 |
+
|
49 |
+
.headline p {
|
50 |
+
font-size: 18px;
|
51 |
+
}
|
52 |
+
|
53 |
+
/* Converter Content */
|
54 |
+
.content {
|
55 |
+
background-color: #004d00; /* Hijau tua */
|
56 |
+
padding: 40px 20px;
|
57 |
+
display: flex;
|
58 |
+
justify-content: center;
|
59 |
+
align-items: center;
|
60 |
+
}
|
61 |
+
|
62 |
+
.converter-container {
|
63 |
+
display: flex;
|
64 |
+
flex-direction: column;
|
65 |
+
align-items: center;
|
66 |
+
width: 100%;
|
67 |
+
max-width: 800px;
|
68 |
+
padding: 30px;
|
69 |
+
border-radius: 12px;
|
70 |
+
background-color: white; /* Kontras putih */
|
71 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
|
72 |
+
box-sizing: border-box;
|
73 |
+
}
|
74 |
+
|
75 |
+
.currency-box label {
|
76 |
+
font-weight: bold;
|
77 |
+
font-size: 16px;
|
78 |
+
margin-bottom: 5px;
|
79 |
+
color: #004d00; /* Hijau tua */
|
80 |
+
}
|
81 |
+
|
82 |
+
.currency-box input {
|
83 |
+
padding: 15px;
|
84 |
+
font-size: 16px;
|
85 |
+
width: 100%;
|
86 |
+
border-radius: 8px;
|
87 |
+
border: 1px solid #ccc;
|
88 |
+
box-sizing: border-box;
|
89 |
+
}
|
90 |
+
|
91 |
+
.currency-select {
|
92 |
+
display: flex;
|
93 |
+
justify-content: space-between;
|
94 |
+
align-items: flex-start;
|
95 |
+
width: 100%;
|
96 |
+
gap: 20px;
|
97 |
+
margin: 20px 0;
|
98 |
+
flex-wrap: wrap;
|
99 |
+
}
|
100 |
+
|
101 |
+
.currency-group label {
|
102 |
+
font-weight: bold;
|
103 |
+
font-size: 16px;
|
104 |
+
margin-bottom: 5px;
|
105 |
+
color: #004d00; /* Hijau tua */
|
106 |
+
}
|
107 |
+
|
108 |
+
.currency-group select {
|
109 |
+
padding: 15px;
|
110 |
+
font-size: 16px;
|
111 |
+
width: 100%;
|
112 |
+
border-radius: 8px;
|
113 |
+
border: 1px solid #ccc;
|
114 |
+
}
|
115 |
+
|
116 |
+
/* Swap Button */
|
117 |
+
#swap-btn {
|
118 |
+
background-color: #004d00; /* Hijau tua */
|
119 |
+
color: white;
|
120 |
+
cursor: pointer;
|
121 |
+
border-radius: 50%;
|
122 |
+
border: none;
|
123 |
+
font-size: 20px;
|
124 |
+
height: 50px;
|
125 |
+
width: 50px;
|
126 |
+
display: flex;
|
127 |
+
justify-content: center;
|
128 |
+
align-items: center;
|
129 |
+
margin: 20px auto;
|
130 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
131 |
+
}
|
132 |
+
|
133 |
+
/* Tidak ada rotasi pada desktop */
|
134 |
+
@media screen and (min-width: 769px) {
|
135 |
+
#swap-btn {
|
136 |
+
transform: rotate(0deg); /* Tidak ada rotasi pada tampilan desktop */
|
137 |
+
}
|
138 |
+
}
|
139 |
+
|
140 |
+
/* Rotasi tombol untuk tampilan mobile dan tablet */
|
141 |
+
@media screen and (max-width: 768px) {
|
142 |
+
#swap-btn {
|
143 |
+
transform: rotate(90deg); /* Rotasi 90 derajat pada tampilan mobile/tablet */
|
144 |
+
}
|
145 |
+
}
|
146 |
+
|
147 |
+
/* Hover efek */
|
148 |
+
#swap-btn:hover {
|
149 |
+
background-color: #003300; /* Warna lebih gelap saat hover */
|
150 |
+
transform: rotate(180deg); /* Rotasi lebih lanjut saat hover */
|
151 |
+
}
|
152 |
+
|
153 |
+
/* Convert Button */
|
154 |
+
#convert-btn {
|
155 |
+
background-color: #004d00; /* Hijau tua */
|
156 |
+
color: white;
|
157 |
+
cursor: pointer;
|
158 |
+
padding: 15px 30px;
|
159 |
+
font-size: 16px;
|
160 |
+
border: none;
|
161 |
+
border-radius: 8px;
|
162 |
+
margin-top: 20px;
|
163 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
164 |
+
}
|
165 |
+
|
166 |
+
#convert-btn:hover {
|
167 |
+
background-color: #003300; /* Hijau lebih gelap */
|
168 |
+
transform: translateY(-2px); /* Sedikit naik */
|
169 |
+
}
|
170 |
+
|
171 |
+
/* How-to-Use Section */
|
172 |
+
.how-to-use {
|
173 |
+
background-color: white;
|
174 |
+
color: black;
|
175 |
+
padding: 40px 20px;
|
176 |
+
margin-top: 20px;
|
177 |
+
text-align: center;
|
178 |
+
}
|
179 |
+
|
180 |
+
.how-to-use h2 {
|
181 |
+
font-weight: bold;
|
182 |
+
margin-bottom: 20px;
|
183 |
+
color: #004d00; /* Hijau tua */
|
184 |
+
}
|
185 |
+
|
186 |
+
.steps {
|
187 |
+
display: grid;
|
188 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
189 |
+
gap: 20px;
|
190 |
+
}
|
191 |
+
|
192 |
+
.step {
|
193 |
+
background-color: #f0f0f0;
|
194 |
+
padding: 20px;
|
195 |
+
border-radius: 8px;
|
196 |
+
text-align: center;
|
197 |
+
transition: background-color 0.3s ease, transform 0.3s ease;
|
198 |
+
}
|
199 |
+
|
200 |
+
.step:hover {
|
201 |
+
background-color: #e0e0e0;
|
202 |
+
transform: translateY(-5px);
|
203 |
+
}
|
204 |
+
|
205 |
+
.step h3 {
|
206 |
+
font-weight: bold;
|
207 |
+
color: #004d00; /* Hijau tua */
|
208 |
+
}
|
209 |
+
|
210 |
+
/* Footer */
|
211 |
+
.footer {
|
212 |
+
background-color: #004d00; /* Hijau tua */
|
213 |
+
color: white;
|
214 |
+
padding: 20px 0;
|
215 |
+
text-align: center;
|
216 |
+
margin-top: 40px;
|
217 |
+
border-top: 2px solid #003300;
|
218 |
+
}
|
219 |
+
|
220 |
+
.footer-content p {
|
221 |
+
margin: 5px 0;
|
222 |
+
}
|
223 |
+
|
224 |
+
.footer-content a {
|
225 |
+
color: white;
|
226 |
+
text-decoration: none;
|
227 |
+
margin: 0 10px;
|
228 |
+
transition: color 0.3s ease;
|
229 |
+
}
|
230 |
+
|
231 |
+
.footer-content a:hover {
|
232 |
+
color: #ccc;
|
233 |
+
}
|