-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeneral.css
205 lines (175 loc) · 4.09 KB
/
General.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
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
/* General Styles */
body {
background-color: rgb(45, 45, 45);
color: white;
font-family: Arial, sans-serif;
margin: 0;
padding: 8px;
padding-top: 80px; /* Adjust this value to match the height of your navbar */
}
h1 {
font-size: 44px;
color: white;
margin: 0;
padding: 16px 0;
transition: color 0.3s ease-in-out;
}
h2 {
color: white;
padding: 8px 16px;
text-align: justify;
margin: 0;
transition: color 0.3s ease-in-out;
}
h2 a {
color: green;
text-decoration: none;
transition: color 0.3s ease-in-out;
}
h2 a:hover {
color: rgb(75, 75, 255);
}
h3 {
font-size: 16px;
color: white;
text-align: left;
margin: 0;
padding: 8px 0;
transition: color 0.3s ease-in-out;
}
img {
vertical-align: middle;
}
/* Button Styles */
button {
font-size: 24px;
background-color: gray;
padding: 8px 16px;
margin: 4px 16px;
border: none;
border-radius: 5px; /* Rounded corners for buttons */
color: white;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
button:hover {
background-color: rgb(45, 45, 45);
cursor: pointer;
}
/* Navigation Bar */
nav {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
background: #5d5d5d;
padding: 16px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
transition: background 0.3s ease-in-out;
}
nav ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style-type: none;
margin: 0;
padding: 0;
}
nav li {
margin: 0 10px; /* Add horizontal spacing between items */
padding: 0;
}
nav li a {
display: block;
color: #fff;
text-align: center;
font-size: 1.5em; /* Default font size */
text-decoration: none;
padding: 10px 20px; /* Added padding */
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition */
border-radius: 5px; /* Rounded corners */
}
nav li a:hover {
background-color: #444;
color: #00ff00; /* Add hover color */
transform: scale(1.1); /* Smooth scale transition */
}
nav li a:active {
background: #555;
color: #fff;
}
/* Add padding to the top of the body content to prevent overlap */
body {
padding-top: 80px; /* Adjust this value to match the height of your navbar */
}
/* Responsive adjustments */
@media (max-width: 768px) {
nav ul {
flex-direction: column; /* Stack items vertically */
align-items: center; /* Center items */
}
nav li {
margin: 5px 0; /* Vertical spacing between items */
}
nav li a {
font-size: 1.2em; /* Adjusted font size for tablets */
padding: 12px 15px; /* Adjusted padding */
}
body {
padding-top: 120px; /* Adjust this value for smaller screens */
}
}
@media (max-width: 480px) {
nav li a {
font-size: 1.2em; /* Ensure readability on mobile devices */
padding: 12px 15px; /* Adjusted padding */
}
body {
padding-top: 120px; /* Adjust this value for smaller screens */
}
}
/* Footer */
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: #5d5d5d;
color: #fff;
padding: 10px 0;
text-align: center;
z-index: 1000; /* Ensures it stays on top of other content */
}
.footer-links {
display: flex;
justify-content: center;
gap: 20px; /* Space between links */
}
.footer-links a {
color: #fff;
text-decoration: none;
transition: transform 0.3s ease-in-out; /* Add transition for hover effect */
}
.footer-links img {
vertical-align: middle;
transition: 0.3s ease-in-out;
}
.footer-links a:hover img {
transform: scale(1.1); /* Scale up on hover */
transition: 0.3s ease-in-out;
}
/* Media queries for fine-tuning */
@media (max-width: 768px) {
h1 {
font-size: 8vw; /* Adjust font size for tablets */
}
h2 {
font-size: 6vw;
}
}
@media (max-width: 480px) {
h1 {
font-size: 10vw; /* Larger text for small screens */
}
h2 {
font-size: 8vw;
}
}