Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
92 lines (81 loc) · 1.56 KB
/
Copy pathstyle.css
File metadata and controls
92 lines (81 loc) · 1.56 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
body,
html {
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: black;
}
.game-window {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100;
}
.grid {
background-color: rgb(4, 1, 30);
width: 80vw;
height: 80vw;
max-width: 800px;
max-height: 800px;
border: solid 1px white;
display: flex;
flex-wrap: wrap;
position: relative;
background: url("assets/megakatCity.svg") no-repeat center center;
background-size: cover;
}
.grid div {
width: calc(100% / 15);
height: calc(100% / 15);
/* border: solid 1px red; */
box-sizing: border-box;
}
.invader {
background: url("assets/minions.svg") no-repeat center center;
background-size: contain;
}
.boss {
width: 150px; /* Adjust size as needed */
height: 150px; /* Adjust size as needed */
background-color: purple;
border-radius: 100%;
position: absolute;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
display: none; /* Initially hidden */
}
.warning {
color: white;
font-size: 2em;
text-align: center;
position: absolute;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
}
.shooter {
background: url("assets/turboKat.svg") no-repeat center center;
background-size: contain;
}
.laser {
background: url("assets/missile.svg") no-repeat center center;
background-size: contain;
}
.boom {
background-color: orange;
}
.results {
color: white;
}
.game-over {
color: white;
}
.you-win {
color: white;
}