-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
123 lines (101 loc) · 1.93 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
112
113
114
115
116
117
118
119
120
121
122
123
/*
black: rgb(0, 23, 50); #001732;
orange: rgb(241, 117, 78); #f1754e;
bg-color: rgb(216, 238, 232); #d8eee8;
bg-dark-color: rgb(203, 224, 221); #cbe0dd;
clicked-cell: rgb(157, 197, 199); #9dc5c7;
transparent red: rgba(241, 117, 78, 0.7);
font-family: 'Darker Grotesque', sans-serif;
font-family: 'Press Start 2P', cursive;
*/
/* # Generic */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding: 16px;
font-family: 'Darker Grotesque', sans-serif;
line-height: 1;
color: rgb(0, 23, 50);
background-color: rgb(216, 238, 232);
}
h1 {
font-size: 40px;
}
.btn {
font-size: 24px;
font-family: 'Darker Grotesque', sans-serif;
padding: 4px 20px 8px 20px;
/* width: 50%; */
cursor: pointer;
text-transform: uppercase;
border: 2px solid rgb(0, 23, 50);
}
.btn:hover {
background-color: rgb(203, 224, 221);
}
.btn-full {
width: 100%;
}
.score {
display: flex;
justify-content: space-between;
font-size: 32px;
/* font-weight: 700; */
}
/* # Griglia di gioco */
.game-board {
position: relative;
margin-bottom: 8px;
border: 2px solid rgb(0, 23, 50);
}
.game-container {
width: calc((48px * 6) + 4px);
}
.grid {
width: calc((48px * 6) + 4px);
display: flex;
flex-wrap: wrap;
}
.cell {
width: 48px;
height: 48px;
cursor: pointer;
}
.cell-dark {
background-color: rgb(203, 224, 221);
}
.bar {
background-color: #f1754e;
border-radius: 8px;
border: 2px solid rgb(0, 23, 50);
}
/* # Game over */
.end-game-screen {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(241, 117, 78, 0.7);
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
text-align: center;
gap: 16px;
}
.win {
background-color: rgba(78, 241, 187, 0.7);
}
.end-game-text {
font-size: 48px;
font-family: 'Press Start 2P', cursive;
text-transform: uppercase;
}
/* # Utilities */
.hidden {
display: none;
}