-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
195 lines (168 loc) · 3.14 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
@import url("https://fonts.googleapis.com/css2?family=Cinzel&family=EB+Garamond&family=Epilogue:wght@200&display=swap");
{
box-sizing: border-box;
}
body {
font-family: "Epilogue", sans-serif;
background-color: rgb(33, 33, 59);
background-image: URL("night-train.png");
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
-webkit-background-position: center;
-webkit-background-repeat: no-repeat;
-webkit-background-attachment: fixed;
-webkit-background-size: cover;
overflow: hidden;
font-display: flex;
flex-direction: column;
align-items: center;
}
#container {
display: flex;
align-items: center;
justify-content: center;
margin: 10% auto;
height: 300px;
width: 300px;
position: relative;
transform: scale(1);
}
.circle {
background-color: #010f1c;
height: 100%;
width: 100%;
border-radius: 50%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.gradient-circle {
background: conic-gradient(
#6d0975 10%,
#7d6ae7 30%,
#f6f5f8 50%,
#6d0975 75%,
#4a3d63 100%
);
height: 320px;
width: 320px;
z-index: -2;
border-radius: 50%;
position: absolute;
top: -10px;
left: -10px;
}
#pointer-container {
position: absolute;
top: -40px;
left: 140px;
width: 20px;
height: 190px;
animation: rotate 9s linear forwards infinite;
transform-origin: bottom center;
-webkit-animation: rotate 9s linear forwards infinite;
}
.pointer {
background-color: #fff;
border-radius: 50%;
height: 20px;
width: 20px;
display: block;
}
p {
font-size: 3rem;
color: #fff;
text-align: center;
}
.rotate {
animation: rotate 9s linear forwards infinite;
-webkit-animation: rotate 9s linear forwards infinite;
}
.grow {
animation: grow 3s linear forwards;
-webkit-animation: grow 3s linear forwards;
}
.shrink {
animation: shrink 3s linear forwards;
-webkit-animation: shrink 3s linear forwards;
}
/**ANIMATIONS**/
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes grow {
from {
transform: scale(1);
}
to {
transform: scale(1.2);
}
}
@keyframes shrink {
from {
transform: scale(1.2);
}
to {
transform: scale(1);
}
}
/***background img adjusted according to different screen sizes***/
/***MOBILE*/
@media (min-width: 320px) and (max-width: 640px) {
body {
min-width: 100vw;
background-position-x: -300px;
}
#container {
margin: 20% auto;
}
.circle {
height: 80%;
width: 80%;
left: 2rem;
}
.gradient-circle {
height: 260px;
width: 260px;
top: -10px;
left: 1.4rem;
}
#pointer-container {
top: -30px;
left: 140px;
width: 20px;
height: 150px;
}
.pointer {
height: 20px;
width: 20px;
}
p {
font-size: 2rem;
margin-top: -20px;
}
}
/**LARGER SCREENS BACKGROUND POSITION**/
@media (min-width: 1400px) {
body {
background-position-y: -320px;
}
}
@media (min-width: 1600px) {
body {
background-position-y: -500px;
}
@media (min-width: 1900px) {
body {
background-position-y: -800px;
}
}
}