-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
118 lines (106 loc) · 2.23 KB
/
style.css
File metadata and controls
118 lines (106 loc) · 2.23 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
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
body {
padding: 0;
margin: 0;
background-color: rgb(37, 37, 37);
}
html,
body {
margin: 0;
height: 100%;
overflow: hidden;
}
#scene {
position: relative;
width: 450px;
height: 600px;
margin: 40px auto;
overflow: hidden;
top: -200px;
border-radius: 5%;
}
#bird {
background-image: url('./img/noup-removebg-preview.png');
background-repeat: no-repeat;
background-size: contain;
filter: drop-shadow(8px 8px 8px black);
width: 60px;
height: 60px;
position: absolute;
bottom: 300px;
left: 40%;
z-index: 100;
}
#sky {
width: 100%;
height: 530px;
position: absolute;
top: 0px;
background-image: url('./img/sky-1.png');
background-size: contain;
}
#base {
width: 100%;
height: 75px;
position: absolute;
bottom: 0px;
background-image: url('./img/base-1.png');
background-size: contain;
z-index: 200;
}
#pipe1 {
position: absolute;
width: 60px;
height: 225px;
background-color: green;
background-image: url('./img/pipe-1-1.png');
box-shadow: -8px 0px 20px;
background-repeat: no-repeat;
transform: rotate(180deg);
z-index: 100;
}
#pipe2 {
position: absolute;
width: 60px;
height: 225px;
bottom: 0px;
right: 0px;
background-color: green;
background-image: url('./img/pipe-1-1.png');
filter: drop-shadow(8px 8px 8px black);
background-repeat: no-repeat;
z-index: 100;
}
.top1 {
font-size: 4rem;
color: white;
font-family: 'Baloo 2', cursive;
}
.scores {
display: inline-block;
position: relative;
top: 300px;
left: 200px;
}
#toggle {
cursor: pointer;
width: 80px;
height: 80px;
background-image: url('./img/moon.jpg');
background-size: contain;
background-repeat: no-repeat;
position: relative;
top: -800px;
left: 1300px;
}
#gameover {
position: relative;
top: -850px;
left: 640px;
width: 350px;
height: 250px;
background-image: url('./img/gameover-1.png');
background-size: contain;
background-repeat: no-repeat;
z-index: 400;
display: none;
}