-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
76 lines (72 loc) · 1.24 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
64
65
66
67
68
69
70
71
72
73
74
75
76
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
/* background-image: url(./bg-r.jpg); */
background-image: linear-gradient(rgb(155, 227, 107), rgb(36, 187, 53));
height: 100vh;
max-height: 100vh;
width: 100vw;
overflow: hidden;
/* background-color: blue; */
}
#GameArea{
background-color: #023047;
width: 400px;
height: 100vh;
margin: auto;
position: relative;
z-index: 1;
}
#player_car{
position: absolute;
top:400px;
left:0px;
width: 50px;
height: 70px;
z-index: 4;
}
.enemy_car{
/* position: absolute; */
width: 50px;
height: 70px;
z-index: 5;
}
.startScreen,.endScreen{
position: relative;
background-color: aqua;
bottom:50vh;
z-index: 2;
width: 50%;
margin: auto;
text-align: center;
}
.hide{
display: none;
}
.road{
width: 10px;
height:80px;
background-color: white;
position: absolute;
margin-left: 195px;
}
.enemy{
position: absolute;
z-index: 5;
}
#score{
width: 200px;
height: 50px;
background-color: cadetblue;
color: white;
font-size: 20px;
position: absolute;
top:10px;
left: 10px;
padding: 10px;
text-align: center;
z-index: 5;
}