-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (118 loc) · 2.38 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
*{
box-sizing: border-box;
}
html{
overflow: -moz-scrollbars-none;
-ms-overflow-style: none;
}
html::-webkit-scrollbar {
width: 0 !important
}
body{
background-color:#444;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#container-div{
position:relative;
display: inline-block;
}
#small-container-div{
position: absolute;
display: flex;
align-items: center;
width: 100%;
padding: 2rem;
}
#player-health-bar{
position: relative;
height: 30px;
width: 100%;
display: flex;
justify-content: flex-end;
}
#player-health-total{
border-top-left-radius: 35px;
border-bottom-left-radius: 35px;
background-color: yellow;
height: 30px;
width: 100%;
}
#player-health{
border-top-left-radius: 35px;
border-bottom-left-radius: 35px;
position: absolute;
background-color: rgb(2, 15, 255);
top: 0;
right: 0;
bottom: 0;
width: 100%;
}
#timer{
background-color: rgb(111, 0, 255);
width: 140px;
font-family: 'Audiowide', cursive;
height: 100px;
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
font-weight: 900;
font-size: 3rem;
color: #fff;
border-radius: 35px;
}
#enemy-health-bar{
position: relative;
height: 30px;
width: 100%;
}
#enemy-health-total{
border-top-right-radius: 35px;
border-bottom-right-radius: 35px;
background-color: yellow;
height: 30px;
}
#enemy-health{
border-top-right-radius: 35px;
border-bottom-right-radius: 35px;
position: absolute;
background-color: rgb(2, 15, 255);
top: 0;
right: 0;
left: 0;
bottom: 0;
}
#game-message{
position: absolute;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
top: 0;
right: 0;
left: 0;
bottom: 0;
-webkit-text-stroke: 2px #000;
font-family: 'Audiowide', cursive;
font-weight: 900;
font-size: 3rem;
}
button{
background-color: rgb(111, 0, 255);
padding: 2rem;
font-family: 'Audiowide', cursive;
font-weight: 900;
font-size: 3rem;
color: #fff;
border-radius: 35px;
cursor: pointer;
}
button:hover{
background-color: rgb(25, 0, 105);
cursor: pointer;
}