-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
150 lines (127 loc) · 2.33 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
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
148
149
150
body {
background-color: #f5f5f5;
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
margin-top: 30px;
color: #008f58;
}
.dark-mode h1 {
color: #fff;
}
#scoreboard {
margin: 20px auto;
border-collapse: collapse;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#scoreboard th {
background-color: #f9f9f9;
padding: 10px;
text-align: center;
font-weight: bold;
}
#scoreboard td {
padding: 10px;
text-align: center;
}
#scoreboard td span {
font-size: 24px;
}
#board {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 320px;
margin: 0 auto;
margin-top: 50px;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.cell {
width: 100px;
height: 100px;
border: 2px solid #ddd;
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
cursor: pointer;
transition: background-color 0.3s ease;
background-color: #f9f9f9;
}
.cell:hover {
background-color: #e3e3e3;
}
.cell.x {
background-color: #2196f3; /* Blue to X */
color: #fff; /* White to text mark */
}
.cell.o {
background-color: #f44336; /* Red to O */
color: #fff; /* White to text mark */
}
button {
display: block;
margin: 0 auto;
margin-top: 20px;
padding: 10px 20px;
font-size: 1rem;
background-color: #008f58;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #008f58;
}
.dark-mode {
background-color: #333;
color: #fff;
}
.dark-mode #scoreboard th {
background-color: #555;
}
.dark-mode #scoreboard td {
background-color: #555;
color: #fff;
}
.dark-mode #scoreboard td span {
color: #fff;
}
.dark-mode .cell {
background-color: #555;
border-color: #666;
}
.dark-mode .cell.x {
background-color: #2196f3; /* Blue to X */
color: #fff; /* White to text mark */
}
.dark-mode .cell.o {
background-color: #f44336; /* Red to O */
color: #fff; /* White to text mark */
}
.dark-mode .cell:hover {
background-color: #777;
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
background-color: #f5f5f5;
padding: 10px 0;
font-size: 14px;
color: #333;
}
.dark-mode footer {
background-color: #333;
color: #fff;
}