-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
104 lines (83 loc) · 1.59 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
104
* {
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
font-family: 'Press Start 2P', cursive;
background-color: rgb(65, 18, 18);
margin: 30px;
}
.container {
position: relative;
display: inline-block;
height: 576px;
}
canvas {
box-shadow: -1px 3px 9px 0px rgba(0,0,0,0.75);
border-radius: 10px;
}
.smallerContainer {
position: absolute;
display: flex;
width: 100%;
align-items: center;
padding: 20px;
}
.barContainer {
position: relative;
height: 30px;
width: 100%;
display: flex;
justify-content: flex-end;
border: 2px solid #fafafa;
box-sizing: border-box;
}
.barBack {
background: transparent;
height: 30px;
width: 100%;
}
.health-bar{
background: #ac7af7;
position: absolute;
top: 0;
right: 0;
bottom: 0;
}
#player-health {
width: 100%;
}
#enemy-health {
left: 0;
}
#timer {
border: 2px solid #fafafa;
width: 100px;
height: 50px;
color: white;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.finish {
position:absolute;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
visibility: hidden;
background-color: rgba(0, 0, 0 , 0.50);
}
#again{
margin-top: 20px ;
font-size: 0.7rem;
cursor: pointer;
}
#again:hover {
color: red;
}