-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (95 loc) · 1.79 KB
/
Copy pathstyle.css
File metadata and controls
106 lines (95 loc) · 1.79 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
}
.gamecontainer {
width: 100%;
height: 100vh;
background-image: url("bg.png");
background-size: cover;
background-position: center bottom;
position: relative;
overflow: hidden;
}
.dino {
width: 233px;
height: 114px;
position: absolute;
bottom: 0;
left: 60px;
background-image: url("dino.png");
background-size: cover;
z-index: 5;
}
.animateDino {
animation: dinoJump 0.7s ease-out;
}
@keyframes dinoJump {
0% { bottom: 0; }
50% { bottom: 1100px; }
100% { bottom: 0; }
}
.obstacle {
width: 166px;
height: 113px;
position: absolute;
bottom: 0;
left: 100vw;
background-image: url("dragon.png");
background-size: cover;
z-index: 5;
}
.obstacleAni {
animation: obstacleMove 5s linear infinite;
}
@keyframes obstacleMove {
0% { left: 100vw; }
100% { left: -200px; }
}
.scorecount {
position: absolute;
top: 20px;
right: 30px;
font-size: 22px;
font-family: Arial, sans-serif;
font-weight: bold;
background: rgba(255,255,255,0.7);
padding: 8px 15px;
border-radius: 6px;
z-index: 10;
}
.overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(6px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 20px;
z-index: 100;
visibility: hidden;
}
.overlay.active {
visibility: visible;
}
.overlay h1 {
font-size: 60px;
color: white;
font-family: Arial;
}
.overlay button {
padding: 12px 35px;
font-size: 22px;
border: none;
border-radius: 8px;
cursor: pointer;
background: orange;
}