-
Notifications
You must be signed in to change notification settings - Fork 0
/
relax.css
160 lines (142 loc) · 2.95 KB
/
relax.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
150
151
152
153
154
155
156
157
158
159
160
@font-face {
font-family: 'Jelle';
src: url('./fonts/Jellee-Roman.otf') format('embedded-opentype'), /* Internet Explorer */
url('./fonts/Jellee-Roman.otf') format('woff2'), /* Super Modern Browsers */
url('./fonts/Jellee-Roman.otf') format('woff'), /* Pretty Modern Browsers */
url('./fonts/Jellee-Roman.otf') format('truetype'), /* Safari, Android, iOS */
url('./fonts/Jellee-Roman.otf') format('svg');
/* Legacy iOS */
}
body {
height: 100vh;
background: radial-gradient(ellipse at bottom, black 0%, #01162E 100%);
font-family: "Jellee", "M PLUS Rounded 1c", "Mulish", sans-serif !important;
}
#main-text {
color: white;
position: absolute;
font-size: 4rem;
left: 50%;
transform: translateX(-50%);
top: 12rem;
}
#start-container {
position: relative;
height: 100%;
z-index: 2;
}
#start-text {
color: white;
font-size: 4rem;
font-weight: 600;
text-align: center;
margin: 0;
}
#start-desc-text {
color: white;
font-size: 1.5rem;
font-family: 'Mulish', sans-serif;
margin-bottom: 2rem;
margin-top: 0.3rem;
font-weight: 300;
line-height: 2rem;
}
.absolute-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.button {
background: #EF6C00;
border-radius: 30px;
box-shadow: #EF6C00 0 10px 20px -10px;
color: #FFFFFF;
cursor: pointer;
font-size: 1.2rem;
font-weight: 700;
line-height: 24px;
opacity: 1;
outline: 0 solid transparent;
padding: 0.8rem 3rem;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
width: fit-content;
word-break: break-word;
border: 0;
}
.button:hover {
background-color: #E65100;
}
.star {
position: absolute;
background: white;
border-radius: 50px;
animation: move;
animation-iteration-count: 1;
animation-timing-function: linear;
animation-fill-mode: forwards;
}
.type-1 {
width: 1px;
height: 1px;
box-shadow: 0 0 1px #fff;
}
.type-2 {
width: 2px;
height: 2px;
box-shadow: 0 0 1px #fff;
}
.type-3 {
width: 4px;
height: 4px;
box-shadow: 0 0 1px #fff;
}
.hidden {
visibility: hidden;
opacity: 0;
transition: visibility 0s 1s, opacity 1s linear;
}
.visible {
visibility: visible;
opacity: 1;
transition: opacity 1s linear;
}
.fade-in {
animation: fade-in 8s
}
@keyframes fade-in {
from {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes move {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-1200px);
display: none;
color: red;
}
}
@media screen and (max-width: 768px) {
.absolute-center {
width: 80%;
}
#main-text {
font-size: 2rem;
width: 80%;
}
#start-text {
font-size: 2.5rem;
}
#start-desc-text {
font-size: 1.2rem;
line-height: 1.6rem;
}
}