-
Notifications
You must be signed in to change notification settings - Fork 4
/
cabbie.css
98 lines (92 loc) · 1.92 KB
/
cabbie.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
91
92
93
94
95
96
97
98
*{
margin: 0;
padding: 0;
}
.hide{
display:none;
}
.carGame{
width: 100%;
height: 100vh;
/* background-color: chartreuse; */
background-image: url('cabbie_images/car1.jpeg');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.car{
width:50px;
height:70px;
background-color: rgb(57, 177, 137);
position:absolute;
background-image: url(./cabbie_images/carvec.jpeg);
background-repeat: no-repeat;
background-size: 140% 130%;
background-position:center;
/* left:650px;
top:320px; */
bottom: 120px;
}
.enemyCar{
width:50px;
height:70px;
background-color: rgb(57, 177, 137);
position:absolute;
background-image: url(./cabbie_images/enemy1.jpeg);
background-repeat: no-repeat;
background-size: 140% 130%;
background-position:center;
/* left:650px;
top:320px; */
bottom: 120px;
}
.gameArea{
width:400px;
height: 100vh;
background: #2d3436 ;
margin: auto;
position:relative;
overflow : hidden;
border-right: 7px dashed #c8d6e5;
border-left: 7px dashed #c8d6e5;
}
.lines{
width: 7px;
height: 80px;
background: white;
position: absolute;
margin-left: 195px;
}
.score{
position: absolute;
top: 15px;
left: 40 px;
background: #262727;
width: 300px;
line-height: 70px;
text-align: center;
color: azure;
font-size: 1.5cm;
font-family: sans-serif;
box-shadow: 0 5px 5px #777;
}
.startScreen{
position: absolute;
background-color: cadetblue;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
color:white;
z-index: 1;
text-align:center;
border: 1px solid #6b7685;
padding :15px;
margin: auto;
width: 50%;
cursor: pointer;
font-family:serif;
letter-spacing: 3;
word-spacing : 2;
font-size: 20px;
text-transform:uppercase;
box-shadow: 0 5px 5px #777;
}