-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
90 lines (90 loc) · 1.71 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
*{
box-sizing:border-box;
margin:0;
padding:0;
}
.hide{
display:none;
}
.gamearea{
width:400px;
height:100vh;
background-color:rgb(29,26,26);
margin:auto;
position:relative;
overflow:hidden;
border-left:10px dashed white;
border-right:10px dashed white;
}
.startscreen{
position:absolute;
background-color:rgba(34,119,8,0.952);
color:white;
z-index:1;
margin-top:210px;
margin-left:360px;
text-align:center;
box-shadow:0 0 20px 0px rgba(0,0,0,0.1);
font-size:30px;
width:50%;
height:200px;
cursor:pointer;
border-radius:23px;
}
button{
padding:10px;
text-align:center;
background-color:black;
color:white;
}
.cargame{
background-image:url('image.png');
background-size:cover;
}
.score{
position:absolute;
top:15px;
left:50px;
text-align:center;
padding-top:23px;
font-size:30px;
line-height:20px;
background-color:rgba(34,119,8,0.952);
color:white;
width:300px;
height:100px;
box-shadow:0 0 20px 0px rgba(0,0,0,0.1);
}
.car{
width:50px;
height:70px;
background-color:red;
position:absolute;
bottom:120px;
background-image:;
background-size: cover;
}
.other{
width:50px;
height:70px;
background-color:blue;
background-image:;
background-size: cover;
position:absolute;
bottom:120px;
}
.lines{
width:10px;
height:100px;
background: white;
position:absolute;
margin-left:195px;
}
.enemy{
width:50px;
height:70px;
background-color: blue;
background-size: cover;
position:absolute;
bottom:120px;
}