-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (97 loc) · 1.88 KB
/
style.css
File metadata and controls
113 lines (97 loc) · 1.88 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
body {
margin: 0;
padding: 0;
background-color: #222;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#board {
display: grid;
grid-template-columns: repeat(8, 1fr);
aspect-ratio: 1;
width: 90vmin;
max-width: 100vmin;
border: 8px solid #333;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.square {
position: relative;
width: 100%;
height: 100%;
}
.light {
background-color: #f0d9b5;
}
.dark {
background-color: #b58863;
}
.piece {
width: 80%;
height: 80%;
border-radius: 50%;
position: absolute;
top: 10%;
left: 10%;
box-shadow: 0 0 8px rgba(0,0,0,0.5);
z-index: 2;
}
.piece.red {
background: radial-gradient(circle, #ff4d4d, #990000);
}
.piece.yellow {
background: radial-gradient(circle, #ffe066, #aa8800);
}
.piece.king::after {
content: "👑";
position: absolute;
font-size: 1.5rem;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.selected::after {
content: "";
position: absolute;
top: 5%;
left: 5%;
width: 90%;
height: 90%;
border: 4px solid #ffffffcc;
border-radius: 10%;
box-shadow: 0 0 15px 5px rgba(255,255,255,0.4);
z-index: 1;
}
.highlight::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
background-color: rgb(13, 149, 234);
animation: pulse 1s infinite;
z-index: 1;
}
.capture::before {
background-color: rgba(255, 0, 0, 0.4);
}
@keyframes pulse {
0% { opacity: 0.3; }
50% { opacity: 0.6; }
100% { opacity: 0.3; }
}
.game-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
#turn-indicator {
font-size: 2rem;
font-weight: bold;
color: #ff4d4d;
text-shadow: 1px 1px 2px #000;
user-select: none;
transition: color 0.3s;
}