Skip to content

Commit c86d232

Browse files
Add fade-in animation and adjust element sizing
1 parent e89c4f5 commit c86d232

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

style.css

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,38 @@ body {
44
display: flex;
55
flex-direction: column;
66
align-items: center;
7-
padding-top: 60px;
7+
padding-top: 5px; /* Changed to 5px */
88
background-color: #f8f9fa;
99
}
1010

1111
h1 {
12-
margin-bottom: 30px;
12+
margin-bottom: 40px;
1313
color: #343a40;
1414
text-align: center;
15+
font-size: 2.5em;
1516
}
1617

1718
.container {
1819
background-color: #ffffff;
19-
padding: 40px;
20-
border-radius: 10px;
21-
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
20+
padding: 50px;
21+
border-radius: 12px;
22+
box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
2223
display: flex;
2324
flex-direction: column;
24-
gap: 20px;
25-
width: 350px;
25+
gap: 25px;
26+
width: 400px;
27+
animation: fadeIn 0.5s ease-out;
28+
}
29+
30+
@keyframes fadeIn {
31+
from {
32+
opacity: 0;
33+
transform: translateY(-20px);
34+
}
35+
to {
36+
opacity: 1;
37+
transform: translateY(0);
38+
}
2639
}
2740

2841
.container > div {
@@ -34,14 +47,15 @@ h1 {
3447
label {
3548
font-weight: 500;
3649
color: #495057;
50+
font-size: 1.1em;
3751
}
3852

3953
input[type="number"] {
40-
padding: 10px;
54+
padding: 12px;
4155
border: 1px solid #ced4da;
42-
border-radius: 6px;
43-
width: 180px;
44-
font-size: 16px;
56+
border-radius: 8px;
57+
width: 200px;
58+
font-size: 1.1em;
4559
}
4660

4761
input[type="number"]:focus {
@@ -51,13 +65,13 @@ input[type="number"]:focus {
5165
}
5266

5367
button {
54-
padding: 12px 24px;
68+
padding: 14px 28px;
5569
background-color: #007bff;
5670
color: white;
5771
border: none;
58-
border-radius: 6px;
72+
border-radius: 8px;
5973
cursor: pointer;
60-
font-size: 16px;
74+
font-size: 1.1em;
6175
transition: background-color 0.3s ease;
6276
}
6377

0 commit comments

Comments
 (0)