-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
105 lines (89 loc) · 1.72 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
html {
height: 100%;
}
body {
margin: 0;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
position: relative;
height: 100%;
}
#game-board {
border: 0;
background-color: #232323;
width: 100%;
height: 100%;
position: absolute;
overflow: hidden;
}
#game-board > div {
position: absolute;
}
.cargo {
--size: 70px;
width: var(--size);
height: var(--size);
border: 1px solid black;
background-color: cornflowerblue;
}
.cargo.hit {
border: 3px solid crimson;
}
.zerg {
--size: 40px;
width: var(--size);
height: var(--size);
border-radius: var(--size);
border: 4px solid crimson;
cursor: crosshair;
z-index: 1;
}
.zerg.hit {
border: 5px solid red;
background-color: crimson;
}
/* ----------- SCOREBOARD ------------ */
.scoreboard {
position: absolute;
display: flex;
flex-direction: column;
background-color: darkslategray;
z-index: 2;
left: 45%;
text-align: center;
font-size: 1.5em;
}
.scoreboard > div {
display: inline-flex;
margin: 5px;
}
.scoreboard > div:first-child {
border: 1px solid black;
}
.scoreboard .team {
margin: 10px;
}
.scoreboard .action {
display: flex;
flex-grow: 1;
justify-content: space-evenly;
margin: 0 2px;
}
#winner-message {
position: absolute;
display: flex;
justify-content: center;
width: 100%;
height: 100%;
align-items: center;
}
.winner-message {
z-index: 3;
font-size: 1em;
color: red;
transition: all 1s ease-in-out;
text-shadow: 3px 3px 7px red;
}
.winner-message.animation {
font-size: 5em;
color: gold;
}