/
index.css
93 lines (77 loc) · 1.22 KB
/
index.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
body {
background: black;
color: white;
font-family: 'Press Start 2P', cursive;
}
.area {
border: 1px solid limegreen;
}
.game {
width: 100%;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
}
.hud {
width: 100%;
}
.button {
background: #385838;
color: white;
padding: 1em;
cursor: pointer;
text-align: center;
width: auto;
}
@keyframes textShadowColor {
0% {
text-shadow: 2px 2px 0 blue;
}
25% {
text-shadow: 2px 2px 0 red;
}
50% {
text-shadow: 2px 2px 0 orange;
}
75% {
text-shadow: 2px 2px 0 cyan;
}
100% {
text-shadow: 2px 2px 0 blueviolet;
}
}
.title {
animation: textShadowColor 2s infinite;
display: flex;
align-items: center;
}
.title__text {
}
.title__logo {
margin-left: 0.5em;
}
.scores {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 2em 0;
}
.gameover {
background: #dab835f5;
padding: 2em;
text-shadow: 2px 1px 0px #000;
text-align: center;
border: 30px inset #bbb16740;
position: fixed;
top: 5vh;
color: white;
}
.congratulations {
animation: textShadowColor 0.3s infinite;
}
@media only screen and (min-width: 640px) {
.game {
width: 640px;
}
}