-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
243 lines (212 loc) · 4.49 KB
/
styles.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
body {
text-align: center;
font-family: neuzeit-grotesk, sans-serif;
margin: 0; /* Remove default margins */
padding: 0; /* Remove default padding */
}
h1 {
font-size: 24px;
}
a {
text-decoration: none;
}
/* Game Container */
#gameContainer {
display: flex;
flex-direction: column; /* Stack elements vertically on small screens */
align-items: center;
width: 100%;
max-width: 100%;
}
/* Chessboard Canvas */
#chessboard {
border: 4px solid #333;
border-bottom-color: #4286F4;
border-right-color: #e50511;
border-left-color: #8CB600;
border-top-color: #FF9900;
box-sizing: border-box;
touch-action: none; /* Disable default touch actions */
}
/* Status Message */
#status {
margin-top: 10px;
margin-bottom: 10px;
font-size: 18px;
}
#comment {
margin: 0 auto;
font-family: neuzeit-grotesk, sans-serif;
max-width: 800px;
}
#startButton {
font-weight: bold;
padding: 10px 20px;
font-size: 18px;
margin: 20px auto;
display: block;
cursor: pointer;
background-color: #8cb601;
border-color: #8cb601;
color: white;
text-transform: uppercase;
transition: background-color 0.3s;
}
/* Move History */
#moveHistory {
margin: 0 auto;
margin-top: 20px;
text-align: left;
max-height: 200px;
overflow-y: auto;
width: 90%;
max-width: 300px;
border: 1px solid #333;
padding: 10px;
box-sizing: border-box;
}
#moveHistory h2 {
text-align: center;
}
#moveHistory ol {
list-style-type: none;
padding-left: 20px;
margin: 0;
}
#clocks {
display: flex;
justify-content: center;
margin: 10px 0;
}
.clock {
width: 100px;
padding: 10px;
margin: 0 10px;
text-align: center;
font-size: 24px;
background-color: #eee;
border: 2px solid #333;
border-radius: 5px;
cursor: pointer;
}
.clock.active {
background-color: #cfc;
}
/* Media query for larger screens */
@media (min-width: 768px) {
#gameContainer {
flex-direction: row; /* Place elements side by side on larger screens */
justify-content: center;
}
#chessboard {
touch-action: none;
}
#moveHistory {
max-height: 640px;
}
}
/* Modal Styles */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgba(0,0,0,0.5); /* Black with opacity */
}
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 300px; /* Adjust as needed */
text-align: center;
border-radius: 8px;
}
.promo-button {
margin: 10px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 4px;
background-color: #4286F4;
color: #ffffff;
transition: background-color 0.3s;
}
.promo-button:hover {
background-color: #3060C0;
}
/* Cookie Consent Popup Styles */
.cookie-consent {
position: fixed;
bottom: 20px;
left: 20px;
right: 20px;
background-color: rgba(0, 0, 0, 0.85);
color: #ffffff;
padding: 20px;
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
z-index: 1000;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
max-width: 500px;
margin: 0 auto;
}
.cookie-consent__message p {
margin: 0 0 15px 0;
text-align: center;
font-size: 16px;
line-height: 1.5;
}
.cookie-consent__message a {
color: #8CB600;
text-decoration: underline;
}
.cookie-consent__actions {
display: flex;
gap: 10px;
}
.cookie-consent__button {
padding: 10px 20px;
font-size: 14px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}
#acceptCookies {
background-color: #8CB600;
color: #ffffff;
}
#acceptCookies:hover {
background-color: #45a049;
}
#declineCookies {
background-color: #e50511;
color: #ffffff;
}
#declineCookies:hover {
background-color: #da190b;
}
/* Responsive Design */
@media (max-width: 600px) {
.cookie-consent {
bottom: 10px;
left: 10px;
right: 10px;
padding: 15px;
}
.cookie-consent__message p {
font-size: 14px;
}
.cookie-consent__button {
padding: 8px 16px;
font-size: 12px;
}
}