File size: 6,044 Bytes
5161658
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42b863b
6bf2ecf
42b863b
edad6bb
 
 
 
8edf5f2
ceb59d5
 
8edf5f2
edad6bb
 
 
 
 
 
 
42b863b
 
 
1c65488
edad6bb
 
8edf5f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42b863b
edad6bb
8edf5f2
edad6bb
6bf2ecf
228c131
 
 
8edf5f2
1c65488
 
 
8edf5f2
1c65488
42b863b
1c65488
 
 
ba06df7
 
 
 
1c65488
8edf5f2
 
 
 
 
 
 
 
1c65488
 
42b863b
edad6bb
42b863b
228c131
edad6bb
42b863b
edad6bb
42b863b
edad6bb
 
42b863b
a00c45d
 
42b863b
 
8e5c5e9
 
edad6bb
42b863b
 
edad6bb
 
8edf5f2
ba06df7
 
8edf5f2
 
 
ba06df7
 
 
 
 
 
 
 
 
 
 
8edf5f2
 
 
ba06df7
 
 
8edf5f2
ba06df7
 
8edf5f2
 
 
 
 
 
 
 
 
ba06df7
 
 
8edf5f2
 
 
ba06df7
5161658
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f6a19e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
/* Body */
body {
    font-family: 'Poppins', Arial, sans-serif; /* Font modern */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background-color: white; /* Warna dasar putih */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #004d00; /* Hijau tua */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
}

.navbar .logo img {
    height: 40px;
}

.navbar .logo img:hover {
    transform: scale(1.1); /* Efek hover */
    transition: transform 0.3s ease;
}

/* Headline */
.headline {
    text-align: center;
    background-color: #004d00; /* Hijau tua */
    color: white;
    padding: 60px 20px;
    margin-top: 50px;
}

.headline h1 {
    font-size: 36px;
    font-weight: bold;
}

.headline p {
    font-size: 18px;
}

/* Converter Content */
.content {
    background-color: #004d00; /* Hijau tua */
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Menyusun elemen secara vertikal */
}

/* Container untuk semua elemen konversi */
.converter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 30px;
    border-radius: 12px;
    background-color: white; /* Kontras putih */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
    box-sizing: border-box;
}

/* Flexbox untuk bagian input Amount, From, Swap, dan To */
.currency-box {
    display: flex;
    flex-direction: column; /* Menyusun input dan label secara vertikal */
    width: 100%;
    gap: 20px;
}

/* Untuk input amount */
.currency-box .amount {
    display: flex;
    justify-content: space-between; /* Menjaga jarak antar elemen */
    align-items: center;
    gap: 15px;
    width: 100%;
}

.currency-box label {
    font-weight: bold;
    font-size: 16px;
    color: #004d00; /* Hijau tua */
    margin-bottom: 5px;
}

.currency-box input {
    padding: 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Menyusun From, Swap, dan To secara horizontal */
.currency-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin: 20px 0;
}

.currency-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.currency-group select {
    padding: 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Swap Button */
#swap-btn {
    background-color: #004d00; /* Hijau tua */
    color: white;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#swap-btn:hover {
    background-color: #003300; /* Warna lebih gelap saat hover */
    transform: rotate(180deg);
}

/* Mode Mobile */
@media screen and (max-width: 768px) {
    .currency-select {
        flex-direction: column; /* Menyusun dropdown dan tombol secara vertikal */
        justify-content: center;
        align-items: center;
        gap: 10px; /* Menambah jarak antar elemen */
    }

    #swap-btn {
        transform: rotate(90deg); /* Rotasi tombol swap supaya bisa terlihat seperti tombol tukar */
        width: 40px;
        height: 40px;
        margin: 0; /* Menghilangkan margin untuk posisi yang lebih tepat */
    }

    .currency-group {
        display: flex;
        flex-direction: column; /* Menyusun label dan dropdown secara vertikal */
        align-items: center;
    }
}

/* Mode Web dan Tablet */
@media screen and (min-width: 769px) {
    .currency-select {
        flex-direction: row; /* Menyusun elemen secara horizontal */
        align-items: center;
        gap: 20px; /* Jarak antar elemen */
    }

    #swap-btn {
        transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
        width: 50px;
        height: 50px;
    }

    .currency-group {
        display: flex;
        flex-direction: column; /* Label dan dropdown disusun secara vertikal */
        align-items: center;
    }
}

/* Convert Button */
#convert-btn {
    background-color: #004d00; /* Hijau tua */
    color: white;
    cursor: pointer;
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#convert-btn:hover {
    background-color: #003300; /* Hijau lebih gelap */
    transform: translateY(-2px); /* Sedikit naik */
}

/* How-to-Use Section */
.how-to-use {
    background-color: white;
    color: black;
    padding: 40px 20px;
    margin-top: 20px;
    text-align: center;
}

.how-to-use h2 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #004d00; /* Hijau tua */
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.step:hover {
    background-color: #e0e0e0;
    transform: translateY(-5px);
}

.step h3 {
    font-weight: bold;
    color: #004d00; /* Hijau tua */
}

/* Footer */
.footer {
    background-color: #004d00; /* Hijau tua */
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #003300;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #ccc;
}