-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcars.css
90 lines (89 loc) · 1.67 KB
/
cars.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
*{
margin:0;
padding:0;
}
.hide{
display:none;
}
.car{
height:120px;
border-radius: 10px;
width:50px;
position:absolute;
bottom:120px;
background:url(image/carace.png);
background-repeat: no-repeat;
background-size: 50px 120px;
}
.carGame{
width:100%;
height:100vw;
background: #001f3f;
background-repeat:no-repeat;
background-size:100% 100%;
}
.lines{
width:10px;
height:100px;
background: white;
position:absolute;
margin-left:190px;
}
.gameArea{
height:100vh;
width:400px;
background: #161717;
margin:auto;
position:relative;
overflow:hidden;
border-right:7px dashed #c8d6e5;
border-left:7px dashed #c8d6e5;
}
.enemy{
height:100px;
border-radius: 10px;
width:50px;
position:absolute;
bottom:120px;
background:url(image/carenemy.png);
background-repeat: no-repeat;
background-size: 50px 100px;
}
.score{
position:absolute;
top:70px;
left:50px;
background: #d2d9d4;
widows: 300px;
height:50px;
width:120px;
text-align:center;
font-size: 1.5em;
color:black;
font-family: fantasy;
box-shadow: 0 5px 5px #777;
border-radius: 23px;
}
.startScreen{
position:absolute;
top:50%;
left:50%;
background: #d2d9d4;
transform:translate(-50%,-50%);
color:black;
z-index: 1;
text-align:center;
border:1px solid #298f29;
padding:15px;
margin:auto;
width:50%;
cursor: pointer;
font-family: carfont;
letter-spacing: 5;
font-size: 10px;
word-spacing: 3;
line-height: 30px;
text-transform: upper;
box-shadow: 0 5px 5px #777;
border-radius: 23px;
}