-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
130 lines (105 loc) · 2.21 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
124
125
126
127
128
129
130
/* # 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);
}
.game-container {
width: calc((48px * 9) + 4px);
}
/* # Game Panel */
h1 {
font-size: 40px;
}
.score {
display: flex;
justify-content: space-between;
font-size: 32px;
}
/* # Game grid */
.game-board {
border: 2px solid rgb(0, 23, 50);
position: relative;
}
.grid {
width: calc(48px * 9); /* 👈 change multiplier based on grid row count */
height: calc(48px * 9); /*👈 change multiplier based on game column count */
display: flex;
flex-wrap: wrap;
}
.cell {
width: 48px;
height: 48px;
cursor: pointer;
outline: 1px dashed grey;
background-position: center;
background-size: contain;
}
.cell-dark {
background-color: rgb(203, 224, 221);
}
.river {
outline: none;
background-color: lightblue;
}
.road {
outline: none;
border-top: 1px dashed white;
border-bottom: 1px dashed white;
background-color: gray;
}
.car {
background-image: url('Asset/car.png');
}
.bus {
background-image: url('Asset/bus.png');
}
.wood {
background-image: url('./Asset/wood.png');
}
/* # Game over */
.end-game-screen {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #f1754eb3;
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;
}
.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);
}
/* # Utilities */
/* .hidden {
display: none;
} */