-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
66 lines (57 loc) · 1.21 KB
/
style.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
.game-board {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin: 0 auto;
width: 320px;
height: 320px;
border: 4px solid #666;
border-radius: 10px;
box-sizing: border-box;
}
.square {
font-size: 90px;
font-weight: bold;
text-align: center;
width: calc((320px - 2 * 4px - 2 * 10px) / 3);
height: calc((320px - 2 * 4px - 2 * 10px) / 3);
border-radius: 10px;
border: 4px solid #666;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
box-sizing: border-box;
}
.square:hover {
background-color: #ddd;
}
.square.marked-x {
color: #ff6666;
}
.square.marked-o {
color: #6666ff;
}
#game-message {
margin-top: 20px;
text-align: center;
font-size: 20px;
font-weight: bold;
}
.game-buttons {
margin-top: 20px;
text-align: center;
}
.game-buttons button {
margin-right: 10px;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #eee;
border: 2px solid #999;
}
.game-buttons button:hover {
background-color: #ddd;
}
.game-buttons button:active {
background-color: #ccc;
}