-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (127 loc) · 2.41 KB
/
style.css
File metadata and controls
129 lines (127 loc) · 2.41 KB
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
@import url(https://fonts.googleapis.com/css?family=Press+Start+2P:regular);
*{
box-sizing: border-box;
}
body{
background-color: white;
color: rgb(71, 70, 70);
font-family:'Press Start 2P', sans-serif;
height:100vh;
overflow: hidden;
margin: 0;
text-align: center;
}
a{
color: #fff;
}
h1{
line-height: 1.4;
}
.insects-list{
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style-type: none;
padding: 0;
}
.insects-list li{
margin: 10px;
}
.choose-insect-btn{
background-color: transparent;
border: 2px solid white;
cursor: pointer;
font-family: inherit;
width: 150px;
height: 150px;
}
.choose-insect-btn :hover{
background-color: #fff;
color:rgb(71, 70, 70) ;
}
.choose-insect-btn:active{
background-color: rgba(255,255,255,0.7);
}
.choose-insect-btn img{
width: 100px;
height: 100px;
object-fit: contain;
}
.btn{
border: 0;
background-color: rgb(71, 70, 70);
color: white;
padding: 15px 20px;
font-family: inherit;
cursor:pointer;
}
.btn:hover{
opacity: 0.9;
}
.btn:focus{
outline: 0;
}
.screen{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
width: 100vw;
transition: -webkit-margin 0.5s ease-out;
}
.screen.up{
margin-top: -100vh ;
}
.game-container{
position: relative;
}
.time, .score{
position: absolute;
top: 20px;
}
.time{
left: 20px;
}
.score{
right: 20px;
}
.message{
line-height: 1.7;
background-color: rgb(71, 70, 70);
width: 100%;
padding: 20px;
z-index: 100;
text-align: center;
opacity: 0;
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -150%);
transition: -webkit-transform 0.4s ease-in;
}
.message.visible{
color: white;
transform: translate(-50%, 150%);
opacity: 1;
}
.insect{
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 100px;
height: 100px;
transform: translate(-50%,-50%) scale(1);
transition: -webkit-transform 0.3s ease-in-out;
position: absolute;
top: 400px;
left: 500px;
}
.insect.caught{
transform: translate(-50%, -50%) scale(0);
}
.insect img{
width: 100px;
height: 100px;
}