-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
83 lines (83 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
:root{
--gameBoardwidth: 500px;
}
@media only screen and (max-width: 900px) {
body {
--gameBoardwidth: 100vw;
}
}
body{
margin: 0px;
padding: 0px;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
header{
width: var(--gameBoardwidth);
display: flex;
justify-content: space-between;
}
.displayScoreX, .displayScoreY{
padding: 15px;
font-size: 2rem;
display: flex;
}
.displayMode{
display: flex;
align-items: center;
}
.scoreX, .scoreY{
font-size: inherit;
margin-left: 5px;
}
.gameBoard{
background-color: beige;
height: var(--gameBoardwidth);
width: var(--gameBoardwidth);
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
}
.gameBoard:hover{
cursor: pointer;
}
.gameField{
border: 1px solid black;
display: flex;
justify-content: center;
transition: 1s ease-in-out;
font-size: 0px;
}
.filled{
font-size: calc(var(--gameBoardwidth)/4);
cursor: default;
}
.modal{
backdrop-filter: blur(10px);
width: 100vw;
height: 100vh;
display: none;
position: absolute;
}
.modalActive{
display: flex;
}
.resultMessage{
position: absolute;
width: calc(var(--gameBoardwidth));
height: calc(var(--gameBoardwidth));
display: flex;
justify-content: center;
align-items: center;
transition: 2s ease-in-out;
font-size: 4rem;
transform: scale(0);
z-index: 1;
}
.resultMessage.modalActive{
transform: scale(1);
}