-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
63 lines (57 loc) · 1.11 KB
/
styles.css
File metadata and controls
63 lines (57 loc) · 1.11 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
:root{
--cell-hover: rgba(184, 177, 177, 0.248);
--cell-active: rgba(163, 157, 157, 0.514);
--player1: #e0f7fa;
--player2: #fff9c4;
}
body {
background-color: var(--player1);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: Arial, sans-serif;
margin: 0;
}
#game-container {
text-align: center;
}
.gameboard {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-template-rows: repeat(3, 100px);
gap: 5px;
margin-bottom: 20px;
}
.cell {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
/* background-color: #ffffff; */
border: 1px solid #000000;
font-size: 2rem;
cursor: pointer;
}
.cell:hover{
background-color: var(--cell-hover)
}
.cell:active{
background-color: var(--cell-active)
}
#restart-button {
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
}
#message {
margin-top: 20px;
font-size: 1.2rem;
}
.player1 {
background-color: var(--player1); /* Light blue for Player 1 */
}
.player2 {
background-color: var(--player2); /* Light yellow for Player 2 */
}