-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
112 lines (97 loc) · 1.76 KB
/
styles.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
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
padding: 20px 0;
color: #333;
}
.container {
width: 80%;
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
h1 {
color: #2c3e50;
font-size: 24px;
text-align: center;
margin-bottom: 20px;
}
.selection-wrapper {
display: flex;
flex-direction: column;
margin-bottom: 20px;
}
label {
margin-bottom: 10px;
font-weight: bold;
}
.board {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5px;
margin-bottom: 20px;
}
.cell {
width: 60px;
height: 60px;
border: 2px solid #2c3e50;
text-align: center;
font-size: 24px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s;
}
.cell:hover {
background-color: rgba(44, 62, 80, 0.1);
cursor: pointer;
}
.winning-cell {
background-color: #f39c12;
}
#turnInfo {
margin-bottom: 10px;
}
#resetButton {
background-color: #e74c3c;
color: #fff;
padding: 10px 15px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
#resetButton:hover {
background-color: #c0392b;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
padding: 20px 0;
color: #333;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
}
.board {
display: grid;
grid-template-columns: 60px 60px 60px;
gap: 5px;
}
.cell {
width: 60px;
height: 60px;
border: 1px solid black;
text-align: center;
font-size: 24px;
}
.winning-cell {
background-color: yellow;
}