-
Notifications
You must be signed in to change notification settings - Fork 0
/
aim.css
98 lines (88 loc) · 1.59 KB
/
aim.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
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
*{
margin:0;
padding: 0;
box-sizing: border-box;
}
body{
background-image:url("./img/bg.jpg");
background-repeat:no-repeat;
background-position:center;
background-size: cover;
height: 100vh;
width: 100vw;
cursor: none;
font-family: 'Press Start 2P', cursive;
color: chartreuse;
}
img{
width: 100%;
height: 100%;
user-select: none;
}
.cursor{
position: fixed;
top:50%;
left:50%;
transform: translate(-50%,-50%);
width: 30px;
height: 30px;
z-index: 1;
pointer-events: none;
}
.menupage{
position: fixed;
height: 100vh;
width: 100vw;
background-color: black;
z-index: 2;
cursor: default;
}
.menupage .playbutton{
position: fixed;
top:50%;
left:50%;
transform: translate(-50%,-50%);
font-size: 1.5rem;
border: 2px solid chartreuse;
padding: 0.8rem;
cursor: pointer;
transition: all 0.1s ease;
}
.menupage .playbutton:hover{
padding: 20px;
}
.target{
position: fixed;
top:20%;
left:50%;
transform: translate(-50%,-50%);
width: 100px;
height:100px;
z-index: 0;
}
.score{
position: fixed;
top:50%;
left:50%;
transform: translate(-50%,-50%);
font-size: 4rem;
opacity: 0.4;
pointer-events: none;
}
.timer{
position: fixed;
top:0%;
right:0%;
margin: 20px;
font-size: 2rem;
opacity: 0.7;
}
.highscore{
position: fixed;
bottom:3%;
right:0%;
margin: 30px;
font-size: 1rem;
opacity: 0.7;
}