-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
84 lines (83 loc) · 1.7 KB
/
index.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
77
78
79
80
81
82
83
84
*{
margin:0;
padding:0;
}
.hide{
display:none;
}
.car{
width:30px;
height:70px;
background-color: red;
position: absolute;
bottom:120px;
border-radius: 20%;
/* left:50px;
top:120px; */
background-image: url('img/pngfind.com-car-top-view-png-749941.png');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.enemy{
width:30px;
height:70px;
border-radius: 20%;
background-color:blue;
position: absolute;
bottom:120px;
/* left:50px;
top:120px; */
background-image: url('img/pngfind.com-car-top-view-png-749941.png');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.carGame{
width:100%;
height:100%;
background-image:url('img/bg.jpg');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.score{
position:absolute;
top:15px;
left:40px;
background-color:aqua;
width:300px;
line-height:70px;
box-shadow: 0 5px 5px #777;
text-align: center;
font:1.5rem;
}
.startScreen{
position:absolute;
background-color:#54a0ff;
left:50%;
top:50%;
transform: translate(-50%,-50%);
color:white;
z-index: 1;
border:2px solid white;
width:50%;
padding: 15px;
cursor:pointer;
text-align: center;
line-height: 30px;
margin:auto;
text-transform: uppercase;
box-shadow: 0 5px 5px #777;
}
.gameArea{
width:400px;
height:100vh;
background:rgba(0, 0, 0, 0.81);
margin:auto;
position: relative;
}
.lines{
width:10px;
height:100px;
background-color: white;
position:absolute;
margin-left: 195px;
}