forked from maxwofford/peace-and-tranquility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
85 lines (74 loc) · 1.77 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
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
body {
margin: 0; /* Removes the default margin */
height: 100vh; /* Sets the height of the body to the full viewport height */
overflow: hidden; /* Hides any overflow */
background-image: url("background.jpg");
animation: none;
background-size: cover; /* Covers the entire area of the body, might crop some parts of the image */
background-position: center; /* Centers the background image */
background-repeat: no-repeat; /* Prevents repeating the background image */
}
@keyframes transition-in {
0% {
transform: scale(0.3);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 0.7;
}
}
/* From https://codepen.io/patrickhlauke/pen/YaoBop */
@keyframes textflicker {
from {
text-shadow: 1px 0 0 #ea36af, -2px 0 0 #75fa69;
}
to {
text-shadow: 2px 0.5px 2px #ea36af, -1px -0.5px 2px #75fa69;
}
}
.container {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column-reverse;
align-items: center;
justify-content: center;
}
.begin {
font-size: 2em;
font-family: 'VT323', monospace;
font-weight: bolder;
text-align: center;
cursor: pointer;
}
.flicker-text {
animation-duration: 0.01s;
animation-name: textflicker;
animation-iteration-count: infinite;
animation-direction: alternate;
}
.phrase-box {
font-family: 'VT323', monospace;
color: white;
font-weight: bold;
/* animation: transition-in ease-in-out 3s; */
}
@media (max-width: 300px) {
.phrase-box { font-size: 1em; }
}
@media (min-width: 500px) {
.phrase-box { font-size: 2em; }
}
@media (min-width: 700px) {
.phrase-box { font-size: 3em; }
}
img {
width: 50%;
animation: transition-in ease-in-out 3s;
cursor: pointer;
}