-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
111 lines (111 loc) · 1.94 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
104
105
106
107
108
109
110
111
:root {
--border: 2px solid hsl(0 0% 60%);
}
html,
body {
height: 100%;
}
body {
margin: 0px;
font-family: 'Space Grotesk', sans-serif;
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100%;
}
h1 {
margin-top: 0px;
margin-bottom: 40px;
font-size: clamp(2rem, 1.3043rem + 3.4783vw, 4rem);
font-family: 'Bungee Shade', cursive;
}
#score-board {
display: flex;
flex-direction: column;
margin-bottom: 40px;
font-family: 'Space Mono', monospace;
}
#score-board-heading {
font-size: 2rem;
text-transform: uppercase;
}
#score-section {
display: flex;
}
.score {
display: flex;
flex: 1 1 50px;
flex-direction: column;
align-items: center;
}
.score-player {
font-size: 1.5rem;
}
.score-points {
font-size: 1.24rem;
}
.game-ui {
display: grid;
grid-template-rows: repeat(3, 100px);
grid-template-columns: repeat(3, 100px);
margin-right: auto;
margin-left: auto;
max-width: 300px;
}
.cell {
cursor: pointer;
border: none;
font-size: 3rem;
font-family: 'Space Grotesk', sans-serif;
text-align: center;
}
.win {
color: goldenrod;
font-weight: 500;
}
#cell-1,
#cell-2,
#cell-4,
#cell-5 {
border-right: var(--border);
border-bottom: var(--border);
}
#cell-3,
#cell-6 {
border-bottom: var(--border);
}
#cell-7,
#cell-8 {
border-right: var(--border);
}
#message {
margin-top: 40px;
margin-bottom: 0px;
font-size: 2rem;
}
#restart,
#reset {
cursor: pointer;
margin-top: 40px;
border: none;
border-radius: 8px;
padding: 16px 32px;
font-weight: 500;
font-size: 1.5rem;
font-family: 'Space Grotesk', sans-serif;
text-transform: uppercase;
}
#reset {
margin-bottom: 80px;
background-color: crimson;
padding: 0.75em 1em;
color: white;
font-size: 0.875rem;
}
footer {
padding: 80px 20px;
text-align: center;
}