-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
99 lines (83 loc) · 2 KB
/
styles.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
/* Dropdown Styling */
nav ul {
list-style: none;
padding: 0;
margin: 0;
}
nav ul li {
display: inline-block;
position: relative;
}
nav ul li a {
color: #fff; /* White text for navigation links */
text-decoration: none;
padding: 1rem;
display: block;
}
nav ul li:hover .dropdown-content {
display: block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #333; /* Dark background for dropdown */
min-width: 200px;
z-index: 1;
top: 100%; /* Position dropdown directly below the parent item */
left: 0; /* Align dropdown with the left edge of the parent item */
}
.dropdown-content li {
display: block;
}
.dropdown-content li a {
padding: 1rem;
text-align: left;
color: #fff; /* White text inside dropdown */
text-decoration: none;
}
.dropdown-content li a:hover {
background-color: #444; /* Darker background on hover */
}
/* General Body Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4; /* Light background for body */
color: #333; /* Dark text color for general readability */
}
/* Header Styling */
header {
background-color: #333; /* Dark background for header */
color: #fff; /* White text for header */
padding: 1rem 0;
text-align: center;
}
/* Main Content Styling */
main {
padding: 2rem;
padding-bottom: 4rem; /* Add extra padding to avoid the footer overlap */
background-color: #fff; /* White background for main content */
color: #333; /* Dark text color for main content */
}
section {
margin-bottom: 2rem;
}
/* Footer Styling */
footer {
background-color: #333; /* Dark background for footer */
color: #fff; /* White text for footer */
text-align: center;
padding: 1rem 0;
position: fixed;
width: 100%;
bottom: 0;
}
/* Hide all sections except the current one */
section.hidden {
display: none;
}
/* Show the active section */
section.active {
display: block;
}