-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (81 loc) · 1.58 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
:root {
--background-color: #fee2e2;
--cell-color: #fca5a5;
--text-color: #7f1d1d;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
color: var(--text-color)
}
body {
background-color: var(--background-color);
padding-top: 10rem;
}
.dropdown {
position: relative;
display: block;
width: 8rem;
height: 2rem;
line-height: 3;
border-radius: 0.25rem;
padding-bottom: 10px;
}
#mode {
appearance: none;
outline: 0;
background: var(--cell-color);
background-image: none;
width: 100%;
height: 100%;
cursor: pointer;
border: 2px solid var(--text-color);
border-radius: 3px;
text-align: center;
font-size: 0.9rem;
}
#game-board {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#game-grid{
display: grid;
width: 400px;
height: 400px;
padding: 1rem;
grid-template-columns: repeat(3, 1fr);
justify-items: center;
align-items: center;
}
.cell {
display: flex;
width: 100px;
height: 100px;
align-items: center;
justify-content: center;
font-size: 4rem;
font-weight: bold;
border: none;
border-radius: 15px;
background-color: var(--cell-color);
}
.cell:hover{
cursor: pointer;
}
#reset-btn {
width: 100px;
height: 30px;
border: none;
border-radius: 15px;
font-weight: bold;
background-color: var(--cell-color);
margin-top: 20px;
}
#reset-btn:hover {
cursor: pointer;
color: var(--background-color);
}