-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlidingPuzzle.css
106 lines (94 loc) · 2.2 KB
/
SlidingPuzzle.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
@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace&display=swap');
*{
padding:0;
margin:0;
}
body{
height:100vh;
background-color: #212529;
display:flex;
}
.Refresh{
position: absolute;
padding:10px;
border-radius: 50%;
cursor:pointer;
margin:20px;
}
.conatiner{
width:450px;
margin:auto;
height:450px;
background-size:cover;
display:grid;
grid-template-columns: 150px 150px 150px;
grid-template-rows: 150px 150px 150px;
}
.tile{
background: url(https://images.unsplash.com/photo-1573152565405-f24a2b508023?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1931&q=80);
font-weight:900;
font-family: 'Bruno Ace', cursive;
font-size:2em;
background-size:450px 450px;
margin:3px;
padding:15px;
border-radius: 5px;
transition-duration: 0.5s;
-webkit-text-stroke:0.001px white;
}
.tile:nth-child(1){background-position: 0px 0px}
.tile:nth-child(2){background-position: -150px 0px}
.tile:nth-child(3){background-position: -300px -0px}
.tile:nth-child(4){background-position: 0px -150px}
.tile:nth-child(5){background-position: -150px -150px}
.tile:nth-child(6){background-position: -300px -150px}
.tile:nth-child(7){background-position: 0px -300px}
.tile:nth-child(8){background-position: -150px -300px}
.blscreen{
position: fixed;
width:100vw;
height:100vh;
display:none;
background-color: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(2px);
}
.winScreen{
width:600px;
height:300px;
margin:auto;
background-color: #ced4da;
border-radius:10px;
display:flex;
font-family: sans-serif;
box-shadow: 1px 1px 10px 5px rgba(0, 0, 0,0.5);
}
.winScreen>img{
width:300px;
height:300px;
border-radius: 10px;
}
.WinMessage{
width:300px;
display: flex;
flex-direction: column;
padding:10px;
font-size: 1.1em;
}
h2{
text-align:center;
padding:5px;
}
.buttonGroup{
margin:auto;
}
.buttonGroup>button{
padding:5px 20px;
border-radius:20px;
margin:10px;
font-size: 1.1em;
background-color: #40916c;
font-weight: bolder;
color:white;
font-family: 'Bruno Ace';
cursor:pointer;
}