-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
227 lines (207 loc) · 4.13 KB
/
style.css
File metadata and controls
227 lines (207 loc) · 4.13 KB
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
body {
display: flex;
flex-direction: column;
background: #454545 url(boards.jpg);
background-size: 2000px;
font-family: 'Montserrat', serif;
}
/* title design */
.title {
margin: auto;
color: white;
margin-top: 0px;
background: rgba(58, 58, 58, 0.5);
border: 4px solid rgba(255, 255, 255, 0.3);
padding: 20px;
border-radius: 20px;
text-decoration: underline;
font-family: 'Varela Round', sans-serif;
}
.scores {
font-size: 1em;
color: white;
width: 180px;
display: flex;
justify-content: space-between;
}
/* button for instructions. goes away when pressed */
.instructions-button {
margin: auto;
color: #fceeb8;
display: block;
margin-top: 0px;
margin-bottom: 50px;
background: black;
height: 30px;
border-radius: 8px;
}
/* initialize button */
.start-button {
width: 100px;
height: 40px;
margin: auto;
margin-top: 30px;
font-size: 1.5em;
background: black;
color: #fceeb8;
border-radius: 10px;
}
/* instructions that remain hidden unless called
game will not play while shown */
.instructions {
display: none;
max-width: 600px;
margin: 75px auto 15px;
text-align: center;
color: white;
background: rgba(58, 58, 58, 0.5);
border: 4px solid rgba(255, 255, 255, 0.3);
padding: 20px;
border-radius: 20px;
}
.instructions-head {
font-family: 'Varela Round', sans-serif;
font-size: 1.8em;
margin: 25px auto 100px;
}
.instructions-text {
font-size: 1em;
color: #fceeb8;
}
.loser-message {
display: none;
background: rgba(58, 58, 58, 0.5);
border: 4px solid rgba(255, 255, 255, 0.3);
padding: 20px;
border-radius: 20px;
color: white;
text-align: center;
width: 400px;
margin: auto;
margin-top: 40px;
}
.loser-head {
font-size: 3em;
font-family: 'Varela Round', sans-serif;
}
.loser-text {
color: #fceeb8;
}
/* contains full game */
.game-board {
display: flex;
background: black;
height: 500px;
width: 500px;
margin: auto;
border-radius: 230px;
border: 4px solid #232323;
}
/* contains buttons for game and helps with placement */
.game-buttons {
display: flex;
justify-content: space-evenly;
align-content: space-evenly;
flex-wrap: wrap;
width: 100%;
}
.green-button {
width: 40%;
height: 40%;
background: green;
border: 4px solid #006300;
border-radius: 200px 0px 0px 0px;
display: flex;
flex-direction: row-reverse;
}
/* above and below sections are connected in that they
style the buttons */
.cover-green {
width: 45%;
height: 45%;
background: black;
border-top: 4px solid #006300;
border-left: 4px solid #006300;
align-self: flex-end;
box-shadow: 4px 4px 0px 0px #000000;
border-radius: 100px 0 0 0;
}
.red-button {
width: 40%;
height: 40%;
background: red;
border: 4px solid #a81d00;
border-radius: 0px 200px 0px 0px;
display: flex;
}
.cover-red {
width: 45%;
height: 45%;
background: black;
border-top: 4px solid #a81d00;
border-right: 4px solid #a81d00;
align-self: flex-end;
box-shadow: -4px 4px 0px 0px #000000;
border-radius: 0 100px 0 0;
}
.yellow-button {
width: 40%;
height: 40%;
background: #cece00;
border: 4px solid #a8a800;
border-radius: 0px 0px 0px 200px;
display: flex;
flex-direction: row-reverse;
}
.cover-yellow {
width: 45%;
height: 45%;
background: black;
border-bottom: 4px solid #b2b200;
border-left: 4px solid #b2b200;
box-shadow: 4px -4px 0px 0px #000000;
border-radius: 0 0 0 100px;
}
.blue-button {
width: 40%;
height: 40%;
background: blue;
border: 4px solid #1600a5;
border-radius: 0px 0px 200px 0px;
display: flex;
}
.cover-blue {
width: 45%;
height: 45%;
background: black;
border-bottom: 4px solid #1600a5;
border-right: 4px solid #1600a5;
box-shadow: -4px -4px 0px 0px #000000;
border-radius: 0 0 100px 0;
}
@media only screen and (max-width: 600px) {
.game-board {
height: 80vw;
width: 80%;
}
.title {
font-size: 1.2em;
}
.instructions-head {
font-size: 1em;
margin-bottom: 20px;
}
.instructions-text {
font-size: 0.7em;
}
.loser-message {
margin-top: 0px;
width: 80%;
}
.loser-head {
font-size: 1.5em;
}
.instructions-button {
font-size: 0.5em;
}
}