Skip to content

Commit e9db54f

Browse files
Update style.css
1 parent 2f818cc commit e9db54f

File tree

1 file changed

+98
-4
lines changed

1 file changed

+98
-4
lines changed

css/style.css

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ body {
44
padding: 0;
55
background-color: #f8f9fa;
66
color: #333;
7+
line-height: 1.5;
78
}
89

910
/* Navbar */
@@ -12,13 +13,17 @@ nav {
1213
padding: 1em;
1314
display: flex;
1415
gap: 1em;
16+
justify-content: center;
17+
border-radius: 0 0 8px 8px;
1518
}
1619

1720
nav a {
1821
color: #ccc;
1922
text-decoration: none;
2023
padding: 0.5em 1em;
2124
border-radius: 4px;
25+
font-weight: 600;
26+
transition: background-color 0.3s ease, color 0.3s ease;
2227
}
2328

2429
nav a:hover,
@@ -27,24 +32,34 @@ nav a.active {
2732
color: white;
2833
}
2934

35+
/* Main content */
3036
main {
3137
padding: 2em;
3238
max-width: 800px;
3339
margin: auto;
40+
background: white;
41+
border-radius: 8px;
42+
box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
3443
}
3544

3645
/* Pricing boxes */
3746
div.pricing-box {
38-
background: white;
47+
background: #fff;
3948
border: 1px solid #ddd;
4049
padding: 1.5em;
4150
margin-bottom: 1em;
4251
border-radius: 8px;
4352
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
53+
transition: box-shadow 0.3s ease;
54+
}
55+
56+
div.pricing-box:hover {
57+
box-shadow: 0 6px 12px rgba(0,0,0,0.1);
4458
}
4559

4660
div.pricing-box h2 {
4761
margin-top: 0;
62+
color: #007bff;
4863
}
4964

5065
/* Footer */
@@ -53,10 +68,9 @@ footer {
5368
padding: 1em;
5469
background-color: #343a40;
5570
color: #ccc;
56-
position: relative;
57-
bottom: 0;
58-
width: 100%;
5971
margin-top: 2em;
72+
border-radius: 8px 8px 0 0;
73+
font-size: 0.9em;
6074
}
6175

6276
/* Form */
@@ -65,6 +79,7 @@ form {
6579
padding: 1.5em;
6680
border-radius: 8px;
6781
border: 1px solid #ddd;
82+
box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
6883
}
6984

7085
input[type="text"],
@@ -75,6 +90,8 @@ textarea {
7590
margin-bottom: 1em;
7691
border: 1px solid #ccc;
7792
border-radius: 4px;
93+
font-size: 1em;
94+
font-family: inherit;
7895
}
7996

8097
input[type="submit"] {
@@ -84,8 +101,85 @@ input[type="submit"] {
84101
border: none;
85102
border-radius: 4px;
86103
cursor: pointer;
104+
font-weight: 600;
105+
transition: background-color 0.3s ease;
87106
}
88107

89108
input[type="submit"]:hover {
90109
background-color: #0056b3;
91110
}
111+
112+
/* Lists */
113+
ul {
114+
margin: 1em 0 1em 1.5em;
115+
padding-left: 0;
116+
}
117+
118+
ul li {
119+
margin-bottom: 0.7em;
120+
list-style-type: none;
121+
position: relative;
122+
padding-left: 1.5em;
123+
font-size: 1em;
124+
}
125+
126+
/* Custom bullet */
127+
ul li::before {
128+
content: "👉";
129+
position: absolute;
130+
left: 0;
131+
top: 0;
132+
}
133+
134+
/* Eroor(404) page specific styling */
135+
.error {
136+
text-align: center;
137+
padding: 3em 1em;
138+
background: #fff;
139+
border-radius: 8px;
140+
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
141+
max-width: 480px;
142+
margin: 3em auto;
143+
}
144+
145+
.error h1 {
146+
font-size: 4em;
147+
color: #dc3545;
148+
margin-bottom: 0.3em;
149+
font-weight: 900;
150+
line-height: 1;
151+
}
152+
153+
.error p {
154+
font-size: 1.25em;
155+
color: #555;
156+
margin-bottom: 1.2em;
157+
}
158+
159+
.error a {
160+
display: inline-block;
161+
background-color: #007bff;
162+
color: white;
163+
text-decoration: none;
164+
padding: 0.75em 1.5em;
165+
border-radius: 6px;
166+
font-weight: 700;
167+
transition: background-color 0.3s ease;
168+
}
169+
170+
.error-404 a:hover {
171+
background-color: #0056b3;
172+
}
173+
174+
/* Responsive adjustments */
175+
@media (max-width: 600px) {
176+
nav {
177+
flex-wrap: wrap;
178+
gap: 0.5em;
179+
}
180+
181+
main {
182+
margin: 1em;
183+
padding: 1.5em;
184+
}
185+
}

0 commit comments

Comments
 (0)