-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
330 lines (289 loc) · 6.55 KB
/
style.css
File metadata and controls
330 lines (289 loc) · 6.55 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
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
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f0f0f0;
margin: 0;
padding: 0;
transition: background-color 0.5s; /* Add a background color transition */
}
.header{
font-size: 3em;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh; /* Use min-height to ensure full viewport height */
}
h1 {
font-size: 2rem;
margin: 15px auto;
max-width: 90%;
}
.row {
display: flex;
justify-content: center;
}
/.row {
display: flex;
justify-content: center;
}
/* Style for the game limit modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
z-index: 1;
}
/* Style for the modal content */
.modal-content {
background-color: #fff;
border-radius: 25px;
text-align: center;
width: 75%;
max-width: 600px;
margin: 15% auto;
padding: 20px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
/* Style for the modal title */
.modal-content h2 {
font-size: 24px;
margin-bottom: 15px;
}
/* Style for the modal buttons */
.modal-content button {
background-color: #3498db;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
margin: 5px;
cursor: pointer;
font-size: 16px;
}
/* Style for the buttons on hover */
.modal-content button:hover {
background-color: #2980b9;
}
/* Style for the buttons on active */
.modal-content button:active {
background-color: #149cb8;
}
/* Scoreboard content */
.scoreboard {
text-align: center;
margin-left: 20px;
margin-right: 20px;
}
/* Style for the scoreboard headings */
.scoreboard h2 {
font-size: 1.75rem; /* Adjust font size for h2 */
margin: 0;
color: #333; /* Choose a color that complements your design */
}
/* Style for the scoreboard scores */
.scoreboard p {
font-size: 2rem; /* Adjust font size for p */
margin: 0;
color: #333; /* Choose a color that complements your design */
}
/* Set a fixed height for player and computer choices */
.player-hands, .player-hands p {
height: 100%;
margin-left: 4.5vh;
margin-right: 4.5vh;
}
/* Center align text within player-choice and computer-choice */
.display-choice {
text-align: center;
}
/* Style for the score numbers */
.score-number {
font-size: 1rem;
display: inline-block;
width: 100%;
}
.game-option {
width: 150px;
height: 150px;
margin: 10px;
cursor: pointer;
background-size: cover;
border: 3px solid #333;
transition: transform 0.2s;
}
/* Add margins and padding for the display elements */
.display-choice {
margin: 10px;
padding: 5px;
}
/* Add styles for the display-result class */
.display-result {
font-size: 1rem;
font-weight: bold;
margin: 10px auto;
padding: 8px;
text-align: center;
}
/* Game buttons */
.game-button {
display: inline-flex; /* Use flexbox to make the buttons appear in a row */
justify-content: center; /* Center the buttons horizontally */
}
#game-option button {
display: inline-block;
margin-right: 20px;
}
.game-option:hover {
transform: scale(1.1); /* Add a hover effect to scale the buttons */
}
/* Game Choice Buttons */
.rock, .paper, .scissor {
background-repeat: no-repeat;
background-position: center center;
background-size: 100%; /* Use 100% for consistent background size */
}
/* Define a common style for the game buttons */
.game-option {
width: 150px; /* Adjust the width for your choice */
height: 150px; /* Adjust the height for your choice */
margin: 10px;
cursor: pointer;
border: 3px solid #333;
transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
border-radius: 50%; /* Make them circular */
}
/* Specify individual background images for each game choice */
.rock {
background-image: url('img/Rock.png');
}
.paper {
background-image: url('img/Paper.png');
background-size: 50%;
}
.scissor {
background-image: url('img/Scissor.png');
}
/* Add hover and active effects for the game buttons */
.game-option:hover {
transform: scale(1.1);
filter: brightness(1.2); /* Adjust brightness to make them pop on hover */
background-color: #8d1616; /* Change background color on hover */
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Add a shadow effect on hover */
}
/* Reset background color and shadow on button click */
.game-option:active {
background-color: #11ff00;
box-shadow: none;
}
/* Responsive design for the game interface */
@media screen and (max-width: 768px) {
.header{
font-size: 2.8em;
}
.container {
padding: 10px; /* Adjust padding for small screens */
}
.modal-content {
width: 80%; /* Adjust modal width for small screens */
}
.game-option {
width: 100px; /* Adjust game option size for small screens */
height: 100px;
}
}
/* Common styles for game options */
.game-option {
cursor: pointer;
border: 3px solid #333;
background-size: contain;
transition: transform 0.2s;
}
/* Responsive design for the game interface */
@media screen and (max-width: 768px), screen and (orientation: landscape) {
.header{
font-size: 3em;
}
.container {
padding: 10px;
flex-direction: column;
}
.modal-content {
width: 80%;
}
.game-option {
width: 100px;
height: 100px;
}
h1 {
font-size: 1.5rem;
}
p {
font-size: 1rem;
}
.scoreboard h2 {
font-size: 1.5rem;
}
.scoreboard p {
font-size: 1.25rem;
}
}
/* Responsive design for the game interface */
@media screen and (max-width: 1920px) {
.header{
font-size: 4.5em;
}
.container {
padding: 20px;
}
.modal-content {
width: 80%;
}
.game-option {
width: 150px;
height: 150px;
}
h1 {
font-size: 24px;
}
p {
font-size: 18px;
}
.scoreboard h2 {
font-size: 24px;
}
.scoreboard p {
font-size: 22px;
}
}
/* Responsive design for the game interface - Larger screens */
@media screen and (min-width: 1921px) {
.header{
font-size: 5em;
}
.container {
padding: 30px;
}
.game-option {
width: 200px;
height: 200px;
}
h1 {
font-size: 36px;
}
p {
font-size: 24px;
}
.scoreboard h2 {
font-size: 36px;
}
.scoreboard p {
font-size: 28px;
}
}