-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
97 lines (90 loc) · 1.76 KB
/
style.css
File metadata and controls
97 lines (90 loc) · 1.76 KB
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
* {
margin: 0;
padding: 0;
}
.hide {
display: none;
}
.car {
width: 50px;
height: 70px;
background-image: url("car.png");
background-repeat: no-repeat;
background-size: 100% 100%;
height: 90px;
position: absolute;
bottom: 120px;
}
.enemy {
width: 50px;
background-image: url("car2.png");
background-repeat: no-repeat;
background-size: 100% 100%;
height: 100px;
position: absolute;
bottom: 120px;
}
.gameArea {
width: 400px;
height: 100vh;
background-color: #17181a;
margin: auto;
position: relative;
overflow: hidden;
border-right: 7px dashed #c8d6e5;
border-left: 7px dashed #c8d6e5;
}
.lines {
width: 10px;
height: 100px;
background: white;
position: absolute;
margin-left: 195px;
}
.score {
position: absolute;
top: 15px;
left: 40px;
background-color: greenyellow;
width: 300px;
height: 70px;
text-align: center;
color: rgb(11, 58, 1);
font-size: 2rem;
font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
"Lucida Sans", Arial, sans-serif;
font-weight: bold;
box-shadow: 0 5px 5px #777;
line-height: 70px;
text-transform: uppercase;
}
.startScreen {
position: absolute;
background-color: rgb(11, 61, 61);
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: whitesmoke;
z-index: 1;
text-align: center;
border: 1px solid #ff6b6b;
padding: 15px;
margin: auto;
width: 50%;
cursor: pointer;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
letter-spacing: 5;
font-size: 20px;
word-spacing: 3;
line-height: 30px;
text-transform: uppercase;
box-shadow: 0 5px 5px #777;
font-weight: bold;
}
.carGame {
width: 100%;
height: 100vh;
background-color: green;
background-repeat: no-repeat;
background-size: 100% 100%;
}