-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
151 lines (112 loc) · 2.19 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* styles.css */
body, html {
margin: 0;
font-family: 'Press Start 2P', cursive; /* Pixel font */
height: 100%; /* Set the height of body and html to 100% */
scroll-snap-type: y mandatory;
}
.container {
display: flex;
flex-direction: column;
height: 304vh;
}
.container section {
height: 100%; /* Set each section to full viewport height */
scroll-snap-align: start;
position: relative;
justify-content: center;
align-items: center;
}
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
z-index: 3;
}
#home {
background: url('background.gif') center/cover no-repeat fixed;
}
.scroll-text-container {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
color: white;
}
.scroll-down-text {
margin: 0 20px;
font-size: 18px;
}
.left-arrow {
border-width: 10px 15px 10px 0;
border-color: transparent #fff transparent transparent;
margin-right: 4px;
}
.right-arrow {
border-width: 10px 0 10px 15px;
border-color: transparent transparent transparent #fff;
margin-left: 4px;
}
#portfolio {
background: none;
/* No background for the portfolio section */
}
#pixelCanvas {
position: absolute;
top: 0;
left: 0;
z-index: 2;
}
#content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
z-index: 3;
}
canvas {
position: fixed;
top: 0;
left: 0;
z-index: 2;
}
#name, #subtitle {
display: block;
margin: 0 auto; /* Set initial opacity to 0 for fade-in effect */
}
#name{
margin-bottom: 2%;
}
nav {
text-align: center;
margin-top: 10px;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav a {
text-decoration: none;
color: #fff;
font-size: 18px;
transition: color 0.3s;
}
nav a:hover {
color: #42a5f5;
}
.slide-animation {
transition: background 1s ease;
}
nav a.underline {
border-bottom: 2px solid #42a5f5;
}