summaryrefslogtreecommitdiff
path: root/css/main.css
blob: ff6453863febb62fe2df7a8a79f9aaeb5681e12b (plain) (blame)
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
/* BACKGROUND SPARKLES CSS */
@import url("https://fonts.googleapis.com/css?family=DM+Sans:500,700&display=swap");

html, body {
  margin: 0 0;
  padding: 0 0;
  text-align: center;
  font-size: 0;
  background-color: none; /* This used to be #fdfcf3 */
}

/* It literally took my like 15 minutes in a Discord call with Gavin and Aaron to figure out
why this was not working. I tried like everything but this ended up solving it;
https: //www.freecodecamp.org/forum/t/why-is-my-background-color-not-changing/251971
So yea lol -10/04/2019 19:26*/

/* // This is not really needed bc it doesn't fix the problem,
   // just left it here for further reference.
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #2d2d2d !important;
  }
}
*/

body svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

/* LOADING ANIMATION */
/* body {
**   text-align: center;
**   padding-top: 20%;
**   background: #fdfdfd;
** }
*/

.loader-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #fdfdfd;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 4;
}

.loader {
  width: 100px;
  height: 100px;
  display: inline-table;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  border-spacing: 0.3em;
}

.loader row {
  display: table-row;
}

.loader row span {
  display: table-cell;
  position: relative;
  background: #1d1f20;
  opacity: 0;
  -webkit-animation: flicker 0.5985999999999999s ease-out infinite alternate;
  animation: flicker 0.5985999999999999s ease-out infinite alternate; /* Added standard property to fix compatbiliy issues */
}

@-webkit-keyframes flicker {
  from, 20% {
    opacity: 0;
  }
  100%, to {
    opacity: 1;
  }
}

@keyframes flicker { /* Added standard property to fix compatbiliy issues */
  from, 20% {
    opacity: 0;
  }
  100%, to {
    opacity: 1;
  }
}

.loader row:nth-child(1) span:nth-child(1) {
  -webkit-animation-delay: .50s;
  animation-delay: .50s;
}

/* Added standard property to fix compatbiliy issues */
.loader row:nth-child(1) span:nth-child(2) {
  -webkit-animation-delay: .70s;
  animation-delay: .70s;
}

.loader row:nth-child(1) span:nth-child(3) {
  -webkit-animation-delay: .60s;
  animation-delay: .60s;
}

.loader row:nth-child(2) span:nth-child(1) {
  -webkit-animation-delay: .20s;
  animation-delay: .20s;
}

.loader row:nth-child(2) span:nth-child(2) {
  -webkit-animation-delay: .80s;
  animation-delay: .80s;
}

.loader row:nth-child(2) span:nth-child(3) {
  -webkit-animation-delay: .90s;
  animation-delay: .90s;
}

.loader row:nth-child(3) span:nth-child(1) {
  -webkit-animation-delay: .10s;
  animation-delay: .10s;
}

.loader row:nth-child(3) span:nth-child(2) {
  -webkit-animation-delay: .30s;
  animation-delay: .30s;
}

.loader row:nth-child(3) span:nth-child(3) {
  -webkit-animation-delay: .40s;
  animation-delay: .40s;
}

/* ORINGINAL SITE CSS */
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html, body {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
}

body {
  font: normal 20px/1.4 'Inter', sans-serif;
  margin: 0 1em;
  padding: 1em 0;
  color: #000;
  background: none;
}



/* Media queries for navbar size in different screen sizes */

@media (max-height: 768px) {
  body {
    font: normal 15px/1.4 'Inter', sans-serif;
  }
}

@media (max-height: 750px) {
  body {
    font: normal 13px/1.4 'Inter', sans-serif;
  }
}

@media (max-height: 658px) {
  body {
    font: normal 11px/1.4 'Inter', sans-serif;
  }
}

@media (max-height: 579px) {
  body {
    font: normal 8px/1.4 'Inter', sans-serif;
  }
}

@media (max-height: 549px) {
  body {
    font: normal 6px/1.4 'Inter', sans-serif;
  }
}

/* End media queries */



