-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
210 lines (187 loc) · 4.26 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2&display=swap');
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');
* {
margin: 0;
padding: 0;
}
nav {
background-color: rgb(62, 11, 110);
height: 60px;
}
nav ul {
list-style-type: none;
}
nav ul li {
font-weight: 600;
font-size: 28px;
text-align: center;
color: white;
padding-top: 15px;
font-family: 'Ubuntu', sans-serif;
font-stretch: expanded;
}
.gameContainer {
display: flex;
justify-content: center;
margin-top: 50px;
position: relative;
}
.container {
display: grid;
grid-template-columns: repeat(3, 10vw);
grid-template-rows: repeat(3, 10vw);
font-family: 'Roboto', sans-serif;
position: relative;
}
.box {
border: 2px solid black;
font-size: 8vw;
cursor: pointer;
user-select: none;
display: flex;
justify-content: center;
align-items: center;
box-shadow: rgb(0, 0, 0.08);
border-width: 5px;
border-color: rgb(228, 127, 228);
border-style: inset;
}
.box:hover {
background-color: rgb(240, 227, 252);
}
.gameInfo {
padding: 0 34px;
display: flex;
flex-direction: column;
font-family: 'Baloo Da 2', cursive;
}
li::selection {
color: rgb(228, 175, 228);
background-color: rgb(62, 11, 110);
}
.info {
font-size: 22px;
text-align: center;
align-items: center;
font-weight: 600;
color: rgb(227 31 31);
user-select: none;
}
.imgBox img {
width: 0;
transition: width 1s ease-in-out;
margin-top: 22px;
margin-left: 20px;
user-select: none;
}
.br-0 {
border-right: 0;
border-color: rgb(228, 127, 228);
}
.bl-0 {
border-left: 0;
border-color: rgb(228, 127, 228);
}
.bt-0 {
border-top: 0;
border-color: rgb(228, 127, 228);
}
.bb-0 {
border-bottom: 0;
border-color: rgb(228, 127, 228);
}
#reset {
margin: 0 23px;
padding: 3px 14px;
background-color: rgb(220 203 237);
border-radius: 28px;
cursor: pointer;
outline: none;
border: 2px solid rgb(73, 5, 73);
user-select: none;
font-family: 'Baloo Da 2', cursive;
font-size: 16px;
font-weight: 600;
}
.line {
background-color: rgb(133, 70, 133);
width: 0;
height: 3px;
position: absolute;
transition: width 1s ease-in-out;
border-radius: 2px;
}
.winner {
display: none;
font-size: 112px;
position: absolute;
color: rgb(36 217 36);
font-family: "MedivalSharp", cursive;
margin-top: 141px;
margin-left: 20px;
transform: rotate(25deg);
transition: display 1.5s ease-in-out;
user-select: none;
}
.confetti {
margin-top: 10px;
margin-left: 10px;
width: 413px;
position: absolute;
opacity: 0;
transition: opacity 2s ease-in-out;
z-index: -1;
}
.start {
position: absolute;
height: 50px;
margin-top: 14%;
margin-right: 42%;
padding: 3px 14px;
background-color: rgb(220 203 237);
border-radius: 28px;
cursor: pointer;
outline: none;
border: 2px solid rgb(73, 5, 73);
user-select: none;
font-family: 'Baloo Da 2', cursive;
font-size: 16px;
font-weight: 600;
z-index: 100;
}
@media screen and (max-width: 800px) {
.gameContainer {
flex-wrap: wrap;
}
.gameInfo {
margin-top: 34px;
}
.gameInfo h1 {
font-size: 1.5rem;
text-align: center;
}
.gameText {
display: flex;
flex-direction: column;
justify-content: center;
}
.imgBox img{
width: 178px;
margin-left: 29%;
}
#reset {
margin: 7px 42px;
padding: 4px 14px;
}
.info {
color: rgb(227 31 31);
font-weight: 600;
text-align: center;
}
.container {
grid-template-columns: repeat(3, 20vw);
grid-template-rows: repeat(3, 20vw);
}
}