-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
136 lines (119 loc) · 2.48 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
body {
font-family: "Fredoka", sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 0;
background-color: #f4f4f9;
/* I have chosen lighter background for better contrast */
}
h1 {
margin-top: 20px;
font-size: 2rem;
color: #333;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
/* Style for settings input section */
#settings {
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 10px;
}
/* Style input fields and the button for better responsiveness */
input[type="number"] {
padding: 10px;
font-size: 1rem;
width: 60px;
margin-left: 5px;
border: 2px solid #ccc;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
label {
font-size: 1rem;
margin-right: 5px;
color: #333;
}
button {
padding: 10px 20px;
font-size: 1rem;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
/* Style for the game board, using CSS Grid */
.board {
display: grid;
gap: 5px;
margin-top: 20px;
}
/* Each cell in the Tic-Tac-Toe board */
.cell {
width: 60px;
height: 60px;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
border: 2px solid #000;
cursor: pointer;
transition: background-color 0.3s ease;
}
/* Highlight cell on hover */
.cell:hover {
background-color: #e0e0e0;
}
/* Style for the status and reset button */
#status {
margin-top: 20px;
font-size: 1.2rem;
}
#reset {
margin-top: 10px;
}
/* Responsive layout for smaller devices */
@media (max-width: 600px) {
h1 {
font-size: 1.5rem;
}
.cell {
width: 40px;
height: 40px;
font-size: 18px;
}
input[type="number"] {
width: 50px;
font-size: 0.9rem;
padding: 8px;
}
button {
font-size: 0.9rem;
padding: 8px 16px;
}
#status {
font-size: 1rem;
}
select {
padding: 10px;
font-size: 1rem;
border: 2px solid #ccc;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-left: 5px;
}
}