GarGerry commited on
Commit
020c50f
·
verified ·
1 Parent(s): d58e1b4

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +32 -15
style.css CHANGED
@@ -13,21 +13,21 @@ body {
13
  align-items: flex-start; /* Posisi atas */
14
  min-height: 100vh;
15
  padding: 20px;
16
- overflow-y: auto; /* Mengaktifkan scroll vertikal */
17
  }
18
 
19
  .container {
20
  background: #ffffff;
21
- border-radius: 20px; /* Lebih besar untuk desain modern */
22
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); /* Bayangan lebih tegas */
23
- padding: 40px; /* Padding lebih besar */
24
  width: 100%;
25
- max-width: 600px; /* Lebih besar */
26
- margin-bottom: 20px; /* Jarak antar container */
27
  }
28
 
29
  header h1 {
30
- font-size: 28px; /* Ukuran font header lebih besar */
31
  color: #333;
32
  text-align: center;
33
  margin-bottom: 30px;
@@ -67,12 +67,11 @@ input {
67
  width: 100%;
68
  }
69
 
 
70
  .swap-group {
71
  display: flex;
72
  justify-content: center;
73
- margin: -40px 0 20px 0; /* Geser tombol swap ke atas container */
74
- position: relative; /* Agar posisi tetap di atas */
75
- z-index: 1; /* Prioritaskan swap button di atas */
76
  }
77
 
78
  #swapButton {
@@ -80,8 +79,8 @@ input {
80
  color: #007BFF;
81
  border: 2px solid #ccc;
82
  border-radius: 50%;
83
- width: 60px; /* Lebih besar */
84
- height: 60px; /* Lebih besar */
85
  display: flex;
86
  justify-content: center;
87
  align-items: center;
@@ -97,7 +96,7 @@ input {
97
 
98
  .result-box {
99
  margin-top: 20px;
100
- font-size: 18px; /* Font lebih besar */
101
  font-weight: bold;
102
  color: #333;
103
  background-color: #f8f8f8;
@@ -133,19 +132,37 @@ footer {
133
  /* Responsiveness */
134
  @media (max-width: 768px) {
135
  .container {
136
- padding: 30px;
137
  max-width: 95%;
138
  }
139
 
 
 
 
 
 
 
 
 
 
140
  #swapButton {
141
  width: 50px;
142
  height: 50px;
143
  font-size: 20px;
144
  }
 
 
 
 
 
 
 
 
 
145
  }
146
 
147
  @media (min-width: 769px) {
148
  .container {
149
- max-width: 700px; /* Ukuran lebih besar untuk desktop */
150
  }
151
  }
 
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;
 
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 {
 
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;
 
96
 
97
  .result-box {
98
  margin-top: 20px;
99
+ font-size: 18px;
100
  font-weight: bold;
101
  color: #333;
102
  background-color: #f8f8f8;
 
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
  }