Skip to content

Commit 9d3be7d

Browse files
authored
Update style.css
1 parent 8e5638a commit 9d3be7d

1 file changed

Lines changed: 43 additions & 30 deletions

File tree

  • task09-increase-counter-on-every-button-click
Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,74 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
15
body {
2-
padding: 200px;
6+
padding: 100px 15px;
37
text-align: center;
48
background: linear-gradient(to right, lightgreen, lightblue);
9+
font-family: Arial, sans-serif;
510
}
611

712
.container {
813
background-color: white;
9-
border: none;
10-
border-radius: 50px;
11-
width: 25%;
14+
border-radius: 30px;
15+
width: 100%;
16+
max-width: 400px;
1217
margin: auto;
13-
padding: 30px 80px 50px 80px;
18+
padding: 30px 20px 40px;
19+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
20+
}
21+
22+
h1 {
23+
font-size: 24px;
24+
margin-bottom: 25px;
25+
word-wrap: break-word;
1426
}
1527

1628
button {
17-
font-size: 15px;
18-
padding: 10px 20px;
29+
font-size: 16px;
30+
padding: 12px 20px;
1931
border: none;
2032
border-radius: 10px;
2133
color: white;
2234
background-color: cornflowerblue;
2335
font-weight: 600;
2436
cursor: pointer;
37+
transition: background-color 0.3s, transform 0.2s ease;
2538
}
2639

2740
button:hover {
2841
background-color: rgb(45, 102, 207);
29-
42+
transform: scale(1.05);
3043
}
3144

45+
/* Responsive Styles */
3246
@media (max-width: 500px) {
33-
body {
34-
padding: 80px 20px;
35-
}
47+
body {
48+
padding: 60px 15px;
49+
}
3650

37-
.container {
38-
width: 90%;
39-
padding: 30px 20px 40px 20px;
40-
}
51+
.container {
52+
padding: 25px 15px 30px;
53+
}
4154

42-
button {
43-
font-size: 14px;
44-
padding: 10px 15px;
45-
}
55+
h1 {
56+
font-size: 20px;
57+
}
4658

47-
#heading {
48-
font-size: 20px;
49-
}
59+
button {
60+
font-size: 14px;
61+
padding: 10px 16px;
62+
}
5063
}
5164

5265
@media (max-width: 300px) {
53-
button {
54-
font-size: 13px;
55-
padding: 8px 10px;
56-
}
57-
58-
#heading {
59-
font-size: 18px;
60-
}
66+
h1 {
67+
font-size: 18px;
68+
}
69+
70+
button {
71+
font-size: 13px;
72+
padding: 8px 12px;
73+
}
6174
}

0 commit comments

Comments
 (0)