forked from iamrahulmahato/master-web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.css
179 lines (151 loc) · 3.97 KB
/
footer.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
html {
scroll-behavior: smooth;
}
footer {
background-color: #fff;
padding: 40px 20px;
text-align: center;
color: #000;
font-family: Arial, sans-serif;
}
.footer-content {
display: flex;
justify-content: space-around;
align-items: flex-start;
margin-bottom: 20px;
}
.footer-section {
flex: 1;
margin: 0 20px;
}
.footer-section h3 {
margin-bottom: 15px;
color: #000;
font-size: 18px;
font-weight: bold;
}
.footer-section ul {
list-style: none;
padding: 0;
}
.footer-section ul li {
margin-bottom: 10px;
}
.footer-section ul li a {
text-decoration: none;
color: #000;
position: relative;
display: inline-block;
padding-bottom: 2px; /* Adjust space between text and line */
transition: color 0.3s ease;
}
.footer-section ul li a::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background-color: #f8c5c5; /* Pink color for the line */
transition: width 0.3s ease;
}
.footer-section ul li a:hover::after {
width: 100%; /* Line expands from 0 to 100% width */
}
.footer-section ul li a:hover {
color: #f8c5c5; /* Pink text on hover */
}
.footer-section p {
color: #555;
}
.newsletter form {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap; /* Allows wrapping if screen is too small */
}
#newsletter-heading{
font-size: 25px;
margin-right: 150px;
}
.newsletter input[type="email"] {
padding: 10px;
width: 70%; /* Adjusted width for better alignment */
border: 1px solid #ddd;
border-radius: 5px;
margin-right: 10px; /* Adds spacing between input and button */
box-sizing: border-box; /* Ensures padding doesn't exceed width */
}
.newsletter button {
padding: 10px 20px; /* Ensured padding to make button height match input */
background-color: #f8c5c5; /* Pink background */
color: #000;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.newsletter button:hover {
background-color: #e39a9a; /* Slightly darker pink on hover */
}
.footer-bottom {
display: flex;
flex-direction: column; /* Stacks the social icons and copyright text vertically */
justify-content: center;
align-items: center; /* Centers content horizontally */
border-top: 1px solid #ddd;
padding-top: 20px;
text-align: center; /* Ensures text is centered */
}
.footer-bottom .social-icons a {
margin: 0 10px;
text-decoration: none;
color: #000;
font-size: 20px;
transition: color 0.3s ease;
}
.footer-bottom .social-icons {
margin-bottom: 10px; /* Adds spacing between social icons and copyright text */
}
.footer-bottom .social-icons a:hover {
color: #f8c5c5; /* Soft pink color on hover */
}
.footer-bottom p {
margin-top: 10px; /* Adds some spacing between icons and text */
color: #777;
font-size: 14px;
text-align: center; /* Ensures the copyright text is centered */
}
.footer-section h3 {
margin-bottom: 15px;
color: #000; /* Regular text color */
font-size: 18px;
font-weight: bold;
transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth transition for glow effect */
position: relative;
}
.footer-section h3:hover {
color: #000; /* Keeps text color black */
text-shadow: 0 0 20px rgba(248, 197, 197, 1), /* Pinkish glow from behind */
0 0 30px rgba(248, 197, 197, 0.9),
0 0 45px rgba(248, 197, 197, 0.8);
}
/* Mobile view */
@media (max-width: 768px) {
.footer-content {
flex-direction: column;
align-items: center;
}
.footer-section {
margin-bottom: 30px;
}
.footer-bottom {
flex-direction: column;
text-align: center;
}
.newsletter input[type="email"], .newsletter button {
width: 100%; /* Makes input and button full width on small screens */
margin-right: 0;
margin-bottom: 10px;
}
}