-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
143 lines (127 loc) · 2.23 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
html {
box-sizing: border-box;
font-size: 10px;
background: -webkit-linear-gradient(to left, #799f0c, #ffe000);
background: linear-gradient(to left, #799f0c, #ffe000);
}
*,
*:before,
*:after {
box-sizing: inherit;
}
@font-face {
font-family: "Sansation Bold";
src: url("Sansation_Bold.ttf");
}
body {
padding: 0;
margin: 0;
font-family: "Sansation Bold", cursive;
}
.title {
margin: 40px auto;
text-align: center;
font-size: 7rem;
}
.score,
#current-lvl,
#best-score {
background: rgba(255, 255, 255, 0.2);
padding: 0 2rem;
line-height: 1;
border-radius: 1rem;
font-size: 3rem;
}
.game {
width: 50%;
height: 400px;
display: flex;
flex-wrap: wrap;
}
.hole {
flex: 1 0 33.33%;
overflow: hidden;
position: relative;
}
.hole:after {
display: block;
background: url(dirt.svg) bottom center no-repeat;
background-size: contain;
content: "";
width: 100%;
height: 70px;
position: absolute;
z-index: 2;
bottom: -30px;
}
.mole {
background: url("mole.svg") bottom center no-repeat;
background-size: 60%;
position: absolute;
top: 100%;
width: 100%;
height: 100%;
transition: all 0.4s;
}
.hole.up .mole {
top: 0;
}
#click {
margin-top: 25px;
color: #ff9900;
background: none;
font-weight: bold;
border: none;
font-size: 8rem;
text-shadow: 4px 4px 12px black;
font-family: "Sansation Bold", cursive;
text-transform: uppercase;
}
.circle {
border: 2px solid black;
width: 110px;
height: 110px;
border-radius: 50%;
padding-top: 30px;
}
.wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.score-wrap {
display: inline-block;
}
.score-wrap h1 {
font-size: 2.2rem;
margin-bottom: 10px;
}
.leader-board {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-radius: 8px;
padding: 30px;
}
.time-left {
text-align: center;
font-size: 4rem;
margin-bottom: 10px;
position: absolute;
top: 0;
left: 5%;
}
/*------- For The best-score Page --------*/
.play-again {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
margin: 25vh auto;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-radius: 8px;
padding: 30px;
width: 350px;
}
.play-again h1 {
font-size: 3rem;
margin-bottom: 10px;
}