summaryrefslogtreecommitdiff
path: root/style.css
blob: 73eb9ba3fa39f2eb8b068cba9b6b23d57d3c2c8f (plain)
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
:root{
	--foreground-color: hsl(0, 50%, 50%);
	--background-color: hsl(0, 0%, 0%);
}

@media (max-width: 600px) {
	html {
		font-size: 1.5rem; 
	}
}

@media (min-width: 601px) {
	html {
		font-size: 1rem; 
	}
}

body {
	color: var(--foreground-color);
	background-color: var(--background-color);
}

hr {
	border-color: var(--foreground-color);
}

nav {
	color: var(--foreground-color);
	text-align: center;
	clear: both;
}

.board {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	max-width: 12rem; 
	max-height: 12rem; 
}

.square {
	border: 0.01rem solid var(--foreground-color);
	height: 4rem;
	width: 4rem;
	font-size: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.square:nth-child(3n+1) {
	border-left: 0;
}

.square:nth-child(3n+3) {
	border-right: 0;
}

.square:nth-child(-n+3) {
	border-top: 0;
}

.square:nth-child(n+6) {
	border-bottom: 0;
}