-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
126 lines (109 loc) · 2.07 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
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
body, html {
margin: 0;
padding: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #333;
background-color: #fff;
scroll-behavior: smooth;
}
header {
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
position: fixed;
width: 100%;
z-index: 1000;
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
}
header h1 {
font-size: 24px;
margin: 0;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 20px;
}
nav a {
text-decoration: none;
color: #333;
font-weight: 500;
padding: 5px 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
nav a:hover {
background-color: #f0f0f0;
}
main {
margin-top: 80px; /* Adjust based on header height */
}
section {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 60px 20px;
box-sizing: border-box;
position: relative;
}
.parallax {
background-attachment: fixed;
background-size: cover;
background-position: center;
position: relative;
z-index: 1;
}
.parallax::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
z-index: -1;
}
.content {
max-width: 800px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.9);
padding: 40px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.content h2 {
font-size: 36px;
margin-bottom: 20px;
color: #444;
}
.content p {
font-size: 18px;
line-height: 1.6;
}
.element-image {
width: 100%;
border-radius: 10px;
margin-top: 20px;
transition: transform 0.3s ease;
}
.element-image:hover {
transform: scale(1.05);
}
footer {
text-align: center;
padding: 20px;
background: #f8f8f8;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
footer p {
margin: 0;
color: #666;
}