-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
58 lines (50 loc) · 1.16 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
body {
font-family: Arial, sans-serif;
text-align: center;
background: url("https://wallpaperaccess.com/full/899659.jpg") no-repeat center center fixed;
background-size: cover;
color: white;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
h1 {
margin-bottom: 20px;
}
#game-board {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-template-rows: repeat(3, 100px);
gap: 5px;
margin: 20px auto;
width: 315px;
}
.cell {
background-color: black;
border: 2px solid #000;
font-size: 2rem;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background-color 0.3s;
}
#message {
margin-top: 20px;
font-size: 1.5rem;
}
#restart {
margin-top: 20px;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.8);
border: 2px solid #000;
transition: background-color 0.3s;
}
#restart:hover {
background-color: rgba(255, 255, 255, 1);
}