Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
144 lines (122 loc) · 2.67 KB
/
Copy pathstyles.css
File metadata and controls
144 lines (122 loc) · 2.67 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
body {
margin: 0;
padding: 0;
background-color: #2c3e50;
overflow-y: auto; /* Allows vertical scrolling */
display: flex;
flex-direction: column;
align-items: center;
}
.chess-board {
display: grid;
grid-template-columns: repeat(8, 60px);
grid-template-rows: repeat(8, 60px);
gap: 0;
border: 4px solid #34495e;
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.cell {
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
font-size: 40px;
cursor: pointer;
}
.white {
background-color: #f0e68c;
}
.black {
background-color: #95a5a6;
}
.game-info {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 7%;
gap: 10px;
color: #f39c12;
font-size: 1.2em;
font-weight: bold;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
@keyframes click-effect {
0% { transform: scale(1); }
50% { transform: scale(0.9); }
100% { transform: scale(1); }
}
.custom-popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
}
.popup-content {
text-align: center;
}
.popup-message {
font-size: 24px;
margin-bottom: 20px;
color: #333;
}
.close-popup {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
}
.container {
display: flex; /* Ensure the board and buttons are in a row */
justify-content: center; /* Center everything horizontally */
align-items: flex-start; /* Align items to the top */
gap: 20px; /* Space between the board and buttons */
}
.chess-board {
border: 2px solid #34495e;
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.controls {
display: flex;
flex-direction: column; /* Stack buttons vertically */
gap: 15px;
padding: 20px;
background-color: #ecf0f1;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
min-width: 150px;
}
.controls button {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
font-size: 1em;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease;
}
.controls button:hover {
background-color: #2980b9;
}