-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
168 lines (143 loc) · 6.8 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
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
168
:root {
--base-grid-size: 20rem;
--grid-blocks-per-line: 10;
--base-mini-grid-size: 4rem;
}
@media(max-width: 1400px) {
:root {
--base-grid-size: 15rem;
}
}
* {
margin: 0;
padding: 0;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
body {
background-color: #c5c3c4;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 60'%3E%3Cg %3E%3Crect fill='%23c5c3c4' width='11' height='11'/%3E%3Crect fill='%23c6c4c5' x='10' width='11' height='11'/%3E%3Crect fill='%23c7c5c6' y='10' width='11' height='11'/%3E%3Crect fill='%23c8c6c7' x='20' width='11' height='11'/%3E%3Crect fill='%23c8c7c7' x='10' y='10' width='11' height='11'/%3E%3Crect fill='%23c9c7c8' y='20' width='11' height='11'/%3E%3Crect fill='%23cac8c9' x='30' width='11' height='11'/%3E%3Crect fill='%23cbc9ca' x='20' y='10' width='11' height='11'/%3E%3Crect fill='%23cccacb' x='10' y='20' width='11' height='11'/%3E%3Crect fill='%23cdcbcc' y='30' width='11' height='11'/%3E%3Crect fill='%23cdcccd' x='40' width='11' height='11'/%3E%3Crect fill='%23cecdce' x='30' y='10' width='11' height='11'/%3E%3Crect fill='%23cfcece' x='20' y='20' width='11' height='11'/%3E%3Crect fill='%23d0cecf' x='10' y='30' width='11' height='11'/%3E%3Crect fill='%23d1cfd0' y='40' width='11' height='11'/%3E%3Crect fill='%23d2d0d1' x='50' width='11' height='11'/%3E%3Crect fill='%23d3d1d2' x='40' y='10' width='11' height='11'/%3E%3Crect fill='%23d3d2d3' x='30' y='20' width='11' height='11'/%3E%3Crect fill='%23d4d3d4' x='20' y='30' width='11' height='11'/%3E%3Crect fill='%23d5d4d4' x='10' y='40' width='11' height='11'/%3E%3Crect fill='%23d6d5d5' y='50' width='11' height='11'/%3E%3Crect fill='%23d7d6d6' x='60' width='11' height='11'/%3E%3Crect fill='%23d8d6d7' x='50' y='10' width='11' height='11'/%3E%3Crect fill='%23d9d7d8' x='40' y='20' width='11' height='11'/%3E%3Crect fill='%23d9d8d9' x='30' y='30' width='11' height='11'/%3E%3Crect fill='%23dad9da' x='20' y='40' width='11' height='11'/%3E%3Crect fill='%23dbdadb' x='10' y='50' width='11' height='11'/%3E%3Crect fill='%23dcdbdc' x='70' width='11' height='11'/%3E%3Crect fill='%23dddcdc' x='60' y='10' width='11' height='11'/%3E%3Crect fill='%23dedddd' x='50' y='20' width='11' height='11'/%3E%3Crect fill='%23dfdede' x='40' y='30' width='11' height='11'/%3E%3Crect fill='%23e0dfdf' x='30' y='40' width='11' height='11'/%3E%3Crect fill='%23e0dfe0' x='20' y='50' width='11' height='11'/%3E%3Crect fill='%23e1e0e1' x='80' width='11' height='11'/%3E%3Crect fill='%23e2e1e2' x='70' y='10' width='11' height='11'/%3E%3Crect fill='%23e3e2e3' x='60' y='20' width='11' height='11'/%3E%3Crect fill='%23e4e3e3' x='50' y='30' width='11' height='11'/%3E%3Crect fill='%23e5e4e4' x='40' y='40' width='11' height='11'/%3E%3Crect fill='%23e6e5e5' x='30' y='50' width='11' height='11'/%3E%3Crect fill='%23e6e6e6' x='90' width='11' height='11'/%3E%3Crect fill='%23e7e7e7' x='80' y='10' width='11' height='11'/%3E%3Crect fill='%23e8e8e8' x='70' y='20' width='11' height='11'/%3E%3Crect fill='%23e9e8e9' x='60' y='30' width='11' height='11'/%3E%3Crect fill='%23eae9ea' x='50' y='40' width='11' height='11'/%3E%3Crect fill='%23ebeaeb' x='40' y='50' width='11' height='11'/%3E%3Crect fill='%23ecebeb' x='90' y='10' width='11' height='11'/%3E%3Crect fill='%23edecec' x='80' y='20' width='11' height='11'/%3E%3Crect fill='%23ededed' x='70' y='30' width='11' height='11'/%3E%3Crect fill='%23eeeeee' x='60' y='40' width='11' height='11'/%3E%3Crect fill='%23efefef' x='50' y='50' width='11' height='11'/%3E%3Crect fill='%23f0f0f0' x='90' y='20' width='11' height='11'/%3E%3Crect fill='%23f1f1f1' x='80' y='30' width='11' height='11'/%3E%3Crect fill='%23f2f2f2' x='70' y='40' width='11' height='11'/%3E%3Crect fill='%23f3f3f3' x='60' y='50' width='11' height='11'/%3E%3Crect fill='%23f4f3f4' x='90' y='30' width='11' height='11'/%3E%3Crect fill='%23f4f4f4' x='80' y='40' width='11' height='11'/%3E%3Crect fill='%23f5f5f5' x='70' y='50' width='11' height='11'/%3E%3Crect fill='%23f6f6f6' x='90' y='40' width='11' height='11'/%3E%3Crect fill='%23f7f7f7' x='80' y='50' width='11' height='11'/%3E%3Crect fill='%23f8f8f8' x='90' y='50' width='11' height='11'/%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;
}
.game-grid {
width: var(--base-grid-size);
height: calc(2 * var(--base-grid-size));
display: grid;
grid-template-columns: repeat(var(--grid-blocks-per-line), 1fr);
grid-template-rows: repeat(calc(2 * var(--grid-blocks-per-line)), 1fr);
background-color: lightgrey;
}
.game-grid > div {
border: 1px solid rgba(185, 181, 181, 0.582);
}
.mini-grid {
height: var(--base-mini-grid-size);
width: var(--base-mini-grid-size);
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
background-color: lightgrey;
}
.mini-grid > div {
border: 1px solid rgba(185, 181, 181, 0.582);
}
.grids-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.game-grid {
margin-right: 1rem;
border: 0.85rem solid grey;
border-radius: 10px;
}
.side-panel {
margin-left: 1rem;
}
.side-panel p:nth-child(4) {
margin: 3rem 0 1rem 0;
font-size: 2.5rem;
}
h1 {
font-size: 4rem;
margin-bottom: 3rem;
text-transform: uppercase;
}
#score {
color: orange;
font-weight: bold;
}
#start-button {
padding: 0.5rem 3rem;
font-size: 1.2rem;
font-weight: 800;
color: white;
border: 5px solid darkgreen;
border-radius: 10px;
background-color: green;
cursor: pointer;
outline: none;
transition: all 250ms;
}
#start-button:hover {
background-color: rgb(7, 187, 7);
}
.stop {
background-color: rgb(187, 10, 10) !important;
border-color: darkred !important;
outline: none;
}
.stop:hover {
background-color: red !important;
}
.results-panel {
position: absolute;
left: 0;
top: 0;
z-index: 10;
width: 100vw;
height: 100vh;
background-color: grey;
text-align: center;
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
transition: all 0.7s;
}
.score-heading {
font-size: 4rem;
margin-bottom: 3rem;
}
.results-panel p{
font-size: 4rem;
margin-bottom: 4rem;
}
#results-score {
font-size: 10rem;
color: gold;
font-weight: 900;
}
#restart-button {
width: 20vw;
cursor: pointer;
background-color: rgba(0, 0, 0, 0);
padding: 0.5rem 0;
color: #fff;
border: 8px solid #fff;
border-radius: 20px;
font-size: 3rem;
text-transform: uppercase;
transition: all 0.25s;
outline: none;
}
#restart-button:hover {
color: gold;
border-color: gold;
}
.show-panel {
display: flex;
transition: all 0.7s;
}