-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet.css
109 lines (103 loc) · 2.26 KB
/
stylesheet.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
body {
font-family: "Google Sans",Roboto,Arial,sans-serif;
color: #333;
background: url("collaboration.webp") no-repeat center center fixed;
background-size: cover;
margin: 0;
padding: 0;
padding-top: 200px; /* Adjust based on the height of your header */
padding-bottom: 500px;
}
header {
position: fixed; /* Make header always visible */
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0rem 2rem;
background-color: rgba(0, 14, 119, 0.5); /* Semi-transparent background */
color: white;
z-index: 1; /* Ensures header stays above other content */
}
nav {
display: flex;
justify-content: flex-end;
margin-right: 80px;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center; /* Center the links horizontally */
}
nav a {
display: inline-block;
margin: 0 10px; /* Space out the links */
color: white;
text-decoration: none;
padding: 10px;
}
a:hover {
background-color: red;
border-radius: 5px;
}
section {
padding: 30px;
margin: 70px 20px;
background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.footer {
background: rgba(8, 133, 64, 0.8);
color: white;
text-align: center;
padding: 1rem;
font-size: 0.8rem;
}
.footer a {
color: white;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
#hamburger-btn {
border: none;
font-size: 1px;
background: none;
}
/* Mobile styles */
@media (max-width: 768px) {
nav {
flex-direction: column;
align-items: flex-start;
width: 100%; /* Full-width nav menu */
display: none; /* Hide the nav by default */
margin-right: 0;
}
nav ul {
flex-direction: column;
align-items: center;
}
nav a {
display: block; /* Make links block-level for better touch targets */
margin: 10px 0; /* Spacing between links */
}
#hamburger-btn {
display: block; /* Show hamburger menu */
background: none;
border: none;
color: white;
font-size: 3rem;
cursor: pointer;
margin-right: 10px;
}
header {
flex-wrap: wrap; /* Allow header items to wrap */
padding: 0.5rem; /* Reduce padding */
}
}