-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (80 loc) · 1.41 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
body{
font-family: 'Josefin Sans', sans-serif;
background: url(./media/grass.png);
background-color: white;
box-sizing: border-box;
padding: 0;
margin: 0;
display: grid;
place-items: center;
}
*, *::before, *::after {
box-sizing: inherit;
}
#container{
width: 90%;
max-width: 600px;
height: 95vh;
margin-top: 1rem;
background-color: rgba(256, 256, 256, 0.6);
border: 5px solid black;
display: flex;
flex-direction: column;
align-items: center;
}
header{
text-align: center;
}
#score{
padding: 1rem;
}
#play-area{
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
}
.box{
background: transparent;
flex: 1 0 33.33%;
border: 5px solid transparent;
position: relative;
overflow: hidden;
}
.box:after{
display: block;
background: burlywood;
background-size: contain;
border: 3px dotted #795548;
content: '';
width: 100%;
height: 45px;
position: absolute;
z-index: 2;
bottom: 0px;
}
.cat {
background: url(./media/cat2.svg) center no-repeat;
background-size: contain;
position: absolute;
z-index: 1;
width: 100%;
height: 100px;
top: 100%;
transition: all 0.4s;
}
.box.up .cat{
top: 5%;
}
button{
font-family: 'Josefin Sans', sans-serif;
padding: 8px 64px;
background-color: transparent;
border: 2px solid black;
margin: 1rem 0 0.5rem 0;
}
button:hover{
background-color: black;
color: white;
transition: ease 0.5s;
}