::-webkit-scrollbar { 
  background-color: rgba(0,0,0,0); 
  width:5px; 
}
::-webkit-scrollbar-thumb { 
  background-color: rgba(200,200,200,0.7); 
  border-radius: 2px;
}

* {
  box-sizing: border-box;
}

html, body, main, section.full {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Oswald', 'Roboto', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: #000;
}

h3 {
  letter-spacing: 1px;
}

a, a:visited {
  color: #fff;
}

main {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all 0.25s ease-in-out;
          transition: all 0.25s ease-in-out;
}

footer {
  position: fixed;
  bottom: 0;
  color: #fff;
  font-size: 11px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px;
  width: 100%;
  z-index: 3;
  background: -webkit-linear-gradient(bottom, rgba(0,0,0,0.2), rgba(0,0,0,0));
}

footer img {
  width: 50px;
  margin-left: 5px;
  transition: box-shadow 0.3s ease-out;
}
footer img:hover {
  box-shadow: 0 0 25px 5px #fff;
}
section.background {
  position: fixed;
  top: 0;
  left: 0;
  cursor: -webkit-grab;
  cursor: grab;
}

section.background.mousedown {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

section.content {
  width: 100%;
  z-index: 1;
}

section.title, section.example, section.documentation, section.support {
  position: absolute;
  width: 100%;
  max-width: 1000px;
  padding: 20px;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  max-height: 80%;
  color: #fff;
  margin: auto;
  left: 0;
  right: 0;
  -webkit-transition: opacity 0.5s ease-out;
          transition: opacity 0.5s ease-out;
}

section.example, section.documentation {
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

section.title, section.support {
  text-align: center;
  font-size: 72px;
  font-weight: 300;
  pointer-events: none;
  letter-spacing: 2px;
}

section.documentation {
  background-color: rgba(0,0,0,0.1);
  box-shadow: 0 0 50px rgba(0,0,0,0.2);
}

section.example {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
}

section.title header, section.title article,
section.support header, section.support article{
  -webkit-transition: all 0.5s ease-out;
          transition: all 0.5s ease-out;
}

section.title.hide header, section.title.hide article,
section.support.hide header, section.support.hide article {
  -webkit-transform: translateY(-30px);
      -ms-transform: translateY(-30px);
          transform: translateY(-30px);
}

section.title.hide, section.example.hide, section.documentation.hide, section.support.hide {
  opacity: 0;
  filter: alpha(opacity=0);
  pointer-events: none;
  z-index: -1;
  display: none;
}

section.support {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.support a{
  pointer-events: auto;
  display: inline-block;
}

section.support a img {
  border: 3px solid #fff;
  border-radius: 3px;
}

section.support article {
  margin: 0 0 30px 0;
  max-width: 430px;
}

section.support .link {
  font-size: 12pt;
}

section.support .button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-image: url('../dist/papillon.png');
  background-size: cover;
  background-position: center;
  transition: box-shadow 0.3s ease-out;
  margin: 0 auto 20px auto;
}

section.support .button:hover {
  box-shadow: 0 0 25px 5px #fff;
}

article {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
}

nav {
  position: fixed;
  top: 0;
  color: #fff;
  list-style: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  width: 100%;
  padding: 20px;
  background: -webkit-linear-gradient(top, rgba(0,0,0,0.2), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 3;
}

li.item {
  margin: 20px;
  text-transform: uppercase;
  cursor: pointer;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  pointer-events: visible;
}

li.item.selected:after {
  -webkit-transform: scaleX(1);
      -ms-transform: scaleX(1);
          transform: scaleX(1);

}

li.item:after {
  content: '';
  background-color:rgba(255,255,255,0.9);
  width: 100%;
  height: 1px;
  margin-top: 5px;
  float: left;
  -webkit-transform: scaleX(0);
      -ms-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transition: -webkit-transform 0.2s ease;
          transition: transform 0.2s ease;
}

li.item:hover:after {
  -webkit-transform: scaleX(1);
      -ms-transform: scaleX(1);
          transform: scaleX(1);
}

nav a, nav a:visited {
 text-decoration: none;
 color: #fff; 
}

iframe {
  margin-top: 0.5em;
  border: none;
  width: 100%;
  height: 300px;
}

figure {
  background-size: cover;
  background-position: center -40px;
  background-repeat: no-repeat;
  margin: 0;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -webkit-flex-basis: 250px;
      -ms-flex-preferred-size: 250px;
          flex-basis: 250px;
  height: 300px;
}

figcaption {
  width: 100%;
  background: #fff;
  position: absolute;
  bottom: 0;
  color: #444;
  padding: 15px;
  text-align: left;
}

figcaption > h4 {
  margin: 0;
  text-transform: uppercase;
}

figcaption > article {
  margin-top: 7px;
  letter-spacing: 0;
  font-size: 13px;
}

.card {
  border-radius: 2px;
  cursor: pointer;
  margin: 1em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  -webkit-transition: all 0.2s ease-in-out;
          transition: all 0.2s ease-in-out;
}

.card:hover {

}

.card.image{
  background-image: url( '../images/panorama_image.png' );
}
.card.cube{
  background-image: url( '../images/panorama_cube.png' );
}
.card.basic{
  background-image: url( '../images/panorama_basic.png' );
}
.card.gsv{
  background-image: url( '../images/panorama_googlestreetview.png' );
}
.card.video{
  background-image: url( '../images/panorama_video.png' );
}
.card.infospot{
  background-image: url( '../images/panorama_infospot.png' );
}
.card.infospot-focus{
  background-image: url( '../images/panorama_infospot_focus.png' );
}
.card.linking{
  background-image: url( '../images/panorama_link.png' );
}
.card.loading{
  background-image: url( '../images/panorama_loading_progress.png' );
}
.card.gallery{
  background-image: url( '../images/panorama_simple_gallery.png' );
}
.card.lp-image{
  background-image: url( '../images/littleplanet_image.png' );
}
.card.reticle{
  background-image: url( '../images/panorama_reticle_event.png' );
}
.card.ui{
  background-image: url( '../images/panorama_ui.png' );
}
.card.interactive{
  background-image: url( '../images/panorama_interactive.png' );
}
.card.memory{
  background-image: url( '../images/panorama_memorytest.png' );
}
.card.storytelling{
  background-image: url( '../images/panorama_storytelling.png' );
}
.card.xdiamond{
  background-image: url( '../images/XDiamond.png' );
}
.card.panotheater{
  background-image: url( '../images/PanoTheater.png' );
}

.menu-icon{
  width: 60px;
  height: 45px;
  position: relative;
  margin: 50px auto;
  -webkit-transform: rotate(0deg) scale(0.4);
  -ms-transform: rotate(0deg) scale(0.4);
      transform: rotate(0deg) scale(0.4);
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
  position: fixed;
  top: 0;
  right: 0;
  margin: 20px;
  z-index: 4;
  display: none;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ddd;
  border-radius: 2px;
  opacity: 1;
  filter: alpha(opacity=100);
  left: 0;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
      transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
      transform-origin: left center;
}

.menu-icon span:nth-child(2) {
  top: 18px;
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
      transform-origin: left center;
}

.menu-icon span:nth-child(3) {
  top: 36px;
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
      transform-origin: left center;
}

.menu-icon.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
      transform: rotate(45deg);
  top: -3px;
  left: 8px;
}

.menu-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
  filter: alpha(opacity=0);
}

.menu-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
  top: 39px;
  left: 8px;
}

#progress {
  width: 0;
  height: 5px;
  position: fixed;
  top: 0;
  background: #fff;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
  z-index: 99999;
}

#progress.finish {
  opacity: 0;
}

@media screen and (max-width: 500px) {
  section.title, section.example, section.documentation {
    max-height: 100%;
  }
  section.title header {
    font-size: 50px;
  }
  section.title article {
    font-size: 13px;
  }
  section.support article {
    max-width: 300px;
  }
  nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
    -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
            transform: translateY(-100%);
    background: #fff;
    color: #444;
  }
  nav.animated {
    -webkit-transition: all 0.25s ease-in-out;
            transition: all 0.25s ease-in-out;
  }
  nav.open {
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
    pointer-events: auto;
  }
  nav a, nav a:visited {
    color: #444;
  }
  li.item:after {
    background-color: #444;
  }
  .menu-icon {
    margin: 20px 0;
    display: block;
  }
  .menu-icon.open span {
    background: #444;
  }
}