-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
160 lines (138 loc) · 2.64 KB
/
style.css
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
/* body{
margin: 0;
padding: 0;
text-align: center;
}
h1{
text-align: center;
color: white;
width: 95%;
}
.container{
background: linear-gradient(90deg, rgb(67, 255, 205), rgb(143, 162, 255));
padding: 50px;
margin: 5px;
border: none;
display: inline-block;
border-radius: 10px;
}
.input-div{
color: white;
text-align: center;
}
.inp{
width: 90%;
margin: 5px;
padding: 10px;
border: none;
border-radius: 30px;
}
p{
font-size: 10px;
color: white;
} */
/* Reset some default styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Set a base font size and family */
body {
font-family: "Arial", sans-serif;
font-size: 16px;
line-height: 1.6;
color: #333;
}
/* Global styles for the page */
html, body {
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #f8f8f8;
}
.container {
width: 100%;
max-width: 400px;
background-color: #fff;
padding: 40px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 32px;
font-weight: bold;
text-align: center;
margin-bottom: 30px;
color: #007bff;
}
.input-div {
margin-bottom: 20px;
}
label {
display: block;
font-size: 18px;
font-weight: bold;
margin-bottom: 8px;
color: #444;
}
.inp {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
color: #333;
transition: border-color 0.2s ease;
}
.inp:focus {
outline: none;
border-color: #007bff;
}
/* Styling for the temperature converter inputs */
#cel, #fah, #kel, #ran, #rea {
text-align: right;
}
/* Conversion result style */
.result {
font-size: 20px;
font-weight: bold;
text-align: center;
margin-top: 20px;
color: #007bff;
}
/* Convert button styles */
button {
display: block;
width: 100%;
padding: 12px 0;
border: none;
border-radius: 5px;
font-size: 18px;
font-weight: bold;
color: #fff;
background-color: #007bff;
cursor: pointer;
transition: background-color 0.2s ease;
}
button:hover {
background-color: #0056b3;
}
/* Responsive styles for small screens */
@media screen and (max-width: 600px) {
.container {
max-width: 90%;
}
.input-div {
text-align: center;
}
label {
margin-bottom: 5px;
}
.result {
font-size: 18px;
}
}