-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject1.css
More file actions
118 lines (105 loc) · 1.91 KB
/
Copy pathProject1.css
File metadata and controls
118 lines (105 loc) · 1.91 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
body{
background-image: url("images/alleybackground.jpg");
background-repeat: no-repeat;
background-color: black;
background-position: center;
background-attachment: fixed;
overflow: hidden;
}
h1{
font-family: 'Yesteryear', cursive;
color: #FF4A01;
text-align: center;
font-size: 50px;
}
.badguy{
position: absolute;
/* Thanks Marcos! Makes transitions smoother*/
transition: top 800ms, left 800ms;
user-select: none;
-webkit-user-select: none;
display: none;
}
.villains{
width: 100vw;
height: 100vh;
position: relative;
}
#villain-container{
max-height: 400px;
max-width: 1200px;
cursor: crosshair;
}
p{
font-family: "Noir";
color: #FF4A01;
margin: 0px 5px 0px 40px;
font-size: 18px;
}
#story-box{
height: 110px;
width: 1200px;
/* border: 2px pink solid; */
overflow: hidden;
text-align: justify;
position: absolute;
top: 490px;
left: -12px;
line-height: 20px;
user-select: none;
-webkit-user-select: none;
z-index: 200;
}
#score-board{
font-family: "Noir";
color: #000;
position: absolute;
height: 80px;
width: 100px;
background-color: #FF4A01;
top: 100px;
right: 50px;
opacity: .7;
padding-top: 6px;
text-align: center;
-webkit-transform: rotate(-7deg);
transform: rotate(-7deg)
}
#shotsFired{
color: #000;
margin: 10px 0px 0px 0px;
}
#story{
position: relative;
top: 0;
left: 0;
/* I left this because it made the transition smoother */
transition: top 1s;
}
#button{
z-index: 5000;
background-color: #000;
border-radius: 5px;
border: 1px #FF4A01 solid;
padding: 8px;
color: white;
display: block;
position: absolute;
right: 15px;
font-family: "Noir";
cursor: pointer;
}
#button:hover{
box-shadow: 4px 3px 10px #6C290E;
}
#button:focus{
outline:0;
}
#lion{
width: 150px;
right: 25px;
position: absolute;
top: 150px;
-webkit-transform: rotate(7deg);
transform: rotate(7deg)
}