-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
71 lines (62 loc) · 1.36 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
/* Light mode (default) */
body {
font-family: Arial, sans-serif;
text-align: center;
padding-top: 50px;
background-color: #ffffff;
color: #212529; /* Bootstrap's default text color */
}
/* Dark mode styles */
body.dark-mode {
background-color: #212529;
color: #f8f9fa; /* Light text color */
}
/* Board styles for light and dark mode */
#board {
display: grid;
grid-template-columns: repeat(3, 120px);
grid-gap: 10px;
justify-content: center;
margin-top: 20px;
}
.cell {
width: 120px;
height: 120px;
background-color: #f8f9fa;
font-size: 3em;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #ced4da;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s ease;
}
body.dark-mode .cell {
background-color: #343a40; /* Darker cell background in dark mode */
border-color: #495057; /* Darker border in dark mode */
}
.cell:hover {
background-color: #e9ecef;
}
body.dark-mode .cell:hover {
background-color: #495057;
}
#status {
margin-top: 20px;
font-size: 1.8em;
font-weight: 500;
}
#resetBtn {
margin-top: 30px;
padding: 10px 30px;
font-size: 1.2em;
border-radius: 5px;
}
/* Toggle Button */
#modeToggleBtn {
margin-top: 10px;
padding: 10px 20px;
font-size: 1em;
border-radius: 5px;
}