-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
81 lines (73 loc) · 1.45 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
* {
margin: 0;
padding: 0;
}
body{
background-repeat: no-repeat;
background-size: cover;
background-color: rgb(6, 75, 12);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.hide {
display: none;
}
.lines{
width: 10px;
height: 70px;
margin-left: 240px;
background: white;
position: absolute;
}
.car, .enemy{
position: absolute;
background-color: white;
background-image: url(car1.png);
background-position: center;
background-size: 100% 100%;
width: 60px;
background-repeat: no-repeat;
height: 90px;
bottom: 50px;
}
audio{
position: absolute;
}
.score{
position: fixed;
background-color: yellow;
top: 50px;
z-index: 99;
left: 50px;
padding:20px;
font-weight: bolder;
letter-spacing: 3px;
font-size: 1.5rem;
font-family: sans-serif;
color: black;
text-align: center;
}
.startScreen{
background-color: #012;
text-align: center;
color: white;
padding: 60px;
z-index: 1;
position: absolute;
font-family: sans-serif;
letter-spacing: 2px;
font-size: 30px;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.gameArea{
background-color: rgb(19, 18, 41);
width:500px;
height: 750px;
margin: auto;
overflow: hidden;
position: relative;
}