-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
140 lines (113 loc) · 2.21 KB
/
style.css
File metadata and controls
140 lines (113 loc) · 2.21 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
130
131
132
133
134
135
136
137
138
139
140
*{
padding: 0;
margin: 0;
}
#header{
margin-top: 5%;
margin-bottom: 5%;
padding:0 0 0 0px;
text-align: center;
text-shadow:5px solid black;
font-size: 30px;
border: none;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#game{
width: 100%;
height: 200px;
border: 4px solid black;
padding-top: 0px;
margin-bottom: 10%;
}
#character{
width: 30px;
height: 60px;
margin-left: 10px;
background-color: rgb(0, 0, 0);
position: relative;
top: 140px;
box-shadow: 0 0 4px black;
}
.animate{
animation: jump 500ms;
}
#block{
width: 30px;
height: 30px;
background-color: rgb(76, 83, 230);
box-shadow: 0 0 4px black;
position:relative;
top: 110px;
left: -10px;
animation: block 1.4s infinite linear;
}
#startButton{
outline: none;
}
@keyframes block{
0%{left: 100%;}
100%{left: -1%;}
}
@keyframes jump{
0%{top: 140px;}
35%{top: 90px;}
65%{top: 90px;}
100%{top: 140px;}
}
.button-container{
width: fit-content;
margin: auto;
background-color: white;
border: none;
outline: none;
text-decoration: none;
}
#button-text{
text-align: center;
font-size: 20px;
text-emphasis-color: none;
outline: none;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
text-decoration: none;
}
a {
text-decoration: none;
color: black;
container: fit-content;
text-emphasis-color:none;
outline: none;
}
.button-container button {
background-color: rgb(174, 219, 190);
text-emphasis-color:none;
text-decoration-color: rgb(255, 255, 255);
padding: 10px 25px;
border: none;
border-radius: 30px;
outline: none;
box-shadow: 0 0 3px rgb(112, 112, 112);
text-decoration: none;
}
.button-container button:focus{
outline: none;
box-shadow: 0 0 5px black;
text-decoration: none;
}
@keyframes pulse {
0%{
transform: scale(1);
}
50%{
transform: scale(1.1);
}
100%{
transform:scale(1) ;
}
}
button:hover {
cursor: pointer;
contain: content;
animation: pulse 3s infinite;
background-color: rgb(151, 189, 168);
text-decoration: none;
}