-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathticTacToe.css
More file actions
108 lines (89 loc) · 1.54 KB
/
ticTacToe.css
File metadata and controls
108 lines (89 loc) · 1.54 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
body {
background: radial-gradient(circle, #1f2a44, #0b0f1a);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}
a {
color: #00d4ff;
}
a:hover {
color: #66e6ff;
}
#gameContainer {
display: flex;
flex-direction: column;
align-items: center;
color: white;
}
#gameInfo {
color: white;
text-align: center;
width: 50%;
}
#gameInfo h2 {
font-size: 40px;
margin-bottom: 10px;
}
.description {
font-size: 18px;
line-height: 1.4;
}
#board {
display: grid;
grid-template-columns: repeat(3, minmax(100px, 1fr));
grid-template-rows: repeat(3, 100px);
gap: 5px;
margin-top: 25px;
}
.cell {
background: white;
border: 2px solid black;
font-size: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
/* #restartBtn {
margin-top: 20px;
padding: 10px 20px;
} */
button {
margin-top: 20px;
padding: 8px 18px;
font-size: 15px;
background: #3a6df0;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
button:hover {
background: #2b52b8;
}
@media (max-width: 600px) {
#gameBoard {
grid-template-columns: repeat(3, 70px);
gap: 8px;
}
.cell {
width: 70px;
height: 70px;
font-size: 28px;
}
#gameInfo h2 {
font-size: 28px;
}
.description,
.instructions {
font-size: 16px;
padding: 0 15px;
}
button {
font-size: 16px;
padding: 10px 20px;
}
}