-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
222 lines (188 loc) · 4.09 KB
/
style.css
File metadata and controls
222 lines (188 loc) · 4.09 KB
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/* Resetting margins and padding */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
color: #333;
line-height: 1.6;
}
/* Header Section */
header {
background-color: #003366;
color: #fff;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column; /* Stack items on mobile */
align-items: center; /* Center items */
}
.header-content {
display: flex;
justify-content: space-between;
width: 90%;
align-items: center; /* Center vertically */
}
.left h1 {
font-size: 2em;
margin: 0;
font-weight: bold;
letter-spacing: 1px;
}
.right nav ul {
list-style-type: none;
display: flex;
gap: 20px;
}
.right nav ul li {
display: inline;
}
.right nav ul li a {
color: white;
text-decoration: none;
font-size: 1.1em;
padding: 10px 20px;
border: 1px solid transparent;
border-radius: 5px;
background-color: rgb(0, 101, 164); /* Changed background to black */
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.right nav ul li a:hover {
background-color: #555; /* Dark grey hover effect */
}
header p {
margin-top: 10px;
font-size: 1.2em;
text-align: center;
}
/* Section styles */
section {
padding: 40px 20px;
margin: 20px auto;
max-width: 1200px;
background-color: #b2e2f1;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h2 {
font-size: 2.5em;
color: #003366;
margin-bottom: 20px;
border-left: 4px solid #003366;
padding-left: 10px;
}
p {
font-size: 1.1em;
margin-bottom: 20px;
}
ul {
list-style-type: none;
padding-left: 0;
}
ul li {
background-color: #f1f1f1;
margin-bottom: 10px;
padding: 15px;
border-left: 4px solid #00509e;
font-size: 1.1em;
border-radius: 5px;
transition: transform 0.3s ease;
}
ul li:hover {
transform: translateX(10px);
}
/* Contact Form styles */
#contactForm {
display: flex;
flex-direction: column;
gap: 15px;
}
label {
font-weight: bold;
font-size: 1.1em;
color: #003366;
}
input,
textarea {
padding: 15px;
font-size: 1.1em;
border: 1px solid #ddd;
border-radius: 5px;
width: 100%;
transition: border-color 0.3s ease;
}
input:focus,
textarea:focus {
border-color: #00509e;
outline: none;
}
button {
padding: 15px;
font-size: 1.1em;
background-color: black; /* Changed button background to black */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #555; /* Dark grey hover effect */
}
/* Footer styles */
footer {
text-align: center;
padding: 20px;
background-color: #003366;
color: white;
margin-top: 40px;
box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}
footer p {
font-size: 1em;
}
/* Media Queries for Mobile View */
@media (max-width: 768px) {
header {
flex-direction: column; /* Stack header content */
text-align: center; /* Center text */
}
.header-content {
flex-direction: column; /* Stack header elements */
align-items: center; /* Center elements */
}
.right nav ul {
flex-direction: column; /* Stack nav items */
align-items: center; /* Center items */
gap: 10px; /* Reduce gap between items */
}
.right nav ul li {
display: block; /* Stack items */
}
header h1 {
font-size: 1.8em; /* Slightly smaller header on mobile */
}
header p {
font-size: 1.2em; /* Slightly smaller subheader */
}
section {
padding: 30px 15px; /* Reduce padding for mobile */
}
h2 {
font-size: 2em; /* Adjust heading size */
}
p {
font-size: 1em; /* Adjust paragraph size */
}
ul li {
font-size: 1em; /* Adjust list item size */
}
label,
button {
font-size: 1em; /* Adjust label and button size */
}
}