-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
103 lines (86 loc) · 1.88 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
body {
font-family: serif;
text-align: center;
margin: 0;
padding: 20px;
transition: background-color 0.3s ease;
}
/* Default light theme */
body, h1, #statusText {
color: #002244; /* Darker blue */
}
table, td, button {
border-color: #000;
}
/* If user prefers dark theme */
@media (prefers-color-scheme: dark) {
body, h1, #statusText {
color: #ccc; /* Lighter gray for dark mode */
}
table, td, button {
border-color: #aaa; /* Lighter border for dark mode */
}
button:hover {
color: #000;
}
}
h1 {
margin-top: 30px;
font-size: 32px;
}
#gameBoard {
margin: 50px auto;
border-collapse: collapse;
width: 310px;
}
table, td {
border-collapse: collapse;
}
td {
width: 100px;
height: 100px;
font-size: 24px;
font-weight: bold;
border: 3px solid #000;
cursor: pointer;
transition: background-color 0.3s ease;
color: black;
background-color: #E0E0E0; /* A bit darker default background */
}
td:hover {
background-color: #F3F3F3; /* Original lighter color on hover */
}
.red {
background-color: #FF6666; /* More saturated red */
color: black;
}
.blue {
background-color: #6666FF; /* More saturated blue */
color: black;
}
.red:hover {
background-color: #FFCCCC; /* Lighter red on hover */
}
.blue:hover {
background-color: #CCCCFF; /* Lighter blue on hover */
}
button {
padding: 10px 20px;
margin: 10px;
border: 3px solid #000;
background-color: #E0E0E0; /* A bit darker default background for consistency */
color: #000;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
font-weight: bold;
font-size: 16px;
}
button:hover {
background-color: #F3F3F3; /* Original lighter color on hover */
color: #000;
}
#statusText {
font-size: 18px;
margin-top: 20px;
padding-top: 20px;
}