/* // This was supposed to be for the dark mode feature but I
   // took it out because it looked ugly asf
@media (prefers-color-scheme: dark) {
  body {
    color: #fdfcf3;
  }
}
*/

@supports (font-variation-settings: normal) {
  body {
    font-family: 'Inter var', sans-serif;
  }
}

main {
  font-size: 6vh;
  line-height: 1.2;
  max-width: 75vh;
  z-index: 3;
}

@media(max-width: 768px) {
  main {
    margin: auto;
    width: 86.21%;
  }
}

@media(max-width: 411px) {
  main {
    margin: auto;
    width: 76.21%;
  }
}

/* I was trying to figure out how to only call the <a> tags from index.html, so it wouldn't change the values for other <a> tags, and I tried everything,
** or so I thought, and I figured out I had to do `.links a` by scrolling up and saw `.loader row span` which wasn't even the correct syntax but I removed
** the `row` and IT WORKED! I actually got so happy lol. - 2:15 AM, 8/7/2019
*/
.links a {
  color: inherit;
  text-decoration: none;
  background-color: #ffdc73;
  /* hsl(200, 100%, 80% */
  -webkit-box-shadow: 0 7px 30px -10px #ffdc73, 0 7px 30px -10px #ffdc73;
  box-shadow: 0 7px 30px -10px #ffdc73, 0 7px 30px -10px #ffdc73;
  -webkit-transition: background-color 0.15s ease-in-out;
  transition: background-color 0.15s ease-in-out;
  /* border-radius: 4px; // Looks nice but idk */
}

/* #ffdc73 box-shadow should usually be only box-shadow, but I made it two so it would be more visable.
// Secondary box-shadow, rgba(154,160,185,0.05)
*/

.links a:hover,
.links a:focus {
  outline: none;
  background-color: #282936;
  color: #fff;
  -webkit-transition: color 0.15s ease-in-out;
  transition: color 0.15s ease-in-out;
  -webkit-box-shadow: 0 7px 30px -10px #282936, 0 7px 30px -10px #282936;
  box-shadow: 0 7px 30px -10px #282936, 0 7px 30px -10px #282936; /* rgba(166,173,201,0.2) */
  -webkit-transition: -webkit-box-shadow 0.15s ease-in-out;
  transition: -webkit-box-shadow 0.15s ease-in-out;
  transition: box-shadow 0.15s ease-in-out;
  transition: box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

/* NAVIGATION MENU */
.navigation-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1 0 100%;
  flex: 1 0 100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

@media(max-width: 768px) {
  .navigation-bar {
    display: none;
  }
}

.nav {
  overflow: hidden;
  max-width: 100%;
  background-color: #fff;
  padding: 0 20px;
  border-radius: 40px;
  -webkit-box-shadow: 0 10px 40px rgba(159, 162, 177, 0.8);
  box-shadow: 0 10px 40px rgba(159, 162, 177, 0.8);
  position: absolute; /* Only reason it's centered. */
  /* Manual position adjusting
  ** top: 0;
  ** left: 0;
  */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-item {
  color: #83818c;
  padding: 20px;
  text-decoration: none;
  -webkit-transition: .3s;
  transition: .3s;
  margin: 0 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-item:before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #dfe2ea;
  border-radius: 8px 8px 0 0;
  opacity: 0;
  -webkit-transition: .3s;
  transition: .3s;
}

.nav-item:not(.is-active):hover:before {
  opacity: 1;
  bottom: 0;
}

.nav-item:not(.is-active):hover {
  color: #333;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  -webkit-transition: .4s;
  transition: .4s;
  height: 5px;
  z-index: 1;
  border-radius: 8px 8px 0 0;
}

/*
// NO IDEA WHAT THIS DOES HAHA
@media (max-width: 580px) {
  .nav {
    overflow: auto;
  }
}
*/

/* CLAIRO */
.clairo {
  position: absolute;
  top: 5px;
  left: 5px;
}

/* Particles.js CSS */
#particles-js {
  width: 100%;
  height: 100%;
  background-color: none;
  background-image: url('');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1 !important;
}