/
style.css
82 lines (72 loc) · 2.85 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
body {
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
}
.gameover {
color: white;
padding: 70px 0;
border: 3px solid #00d9ff;
text-align: center;
margin: 50px;
background-color: #24549e;
box-shadow: 10px 10px 20px grey;
letter-spacing: 3px;
}
.gameover button {
background-color: #00d9ff;
border: 2px solid;
font-weight: bolder;
height: 50px;
width: 200px;
}
.player {
position: absolute;
display: flex;
align-items: center;
height: 30px;
width: 30px;
}
.human {
position: absolute;
top: 17px;
left: 20px;
width: 20px;
height: 22px;
background-image: url('daftman-sprite.jpg');
background-position: -127px -9px;
z-index: -1;
opacity: 1;
}
.bubble {
position: absolute;
top: 0px;
left: 0px;
background-color: lightblue;
border: 1px solid blue;
border-radius: 50%;
opacity: 0.3;
transform-origin: center;
}
.metalBubble {
position: absolute;
top: 0px;
left: 0px;
border-radius: 50%;
opacity: 1;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAGCAYAAADkOT91AAAAH0lEQVQYV2M8dOjQfwYGBoaGhgYQxcDo5OSEKkAFFQA/HxglifxyLwAAAABJRU5ErkJggg==) repeat;
background-size: 10px 10px, 10px 10px, 100% 100%;
background-position: 1px 1px, 0px 0px, center center;
top: 0;
}
.metal {
background: -webkit-radial-gradient(center, circle, rgba(255,255,255,.35), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 21%), -webkit-radial-gradient(center, circle, rgba(0,0,0,.2), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 21%), -webkit-radial-gradient(center, circle farthest-corner, #f0f0f0, #c0c0c0);
background: -moz-radial-gradient(center, circle, rgba(255,255,255,.35), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 21%), -webkit-radial-gradient(center, circle, rgba(0,0,0,.2), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 21%), -webkit-radial-gradient(center, circle farthest-corner, #f0f0f0, #c0c0c0);
background: -ms-radial-gradient(center, circle, rgba(255,255,255,.35), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 21%), -webkit-radial-gradient(center, circle, rgba(0,0,0,.2), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 21%), -webkit-radial-gradient(center, circle farthest-corner, #f0f0f0, #c0c0c0);
background: -o-radial-gradient(center, circle, rgba(255,255,255,.35), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 21%), -webkit-radial-gradient(center, circle, rgba(0,0,0,.2), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 21%), -webkit-radial-gradient(center, circle farthest-corner, #f0f0f0, #c0c0c0);
background: radial-gradient(center, circle, rgba(255,255,255,.35), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 21%), -webkit-radial-gradient(center, circle, rgba(0,0,0,.2), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 21%), -webkit-radial-gradient(center, circle farthest-corner, #f0f0f0, #c0c0c0);
background-size: 10px 10px, 10px 10px, 100% 100%;
background-position: 1px 1px, 0px 0px, center center;
top: 0;
}