GarGerry commited on
Commit
05d1a10
·
verified ·
1 Parent(s): be7c3bf

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +124 -18
style.css CHANGED
@@ -1,46 +1,152 @@
1
- /* Header section - Sesuaikan warna dan ukuran */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  header h1 {
3
- font-size: 2rem;
4
  font-weight: bold;
5
- color: #002d63; /* Warna biru tua */
 
 
 
 
 
 
 
 
 
 
 
 
6
  }
7
 
8
- /* Currency selectors */
 
 
 
 
 
 
9
  .currency-selectors {
10
  display: flex;
11
- justify-content: space-between; /* Agar dropdown tidak terlalu rapat */
12
  align-items: center;
13
  gap: 10px;
14
  }
15
 
16
  span {
17
- font-size: 16px; /* Ukuran teks 'to' */
18
- font-weight: bold;
19
  color: #555;
20
  }
21
 
22
- /* Tombol Convert */
23
  button {
24
- padding: 15px;
25
- background-color: #0056b3; /* Warna biru yang lebih gelap */
26
- color: #ffffff;
27
  border: none;
28
- border-radius: 10px;
 
29
  font-size: 18px;
30
- font-weight: bold;
31
  cursor: pointer;
32
- transition: all 0.3s ease;
33
  }
34
 
35
  button:hover {
36
- background-color: #003d80; /* Warna hover lebih gelap */
37
  }
38
 
39
- /* Result box - Tambahan gaya */
40
  #result {
41
- font-size: 18px;
 
42
  font-weight: bold;
43
- color: #0056b3; /* Warna biru */
44
  background-color: #eef6ff; /* Latar belakang biru muda */
 
 
 
 
45
  border: 1px solid #d4eaff; /* Border biru muda */
46
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Resetting and global styles */
2
+ * {
3
+ margin: 0;
4
+ padding: 0;
5
+ box-sizing: border-box;
6
+ }
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
  header h1 {
39
+ font-size: 2rem; /* Ukuran font tetap */
40
  font-weight: bold;
41
+ color: #002d63; /* Warna biru tua untuk judul */
42
+ }
43
+
44
+ /* Form styles */
45
+ input, select {
46
+ padding: 12px;
47
+ margin: 10px 0;
48
+ width: 100%;
49
+ font-size: 16px;
50
+ border-radius: 8px;
51
+ border: 1px solid #E0E0E0;
52
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
53
+ transition: all 0.3s ease;
54
  }
55
 
56
+ input:focus, select:focus {
57
+ border: 1px solid #4CAF50;
58
+ outline: none;
59
+ box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
60
+ }
61
+
62
+ /* Styling for currency selectors */
63
  .currency-selectors {
64
  display: flex;
65
+ justify-content: center;
66
  align-items: center;
67
  gap: 10px;
68
  }
69
 
70
  span {
71
+ font-size: 18px;
72
+ font-weight: 500;
73
  color: #555;
74
  }
75
 
76
+ /* Button styles */
77
  button {
78
+ padding: 12px 20px;
79
+ background-color: #0056b3; /* Biru lebih gelap */
80
+ color: white;
81
  border: none;
82
+ border-radius: 8px;
83
+ width: 100%;
84
  font-size: 18px;
85
+ font-weight: 600;
86
  cursor: pointer;
87
+ transition: background-color 0.3s ease;
88
  }
89
 
90
  button:hover {
91
+ background-color: #003d80; /* Hover dengan warna biru tua */
92
  }
93
 
94
+ /* Result box styles */
95
  #result {
96
+ margin-top: 20px;
97
+ font-size: 20px;
98
  font-weight: bold;
99
+ color: #0056b3; /* Teks biru */
100
  background-color: #eef6ff; /* Latar belakang biru muda */
101
+ padding: 15px;
102
+ border-radius: 8px;
103
+ text-transform: uppercase;
104
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
105
  border: 1px solid #d4eaff; /* Border biru muda */
106
  }
107
+
108
+ /* Footer section styles */
109
+ footer {
110
+ border-top: 2px solid #333; /* Footer border */
111
+ padding-top: 15px;
112
+ margin-top: 20px;
113
+ }
114
+
115
+ /* Responsiveness for mobile screens */
116
+ @media (max-width: 768px) {
117
+ .container {
118
+ padding: 30px;
119
+ max-width: 100%;
120
+ }
121
+
122
+ h1 {
123
+ font-size: 1.5rem;
124
+ }
125
+
126
+ input, select {
127
+ font-size: 14px;
128
+ }
129
+
130
+ button {
131
+ font-size: 16px;
132
+ }
133
+ }
134
+
135
+ /* Responsiveness for larger screens */
136
+ @media (min-width: 769px) {
137
+ .container {
138
+ max-width: 700px;
139
+ }
140
+
141
+ h1 {
142
+ font-size: 2.5rem;
143
+ }
144
+
145
+ input, select {
146
+ font-size: 18px;
147
+ }
148
+
149
+ button {
150
+ font-size: 20px;
151
+ }
152
+ }