-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
78 lines (64 loc) · 1.02 KB
/
style.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
/* Basic resets */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
header {
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1000;
}
nav {
background-color: #333;
padding: 15px;
transition: background-color 0.3s ease;
}
nav.scrolled {
background-color: #222;
}
.nav-links {
list-style: none;
display: flex;
justify-content: center;
}
.nav-links li {
margin: 0 15px;
}
.nav-links a {
text-decoration: none;
color: white;
padding: 10px;
transition: color 0.3s ease;
}
.nav-links a:hover {
color: #f0a500;
}
/* Section styling */
.section {
height: 100vh;
padding-top: 80px;
text-align: center;
font-size: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
#home {
background-color: #f5f5f5;
}
#about {
background-color: #ddd;
}
#services {
background-color: #bbb;
}
#contact {
background-color: #999;
}