-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
103 lines (88 loc) · 1.7 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
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
font-size: 10px;
font-family: sans-serif;
}
.container {
width: 60%;
height: 100vh;
background-color: aquamarine;
margin: 2rem auto;
font-size: 1.4rem;
}
.container .gameArea {
text-align: center;
width: 100%;
height: 100%;
}
.container .gameArea .score {
float: right;
margin: 2rem;
background: #ffcc00;
padding: 1rem;
border-radius: .4rem;
}
.container .gameArea .hearts {
width: 10rem;
height: 3rem;
background-color: #ffcc00;
float: left;
margin: 2rem;
border-radius: .4em;
display: none;
}
.container .gameArea .hearts img {
height: 2rem;
margin-top: .5rem;
}
.container .gameArea .fruits {
width: 80%;
height: 60%;
background-color: #fff;
margin: 0 auto;
clear: both;
overflow: hidden;
position: relative;
}
.container .gameArea .fruits #fruit {
position: absolute;
/* height: 15rem;*/
}
.gameOver {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #640000;
color: #fff;
line-height: 30rem;
font-size: 3rem;
}
.container .gameArea .text {
width: 70%;
height: 4rem;
background: #ff8f00;
margin: 1em auto;
line-height: 4rem;
}
.container .gameArea button {
width: 12rem;
height: 4rem;
background: #008cfa;
outline: none;
border: none;
border-radius: .4rem;
cursor: pointer;
}
@media only screen and (max-width: 500px) {
.container {
width: 100%;
margin: 0;
}
}