-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
93 lines (80 loc) · 1.43 KB
/
styles.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
* {
box-sizing: border-box;
}
body {
height: 100%;
margin: 0;
}
.car,
.enemy {
position: absolute;
bottom: 100px;
margin: auto;
width: 50px;
height: 100px;
background-color:black;
background-image: url(./images/car3.jpg);
background-size: 100% 100%;
}
.gameArea {
width: 400px;
height: 90vh;
background-color: black;
margin: auto;
overflow: hidden;
position: relative;
}
.line {
position: absolute;
width: 10px;
height: 100px;
background-color: white;
margin-left: 50%;
}
.score {
background: black;
color: white;
text-align: center;
height: 3rem;
position: sticky;
margin: auto;
display: none;
font-size: 2rem;
}
.gameStart {
font-size: 2rem;
text-align: center;
position: absolute;
width: 100%;
top: 100px;
height: 300px;
color: white;
margin: auto;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
background-image: url(./images/car-poster.jpg);
background-size: 100% 100%;
}
.hide {
display: none;
}
.gameOver {
font-size: 3rem;
text-align: center;
position: absolute;
width: 400px;
top: 250px;
left: 483px;
color: white;
margin: auto;
z-index: 1;
border: 2px solid red;
background-color: rgba(255, 0, 0, 0.342);
}
span{
color:rgb(214, 128, 30);
font-size: 3rem;
font-family: fantasy;
}