-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
167 lines (142 loc) · 2.63 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
color: #fff;
background-color: #090909;
line-height: 1.5;
display: grid;
place-items: center;
height: 100vh;
}
img {
top: 0;
left: 0;
position: absolute;
width: 100vw;
height: 100vh;
}
.game {
width: 100%;
height: 100%;
padding: 25px;
display: grid;
grid-template-rows: min-content 1fr min-content;
text-transform: uppercase;
transition: 1s ease;
}
.game header {
display: grid;
grid-template-columns: 1fr 50px 1fr;
align-items: center;
}
.player-health {
position: relative;
border: 2px solid #fff;
}
.player-health-bar {
height: 25px;
background-color: green;
}
.timer {
background-color: red;
text-align: center;
outline: 4px solid #fff;
z-index: 100;
}
.player-health span {
position: absolute;
bottom: 0;
translate: 0 30px;
}
.player-health-2 {
right: 0;
}
.main {
position: relative;
display: grid;
grid-template-columns: 1fr min-content 1fr;
place-items: center;
padding: 25px;
font-size: 50px;
font-weight: bolder;
}
.game-feedback {
position: absolute;
top: 0;
translate: 0 75px;
transform: skewX(-25deg);
background-color: rgba(255, 255, 255, 0.8);
color: #000;
padding: 10px 20px;
border: 2px solid #000;
font-size: 25px;
}
.message {
display: inline-block;
transform: skewX(25deg);
font-size: 20px;
}
.player {
font-size: 150px;
}
.game footer {
display: flex;
gap: 30px;
}
.game-btn {
display: inline-block;
padding: 10px 20px;
font-size: 20px;
text-transform: uppercase;
color: #fff;
background: rgb(0 0 0 / 50%);
transform: skewX(-25deg);
border: none;
border-radius: 0;
cursor: pointer;
border: 2px solid #fff;
transition: background 0.25s;
}
.game-btn:hover {
background: #000;
}
.game-btn span {
display: inline-block;
transform: skewX(25deg);
}
.reset-btn {
margin-left: auto;
}
.start-btn {
position: absolute;
top: 79%;
left: 46%;
width: 180px;
}
.map1 {
background: url(img/Map1.webp) bottom no-repeat;
background-size: cover;
}
.map2 {
background: url(img/Map2.webp) bottom no-repeat;
background-size: cover;
}
.map3 {
background: url(img/Map3.webp) bottom no-repeat;
background-size: cover;
}
.map4 {
background: url(img/Map4.webp) bottom no-repeat;
background-size: cover;
}
.map5 {
background: url(img/Map5.webp) bottom no-repeat;
background-size: cover;
}
.hidden {
display: none;
}