GarGerry commited on
Commit
a077f4c
·
verified ·
1 Parent(s): 2cb2457

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +108 -18
style.css CHANGED
@@ -1,28 +1,118 @@
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Global Reset */
2
+ * {
3
+ margin: 0;
4
+ padding: 0;
5
+ box-sizing: border-box;
6
+ font-family: Arial, sans-serif;
7
+ }
8
+
9
  body {
10
+ background-color: #f4f4f9;
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ justify-content: center;
15
+ height: 100vh;
16
+ text-align: center;
17
+ color: #333;
18
+ }
19
+
20
+ /* Header */
21
+ header {
22
+ background-color: #2d3e50;
23
+ width: 100%;
24
+ padding: 20px;
25
+ color: #fff;
26
+ text-align: center;
27
+ }
28
+
29
+ header .logo {
30
+ font-size: 36px;
31
+ font-weight: bold;
32
+ }
33
+
34
+ header h1 {
35
+ margin-top: 10px;
36
+ font-size: 28px;
37
+ }
38
+
39
+ header p {
40
+ font-size: 16px;
41
+ margin-top: 5px;
42
  }
43
 
44
+ /* Main Content */
45
+ main {
46
+ margin-top: 30px;
47
+ width: 100%;
48
+ max-width: 600px;
49
+ padding: 20px;
50
+ background-color: #fff;
51
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
52
+ border-radius: 8px;
53
  }
54
 
55
+ .converter-container {
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: center;
 
59
  }
60
 
61
+ input[type="number"], select {
62
+ width: 100%;
63
+ padding: 10px;
64
+ margin: 10px 0;
65
+ border: 1px solid #ddd;
66
+ border-radius: 4px;
67
+ font-size: 16px;
68
  }
69
 
70
+ button {
71
+ width: 100%;
72
+ padding: 12px;
73
+ background-color: #2d3e50;
74
+ color: #fff;
75
+ border: none;
76
+ border-radius: 4px;
77
+ font-size: 16px;
78
+ cursor: pointer;
79
+ margin-top: 10px;
80
  }
81
+
82
+ button:hover {
83
+ background-color: #3c4e64;
84
+ }
85
+
86
+ /* Swap Button */
87
+ #swap-btn {
88
+ width: auto;
89
+ background-color: transparent;
90
+ color: #2d3e50;
91
+ font-size: 18px;
92
+ cursor: pointer;
93
+ padding: 10px 20px;
94
+ border: 1px solid #2d3e50;
95
+ margin: 20px 0;
96
+ }
97
+
98
+ #swap-btn:hover {
99
+ background-color: #2d3e50;
100
+ color: #fff;
101
+ }
102
+
103
+ /* Result Display */
104
+ #result {
105
+ margin-top: 20px;
106
+ font-size: 18px;
107
+ font-weight: bold;
108
+ color: #2d3e50;
109
+ }
110
+
111
+ /* Footer */
112
+ footer {
113
+ margin-top: 50px;
114
+ padding: 20px;
115
+ background-color: #2d3e50;
116
+ color: #fff;
117
+ width: 100%;
118
+ te