-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
103 lines (93 loc) · 1.9 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
* {
margin: 0%;
padding: 0%;
box-sizing: border-box;
overflow: hidden;
cursor: none;
}
body {
background-image: url("images/Play.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
width: 100vw;
font-family: "Press Start 2P", cursive;
color: white;
}
img {
width: 100%;
height: 100%;
}
.aim {
position: fixed;
/* to have the cross hair at the center of screen */
top: 50%;
left: 50%;
height: 30px;
width: 30px;
/* x, y to have the center of the crosshair image on tip of pointer*/
transform: translate(-50%, -50%);
/* for positioned elements only + more z index => higher up in stack */
z-index: 1;
pointer-events: none;
}
.target {
position: fixed;
top: -50%;
left: 50%;
height: 110px;
width: 110px;
overflow: auto;
z-index: 0;
/* alter the width & height calc. of the box model */
/* the padding & border width is accounted for in total width & height */
box-sizing: border-box;
}
.score {
text-transform: uppercase;
position: fixed;
top: 0%;
right: 0%;
text-align: center;
margin: 16px 15px;
font-size: 18px;
}
.timer {
text-transform: uppercase;
position: fixed;
top: 5%;
right: 0%;
text-align: center;
margin: 16px 15px;
font-size: 1rem;
}
.highscore {
text-transform: uppercase;
position: fixed;
bottom: 2%;
left: 35%;
right: 35%;
text-align: center;
font-size: 1.7rem;
}
.landingpage {
position: fixed;
background-image: url("images/LandingPage.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
width: 100vw;
z-index: 2;
cursor: default;
}
.ClickToBegin {
position: fixed;
cursor: pointer;
top: 18.8%;
left: 32.45%;
font-family: "Press Start 2P", cursive;
padding: 14.9% 15.535% 0.4% 15.535%;
}