-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.css
88 lines (70 loc) · 1.75 KB
/
main.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
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: "Katahdin Round";
src: url(fonts/katahdin-round/KatahdinRound.otf) format("opentype");
}
@font-face {
font-family: "Fivo Sans";
font-weight: 400;
src: url("fonts/fivo-sans/FivoSans/FivoSans-Regular.otf") format("opentype");
}
@font-face {
font-family: "Fivo Sans";
font-weight: 700;
src: url("fonts/fivo-sans/FivoSans/FivoSans-Bold.otf") format("opentype");
}
@layer base {
h1, h2, h3, h4, h5, h6 {
@apply font-display;
}
}
@layer utilities {
details {
@apply lg:w-[923px] bg-purple text-deep-purple rounded-[30px] py-2.5 lg:px-12 px-4 pointer-events-auto;
}
details summary {
@apply flex items-center justify-between text-2xl font-bold hover:cursor-pointer after:float-right marker:content-none after:content-none after:w-9 after:h-9 after:justify-self-end;
}
details p {
@apply text-2xl;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#particles-js > div > * {
position: relative;
z-index: 10;
}
.hover-scale, details {
@apply hover:scale-105 transition-transform origin-center;
}
/* Parallax effect */
.wrapper {
perspective: 10px;
height: 100vh;
overflow-x: hidden;
}
.parallax {
transform-style: preserve-3d;
}
.parallax > div.bg-cover {
z-index: -1;
}
.parallax > div.bg-enchanted-forest-layer-1 {
transform: translateZ(-20px) scale(3);
}
.parallax > div.bg-enchanted-forest-layer-2 {
transform: translateZ(-15px) scale(2.5);
}
.parallax > div.bg-enchanted-forest-layer-3 {
transform: translateZ(-10px) scale(2);
}
.parallax > div.bg-enchanted-forest-layer-4 {
transform: translateZ(-5px) scale(1.5);
}
}