-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
358 lines (358 loc) · 9.49 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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
/*body at center, black background*/
body {
font-family: 'Montserrat', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 97vh;
background-color: #000;
color: #fff;
}
/* game-content styling, buttons vertically aligned, center aligned, black theme minimalistic, space between elements */
#game-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
}
/* game-heading styling */
#game-heading {
font-size: 2.5rem;
margin-bottom: 10px;
}
/* game-para styling */
#game-para {
font-size: 1.5rem;
margin-bottom: 20px;
}
/* back btn styling, black theme minimalistic */
#back-btn {
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
position: absolute;
top: 20px;
left: 20px;
visibility: hidden;
transition: background-color 0.3s, color 0.3s;
}
/* back-btn hover effect */
#back-btn:hover {
background-color: #fff;
color: #000;
}
/* play-btn styling, black theme minimalistic, transparent background and opaque border, a bit of space between elements */
#play-btn {
/*for spacing*/
margin-bottom: 20px;
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
inline-size: -webkit-fill-available;
}
/* play-btn hover effect */
#play-btn:hover {
background-color: #fff;
color: #000;
}
/* undo purchase click btn, black theme minimalistic, transparent background and opaque border */
#undo-purchase-click {
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
inline-size: -webkit-fill-available;
}
/* undo-purchase-click hover effect */
#undo-purchase-click:hover {
background-color: #fff;
color: #000;
}
/*which one section, AI button and Multiplayer button styling, black theme minimalistic, transparent background and opaque border */
#which-one-para {
font-size: 1.5rem;
margin-bottom: 20px;
}
/* ai-btn styling */
#ai-btn {
margin-bottom: 20px;
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
inline-size: -webkit-fill-available;
}
/* ai-btn hover effect */
#ai-btn:hover {
background-color: #fff;
color: #000;
}
/* mul-btn styling */
#mul-btn {
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
inline-size: -webkit-fill-available;
}
/* mul-btn hover effect */
#mul-btn:hover {
background-color: #fff;
color: #000;
}
/* easy-btn, medium-btn, hard-btn styling, black theme minimalistic, transparent background and opaque border */
#easy-btn,
#medium-btn,
#hard-btn {
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
inline-size: -webkit-fill-available;
}
#medium-btn {
margin-top: 20px;
}
#hard-btn {
margin-top: 20px;
}
/* easy-btn hover effect */
#easy-btn:hover,
#medium-btn:hover,
#hard-btn:hover {
background-color: #fff;
color: #000;
}
/* styling undo purchase click form */
.form__group {
position: relative;
padding: 20px 0 0;
width: 100%;
max-width: 180px;
}
/* username field styling, black theme minimalistic */
.form__field {
font-family: inherit;
width: 100%;
border: none;
border-bottom: 2px solid #9b9b9b;
outline: 0;
font-size: 17px;
color: #9b9b9b;
padding: 7px 0;
background: transparent;
transition: border-color 0.2s;
}
/* username field placeholder styling */
.form__field::placeholder {
color: transparent;
}
/* username field placeholder shown styling */
.form__field:placeholder-shown~.form__label {
font-size: 17px;
cursor: text;
top: 20px;
}
/* username label styling */
.form__label {
position: absolute;
top: 0;
display: block;
transition: 0.2s;
font-size: 17px;
color: #9b9b9b;
pointer-events: none;
}
/* username field focus styling */
.form__field:focus {
padding-bottom: 6px;
font-weight: 700;
border-width: 3px;
border-image: linear-gradient(to right, #9b9b9ba0, #ffffff);
border-image-slice: 1;
}
/* username field focus label styling */
.form__field:focus~.form__label {
position: absolute;
top: 0;
display: block;
transition: 0.2s;
font-size: 17px;
color: #9b9b9b;
font-weight: 700;
}
/* reset input */
.form__field:required,
.form__field:invalid {
box-shadow: none;
}
/* check username button styling, black theme minimalistic, transparent background and opaque border */
.check-username-btn {
margin-top: 10px;
background-color: transparent;
color: #fff;
padding: 10px;
border: 2px solid #fff;
font-family: 'Montserrat', sans-serif;
border-radius: 5px;
cursor: pointer;
width: 100%;
transition: background-color 0.3s, color 0.3s;
}
/* check-username-btn hover effect */
.check-username-btn:hover {
background-color: #fff;
color: #000;
}
/* Player 1 Login, Player 2 Login, Submit button styling, black theme minimalistic, transparent background and opaque border */
#player1-username,
#player1-password,
#player2-username,
#player2-password {
width: 100%;
font-family: inherit;
padding: 10px;
margin: 10px 0;
border: 1px solid #fff;
border-radius: 5px;
box-sizing: border-box;
}
/* Submit button styling, black theme minimalistic, transparent background and opaque border */
#player1-login,
#player2-login {
background-color: transparent;
color: #fff;
padding: 10px;
border: 2px solid #fff;
font-family: 'Montserrat', sans-serif;
/* border-radius: 5px; */
cursor: pointer;
width: 100%;
transition: background-color 0.3s, color 0.3s;
}
/* Submit button hover effect */
#player1-login:hover,
#player2-login:hover {
background-color: #fff;
color: #000;
}
/* center-button styling */
.center-button {
display: flex;
justify-content: center;
margin-top: 20px;
}
/* center-button button styling, black theme minimalistic, transparent background and opaque border */
.center-button button {
padding: 10px 20px;
cursor: pointer;
font-family: inherit;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
transition: background-color 0.3s, color 0.3s;
}
/* center-button button hover effect */
.center-button button:hover {
background-color: #fff;
color: #000;
}
/* Tic Tac Toe grid styling, black theme minimalistic */
.grid-container {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-gap: 10px;
justify-content: center;
}
/* grid-item styling, black theme minimalistic, transparent background and opaque border, cursor pointer */
.grid-item {
background-color: transparent;
border: 2px solid #fff;
border-radius: 10px;
padding: 20px;
font-size: 30px;
text-align: center;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* grid-item hover effect */
.grid-item:hover {
transform: scale(1.1);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Undo button styling, black theme minimalistic, transparent background and opaque border, positioned at bottom left relative to grid container */
#undo-button {
position: absolute;
/* position is relative to grid container, now we can use top, left, right, bottom, to position the button at bottom left position relative to grid container */
bottom: 10px; /* Positioned 10px from the bottom */
left: 10px; /* Positioned 10px from the left */
padding: 5px 5px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
}
/* Undo button hover effect */
#undo-button:hover {
background-color: #fff;
color: #000;
}
/* continue button styling, black theme minimalistic, transparent background and opaque border */
#cont-mul,
#cont-ai {
padding: 10px 20px;
font-size: 1rem;
font-family: 'Montserrat', sans-serif;
background-color: transparent;
border: 2px solid #fff;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
}
/* continue button hover effect */
#cont-mul:hover,
#cont-ai:hover {
background-color: #fff;
color: #000;
}
/* x-wins, o-wins, ai-wins, x-loses, o-loses, ai-loses, x-coins, o-coins styling */
#x-wins,
#o-wins,
#ai-wins,
#x-loses,
#o-loses,
#ai-loses,
#x-coins,
#o-coins {
font-weight: bold;
color: #747474;
}