-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
70 lines (63 loc) · 1.06 KB
/
index.css
File metadata and controls
70 lines (63 loc) · 1.06 KB
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
@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap");
html {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
}
body {
height: 90vh;
width: 100vw;
background-color: black;
position: relative;
color: aliceblue;
}
.game-over {
font-family: "Cinzel Decorative", serif;
font-size: medium;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
font-size: 32px;
}
.flappy-bird {
height: 50px;
width: 50px;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 100px;
z-index: 100;
transition: all 0.5s linear;
}
.obstacle {
width: 50px;
background-color: red;
position: absolute;
}
.upper-obstacle {
top: 0;
}
.lower-obstacle {
bottom: 0;
}
.move-obstacle {
animation: moveObstacle 5s infinite linear forwards;
}
.score {
position: absolute;
top: 10px;
right: 10px;
color: aliceblue;
z-index: 200;
}
@keyframes moveObstacle {
from {
left: 100%;
}
to {
left: 0;
}
}