-
Notifications
You must be signed in to change notification settings - Fork 0
/
MarioMatchGame.css
121 lines (105 loc) · 2.19 KB
/
MarioMatchGame.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
* {
font-family: "Handjet", sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
}
h2 {
margin-bottom: 30px;
font-size: 3.5em;
}
.box {
position: relative;
width: 600px;
height: 200px;
border: 2px solid #555;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.41);
cursor: pointer;
}
.box label {
position: relative;
width: 100%;
height: 33.333%;
border: 2px solid #555;
border-bottom: none;
}
.box label input {
position: relative;
z-index: 10;
appearance: none;
}
.box label i {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: 600px;
cursor: pointer;
}
.box label:nth-child(1) i {
background-image: url(01.jpg);
animation: animate 1.5s steps(3) infinite;
}
.box label:nth-child(2) i {
background-image: url(02.jpg);
animation: animate 1s steps(3) infinite;
}
.box label:nth-child(3) i {
background-image: url(03.jpg);
animation: animate 1.2s steps(3) infinite;
}
@keyframes animate {
0% {
background-position: 0px;
}
100% {
background-position: 600px;
}
}
.box label input:checked~i {
animation-play-state: paused;
}
.reset {
margin-top: 40px;
border: none;
font-size: 1.25em;
padding: 10px 25px;
background: #333;
color: #fff;
border-radius: 50px;
box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.51),
inset 2px 2px 4px rgba(255, 255, 255, 0.75),
-5px -5px 30px #fff;
cursor: pointer;
}
.reset:active {
background: #d63c3c;
box-shadow: 5px 5px 30px #d63c3ca4,
inset 2px 2px 4px rgba(255, 255, 255, 0.75),
-5px -5px 30px #fff;
transform: scale(0.95);
}
.rr {
display: none;
}
.result {
font-size: 4.5em;
background: linear-gradient(90deg, rgb(135, 135, 37), rgb(222, 222, 28));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
display: flex;
}