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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body{
|
2 |
+
margin:0px;
|
3 |
+
padding:0px;
|
4 |
+
position: absolute;
|
5 |
+
height:100%;
|
6 |
+
width:100%;
|
7 |
+
background-size:cover;
|
8 |
+
font-style: regular;
|
9 |
+
font-family:"Myriad Pro", Myriad,"Helvetica Neue", Helvetica, Arial, sans-serif;
|
10 |
+
background-color:#f0f0f1;
|
11 |
}
|
12 |
|
13 |
+
.webgl-content,#loadingBlock,#errorBrowserBlock{
|
14 |
+
padding:0px;
|
15 |
+
position:absolute;
|
16 |
+
height:100vh;
|
17 |
+
width:100vw;
|
18 |
+
background-color:#f0f0f1;
|
19 |
}
|
20 |
|
21 |
+
#gameContainer,canvas{
|
22 |
+
position:absolute;
|
23 |
+
height:100%;
|
24 |
+
width:100%;
|
25 |
+
background-color:#f0f0f1;
|
26 |
}
|
27 |
|
28 |
+
#fullScreenButton{
|
29 |
+
height:50px;
|
30 |
+
width:50px;
|
31 |
+
position:absolute;
|
32 |
+
z-index:1;
|
33 |
+
bottom:5px;
|
34 |
+
right:5px;
|
35 |
+
background-color:transparent;
|
36 |
+
background-image:url("../img/fullScreen_on.png");
|
37 |
+
background-repeat: no-repeat;
|
38 |
+
background-position: center;
|
39 |
+
background-size:30px 30px;
|
40 |
+
border:none;
|
41 |
+
cursor: pointer;
|
42 |
}
|
43 |
|
44 |
+
.subtitle{
|
45 |
+
color:#1896a7;
|
46 |
+
font-size:2.3vh;
|
47 |
+
padding-bottom:2.3vh;
|
48 |
+
padding-top:2.5vh;
|
49 |
+
display: block;
|
50 |
+
height:20vh;
|
51 |
+
width:40vw;
|
52 |
+
margin:auto;
|
53 |
+
text-align: center;
|
54 |
}
|
55 |
+
|
56 |
+
.logo{
|
57 |
+
height:25vh;
|
58 |
+
width:auto;
|
59 |
+
display: block;
|
60 |
+
margin:auto;
|
61 |
+
margin-top:2vh;
|
62 |
+
}
|
63 |
+
|
64 |
+
#loadingBlock,#errorBrowserBlock{
|
65 |
+
background-image:url("../img/background.png");
|
66 |
+
background-size:cover;
|
67 |
+
}
|
68 |
+
|
69 |
+
#emptyBar{
|
70 |
+
background: url("../img/progressEmpty.png") no-repeat right;
|
71 |
+
float: right;
|
72 |
+
width: 60%;
|
73 |
+
height: 100%;
|
74 |
+
display: inline-block;
|
75 |
+
}
|
76 |
+
|
77 |
+
#fullBar{
|
78 |
+
background: url("../img/progressFull.png") no-repeat right;
|
79 |
+
float: left;
|
80 |
+
width: 40%;
|
81 |
+
height: 100%;
|
82 |
+
display: inline-block;
|
83 |
+
}
|
84 |
+
|
85 |
+
#progressBar,#warningBrowserBlock,#warningMobileBlock,#errorContent{
|
86 |
+
height:25vh;
|
87 |
+
width:40vw;
|
88 |
+
margin:auto;
|
89 |
+
text-align: center;
|
90 |
+
}
|
91 |
+
|
92 |
+
#progressBar{
|
93 |
+
height:8vh;
|
94 |
+
color:#666666;
|
95 |
+
font-size:4vh;
|
96 |
+
}
|
97 |
+
|
98 |
+
#warningBrowserBlock,#warningMobileBlock,#errorContent{
|
99 |
+
margin-top:15vh;
|
100 |
+
color:#666666;
|
101 |
+
font-size:2.3vh;
|
102 |
+
}
|
103 |
+
|
104 |
+
.browserIcons{
|
105 |
+
display: inline-flex;
|
106 |
+
margin-top:2vh;
|
107 |
+
}
|
108 |
+
|
109 |
+
.browserIcons a{
|
110 |
+
width:150px;
|
111 |
+
}
|
112 |
+
|
113 |
+
#errorContent{
|
114 |
+
font-size:3vh;
|
115 |
+
margin-top:5vh;
|
116 |
+
}
|
117 |
+
|
118 |
+
.centered{
|
119 |
+
height: 100%;
|
120 |
+
max-width:770px;
|
121 |
+
margin-left:auto;
|
122 |
+
margin-right:auto;
|
123 |
+
}
|
124 |
+
|
125 |
+
|
126 |
+
/* When aspect-ratio is smaller than 4/3*/
|
127 |
+
|
128 |
+
/*@media (max-aspect-ratio: 4/3){
|
129 |
+
|
130 |
+
.webgl-content{
|
131 |
+
-webkit-transform: translate(0%, 0%); transform: translate(0%, 0%);
|
132 |
+
-webkit-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
|
133 |
+
-moz-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
|
134 |
+
box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
|
135 |
+
}
|
136 |
+
|
137 |
+
.keepRatio{
|
138 |
+
width:100%;
|
139 |
+
padding-top: 75%;
|
140 |
+
position: relative;
|
141 |
+
top: 50%;
|
142 |
+
transform: translateY(-50%);
|
143 |
+
}
|
144 |
+
|
145 |
+
.webgl-content,#loadingBlock,#errorBrowserBlock{
|
146 |
+
position: absolute;
|
147 |
+
top: 0;
|
148 |
+
left: 0;
|
149 |
+
bottom: 0;
|
150 |
+
right: 0;
|
151 |
+
height:100%;
|
152 |
+
}
|
153 |
+
|
154 |
+
.logo{
|
155 |
+
width:25vw;
|
156 |
+
height:auto;
|
157 |
+
margin-top:1vh;
|
158 |
+
}
|
159 |
+
|
160 |
+
.subtitle{
|
161 |
+
font-size:2vw;
|
162 |
+
height:10vw;
|
163 |
+
padding-bottom:1vw;
|
164 |
+
padding-top: 1vw;
|
165 |
+
}
|
166 |
+
|
167 |
+
.subtitle,#progressBar,#warningBrowserBlock,#warningMobileBlock,#errorContent{
|
168 |
+
width:80vw;
|
169 |
+
}
|
170 |
+
|
171 |
+
#progressBar{
|
172 |
+
height:6vw;
|
173 |
+
margin-top: 2vw;
|
174 |
+
font-size:3vw;
|
175 |
+
}
|
176 |
+
|
177 |
+
#emptyBar,#fullBar{
|
178 |
+
height: 2vw;
|
179 |
+
}
|
180 |
+
|
181 |
+
#warningBrowserBlock,#warningMobileBlock,#errorContent{
|
182 |
+
margin-top:3vw;
|
183 |
+
font-size:2vw;
|
184 |
+
}
|
185 |
+
|
186 |
+
.browserIcons{
|
187 |
+
margin-top:1vw;
|
188 |
+
}
|
189 |
+
|
190 |
+
.browserIcons a{
|
191 |
+
width:15vw;
|
192 |
+
}
|
193 |
+
|
194 |
+
.browserIcons a img{
|
195 |
+
width:8vw;
|
196 |
+
}
|
197 |
+
}*/
|
198 |
+
|
199 |
+
|
200 |
+
/* When aspect-ratio is bigger than 16/9*/
|
201 |
+
|
202 |
+
/*@media (min-aspect-ratio: 16/9){
|
203 |
+
body{
|
204 |
+
display:flex;
|
205 |
+
flex-wrap:wrap;
|
206 |
+
justify-content:space-between;
|
207 |
+
}
|
208 |
+
|
209 |
+
.keepRatio{
|
210 |
+
width:178vh;
|
211 |
+
height:100%;
|
212 |
+
margin:0 auto;
|
213 |
+
}
|
214 |
+
|
215 |
+
.webgl-content,#gameContainer,canvas,#loadingBlock,#errorBrowserBlock{
|
216 |
+
width: inherit;
|
217 |
+
}
|
218 |
+
|
219 |
+
.webgl-content{
|
220 |
+
-webkit-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
|
221 |
+
-moz-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
|
222 |
+
box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
|
223 |
+
}
|
224 |
+
|
225 |
+
.subtitle,#progressBar,#warningBrowserBlock,#warningMobileBlock,#errorContent{
|
226 |
+
width:100vh;
|
227 |
+
}
|
228 |
+
}*/
|