-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
248 lines (210 loc) · 3.76 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
@font-face {
font-family: recharge;
src: url("./assets/fonts/recharge/recharge\ bd.otf");
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
max-height: 100vh;
width: 100%;
background-color: #8bbef0;
}
.heading {
text-align: center;
margin: 10px 0;
font-family: recharge;
font-size: 3rem;
}
.container {
width: 80%;
height: calc(100vh - 120px);
margin: 20px auto 0;
padding: 35px;
background-color: #0984e3;
border-radius: 20px;
box-shadow: 10px 10px 3px #2f3640;
}
.board-header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.board-header form {
flex-basis: 70%;
}
.board-header p {
flex-basis: 25%;
text-align: end;
font-family: recharge;
font-weight: bold;
color: white;
}
input[type="text"] {
width: 65%;
padding: 10px 15px;
border-radius: 20px;
border: none;
box-shadow: 3px 3px 3px #273c75;
font-family: recharge;
}
input[type="text"]::placeholder {
font-family: recharge;
}
input[type="text"]:focus {
outline: 2px solid #353b48;
}
input[type="submit"] {
padding: 10px 15px;
border-radius: 20px;
border: none;
background-color: #fbc531;
cursor: pointer;
box-shadow: 3px 3px 5px #fbc531;
font-weight: bold;
transition: 1s;
margin: 0 20px;
font-family: recharge;
}
input[type="reset"] {
padding: 10px 15px;
border-radius: 20px;
border: none;
background-color: #2f3640;
cursor: pointer;
box-shadow: 3px 3px 3px #2f3640;
font-weight: bold;
color: white;
transition: 1s;
font-family: recharge;
}
input[type="submit"]:hover,
input[type="reset"]:hover {
box-shadow: none;
}
.board-main {
width: 100%;
height: 350px;
display: flex;
flex-direction: column;
justify-content: center;
}
.board-play {
width: 50%;
padding: 30px;
margin: 70px auto 30px;
background-color: #273c75;
border-radius: 20px;
}
.board-play .player-point {
display: flex;
justify-content: space-between;
align-items: center;
font-family: recharge;
color: white;
}
.board-btn {
display: flex;
justify-content: center;
align-items: center;
gap: 30px;
margin-top: 55px;
}
.board-btn button {
padding: 15px 30px;
border-radius: 10px;
border: none;
cursor: pointer;
transition: 1s;
font-family: recharge;
background-color: #fbc531;
box-shadow: 3px 3px 3px gray;
}
.board-btn .player-2 {
background-color: #2d3436;
color: white;
box-shadow: 3px 3px 3px #2d3436;
}
.board-btn .player-2:disabled {
color: gray;
}
.board-btn button:hover {
box-shadow: none;
}
button:disabled {
cursor: not-allowed;
}
.winning-msg,
.player-turn {
text-align: center;
font-family: recharge;
color: white;
font-size: 1.4rem;
margin-top: 35px;
}
.winning-msg {
display: none;
}
/* Small devices such as large phones (640px and up) */
@media only screen and (max-width: 640px) {
.heading {
font-size: 1.6rem;
}
.container {
width: 90%;
padding: 35px 15px;
}
.board-header {
flex-direction: column;
gap: 25px;
}
.board-header form,
.board-header p {
flex-basis: 100%;
}
.board-header p {
margin-top: 30px;
font-size: 1.3rem;
}
input[type="text"] {
width: 100%;
margin-bottom: 30px;
}
input[type="submit"] {
margin-right: 30%;
}
.board-play {
width: 100%;
}
.board-play .player-point {
font-size: 0.9rem;
}
.board-main {
height: 250px;
}
.player-turn {
font-size: 1.3rem;
}
}
/* Medium devices such as tablets (768px and up) */
@media only screen and (max-width: 968px) {
.container {
padding: 20px;
width: 95%;
}
.board-header {
flex-direction: column;
align-items: start;
gap: 80px;
}
.board-header form {
width: 100%;
}
.board-header p {
width: 100%;
text-align: center;
}
}