-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
147 lines (129 loc) · 2.39 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
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #1a1a1a;
color: white;
}
.game-container {
display: flex;
min-height: 100vh;
}
.left-panel {
width: 200px;
background-color: #2a2a2a;
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
.audio-controls {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
#muteButton {
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
background: #444;
color: white;
font-size: 20px;
cursor: pointer;
}
#volumeSlider {
width: 80%;
}
.captured-pieces {
flex-grow: 1;
}
.captured-list {
margin: 10px 0;
padding: 5px;
background: #333;
border-radius: 5px;
min-height: 100px;
}
.board-container {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
#chessBoard {
border: 2px solid #444;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.portrait {
position: absolute;
background: white;
padding: 5px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
pointer-events: none;
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background: #2a2a2a;
padding: 20px;
border-radius: 10px;
text-align: center;
max-width: 80%;
max-height: 80%;
}
.modal-content img {
max-width: 100%;
max-height: 60vh;
object-fit: contain;
margin: 10px 0;
}
.modal-content button {
padding: 10px 20px;
font-size: 16px;
background: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}
.hidden {
display: none;
}
/* Piece hover effect */
.piece-hover {
position: absolute;
background: white;
padding: 10px;
border-radius: 5px;
pointer-events: none;
z-index: 100;
}
/* Valid move indicators */
.valid-move-dot {
position: absolute;
width: 20%;
height: 20%;
background: rgba(0, 255, 0, 0.3);
border: 2px solid rgba(0, 200, 0, 0.5);
border-radius: 50%;
pointer-events: none;
}
/* Selected piece highlight */
.selected-square {
box-shadow: inset 0 0 0 3px yellow;
}