-
Notifications
You must be signed in to change notification settings - Fork 13
/
style.css
63 lines (57 loc) · 1.42 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
body {
background-color: #73c8a9;
font-family: 'Press Start 2P', cursive;
background-image: linear-gradient(to right, #73c8a9, #373b44);
}
canvas {
border: 5px solid #2e2e2e;
border-radius: 10px;
display: block;
margin: 50px auto;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
background-image: url('assets/Flappy_Bird_Background.png');
background-size: cover;
background-repeat: no-repeat;
/* we will make the end menu overlap the game canvas, so we need here a lower z-index */
z-index: 1;
}
.backdrop-blur {
filter: blur(5px);
}
#end-menu {
/* we will toggle then the display of the end-menu */
display: none;
margin: 50px auto;
width: 200px;
padding: 20px;
text-align: center;
background-color: white;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: absolute;
left: 50%;
transform: translate(-50%, 50%);
z-index: 1000;
}
#score-display {
color: #fff;
font-size: 2em;
text-align: center;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
button {
background-color: #2e2e2e;
border: none;
border-radius: 5px;
color: #fff;
cursor: pointer;
font-size: 1em;
padding: 15px 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.25s ease;
}
button:hover {
background-color: #333;
transform: translateY(-2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}