@font-face {
	font-family: 'DesigersBold';
	src: url('Designers-Bold/desib___-webfont.eot');
	src: local('☺'), url('Designers-Bold/desib___-webfont.woff') format('woff'), url('Designers-Bold/desib___-webfont.ttf') format('truetype'), url('Designers-Bold/desib___-webfont.svg#webfontFBu2Lobz') format('svg');
	font-weight: normal;
	font-style: normal;
}

html, body {
  margin: 0 0 0 0; padding: 0 0 0 0;
  -webkit-text-size-adjust: none;
}

body {
  background-image: url(GreyBacking.png);
  padding: 0 0 0 0;
  color: white;
}

#navigation {
  position: fixed;
  height: 28px;
  width: 100%;
  background-image: url('NavigationBar.png');
  background-position: center center;
  -webkit-box-shadow: 0px 2px 2px black;
  -moz-box-shadow: 0px 2px 2px black;
  box-shadow: 0px 2px 2px black;
  z-index: 100;
}

#navigation .button { width: 22px; height: 23px; margin: 2px 4px; cursor: pointer; color: transparent; }
#navigation #button-left { background-image: url('ButtonLeft.png'); float: left; }
#navigation #button-right { background-image: url('ButtonRight.png'); float: right; }

#navigation #path {
  font-weight: normal;
  font-style: normal;
  line-height: 14px;
  font-family: 'DesigersBold', sans-serif;
  text-align: center;
  font-size: 16px;
}

#navigation #path a {
  color: #47151F;
  text-decoration: none;
  line-height: 28px;
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.23);
  vertical-align: middle;
}

#navigation #path a:not([href]) { cursor: default; }

#navigation #path b {
  color: transparent;
  background-image: url(SubSection.png);
  display: inline-block;
  width: 30px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: default;
  vertical-align: middle;
}

#content.browser {
  padding: 68px 40px 40px 40px;
  text-align: center;
}

#content .group {
  display: inline-block;
  width: 300px;
  text-align: center;
  margin: 10px 10px 0 10px;
  outline: 0;
  text-decoration: none;
}

#content a.group { cursor: default; }
#content a.group * { cursor: pointer; }

#content .group.single {
  width: 120px; font-size: 0.8em;
}

#content .group img {
  /*border: 5px solid white;*/
  padding: 5px 5px 5px 5px;
  background-color: white;
  -webkit-box-shadow: 0px 1px 4px rgba(0,0,0, 0.3);
  -moz-box-shadow: 0px 1px 4px rgba(0,0,0, 0.3);
  box-shadow: 0px 1px 4px rgba(0,0,0, 0.3);
  margin-right: -35px;
  margin-left: -35px;
  vertical-align: middle;
  z-index: 50;
  border: 0;
}

#content .group .namebox {
  display: block;
  text-align: center;
  margin-top: 20px;
  
  cursor: default;
  font-weight: bold;
  height: 1em;
  white-space: nowrap;
  text-shadow: 0px 0px 1px rgba(0,0,0, 0.5);
  opacity: 0;
  -webkit-transition: opacity 0.1s linear;
  -moz-transition: opacity 0.1s linear;
  transition: opacity 0.1s linear;
}

#content .group .name {
  display: inline-block;
  background-color: rgba(255,255,255, 0.25);
  -webkit-border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  -opera-border-radius: 0.5em;
  border-radius: 0.5em;
  color: white;
  padding: 0 0.8em 0 0.8em;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

#content .group:hover .namebox { opacity: 1; }

@media handheld, -moz-touch-enabled, touch-enabled, only screen and (max-device-width:480px) {
  body { -webkit-transform: translateZ(0); /* working around iPhone Buggyness */ }
  #content .group .namebox { opacity: 1; }
}

@media (max-width:720px) {
  #navigation #path { font-size: 12px; }
  #navigation #path a { }
  #navigation #path b { width: 10px; }
  #content.browser { padding: 33px 5px 5px 5px; }
  #content .group:not(.single) { }
  #content .group.single { width: 120px; height: 180px; }
  #content .display.video video { width: 100%; height: auto; }
}

#content {
  -webkit-transition: -webkit-transform 0.1s ease-out;
  -moz-transition: -moz-transform 0.1s ease-out;
  transition: transform 0.1s ease-out;
}

#content .display {
  padding-top: 28px;
  width: 100%;
  height: 100%;
}

#content .display.image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto 0 auto;
  image-rendering: optimizeQuality;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: 28px;
}

#content .display.video video {
  display: block;
  margin: 0 auto 10px auto;
  background-color: black;
  width: 100%;
  max-width: 640px;
  max-height: 480px;
  min-width: 100px;
  min-height: 100px;
}

#content .caption { text-align: center; }
#content .caption span { display: none; }
#content .caption a {
  font-weight: normal;
  font-style: normal;
  line-height:normal;
  font-family: 'DesigersBold', sans-serif;
  text-align: center;
  font-size: 16px;
  color: white;
  text-decoration: none;
}


html, body { height: 100%; }
#content:not(.zoom) .display:not(.video) { position: fixed; top: 0; bottom: 0; left: 0; right: 0; }

/* supports tap to zoom on iPhone */
#content.zoom .display.image img { max-height: none; }

