/
starWarsStyle.css
151 lines (127 loc) · 2.33 KB
/
starWarsStyle.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
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
141
142
143
144
145
146
147
148
149
150
151
/* css properties shared by the classic version and the star wars version*/
* {
max-width: 550px;
margin: 0 auto;
font-family: 'Londrina Solid', cursive;
color: gold;
background: black;
}
a {
text-decoration: none;
color: black;
background: gold;
}
h1 {
text-align: center;
font-size: 5em;
}
h2 {
font-size: 2em;
text-align: center;
}
h3 {
display: inline;
font-size: 1.3em;
margin-left: 20px;
margin-right: 150px;
}
a {
display: inline;
margin-left: 20px;
}
#options {
display: flex;
justify-content: center;
}
.flexbox {
display: flex;
}
.flexchild-10 {
flex: 10
}
.flexchild-1 {
flex: 1;
padding: 10px;
}
button {
background: gold;
color: black;
border: none;
font-size: 3em;
flex: 1;
margin: 10px;
font-size: 2em;
}
.container {
flex: 1;
/*display: none; - need to activate this if we're adding a start button*/
width: 500px;
height: 500px;
border: 10px solid gold;
position: relative;
margin-top: 25px;
}
/* setting css properties for star wars version*/
.audioplayer {
display: flex;
justify-content: center;
}
iframe {
display: inline;
}
/* turning snake into a light saber*/
.snake {
height: 10px;
width: 10px;
background: #B9FFDC;
border-color: black;
box-shadow: 0 0 50px rgb(0, 255, 127);
position: absolute;
}
/* making the food objects larger for visibility*/
.food {
height: 30px;
width: 30px;
background-size: 30px;
position: absolute;
top: 30px;
border-radius:10px;
}
/*setting css properties for the six stages (from storm trooper to death star)*/
.one {
background-image: url("img/1stormtrooper.svg");
}
.two {
background-image: url("img/2bobafett.svg");
}
.three {
background-image: url("img/3elephant.svg");
}
.four {
background-image: url("img/4tiefighter.svg");
}
.five {
background-image: url("img/5darthvader.svg");
}
.six {
background-image: url("img/6deathstar.svg");
}
.winning-background {
background: #CA2128;
background-image: url("img/final.jpg");
background-size: 400px;
background-repeat: no-repeat;
background-position: bottom;
-webkit-transition: all 2s ease-in-out;
-moz-transition: all 2s ease-in-out;
-o-transition: all 2s ease-in-out;
transition: all 2s ease-in-out;
}
#blackbox {
height: 10px;
width: 10px;
background: black;
float:left;
position: relative;
z-index:1;
}