body {
  margin: 0px;
  overflow: hidden;
  background: #111;
  font-family: 'flamabook';
}

canvas{
  width:100%;
  height:100%;
}

#log{
  position: fixed;
  top: 80px;
  left: 0;
  z-index: 10000;
  font-size:18px;
  color:#fff;
}

#arena {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity:0;
}

#optionsBar{
  width:100%; height: 70px;
  /*background:#fff;*/
  position: fixed;
  top:-60px;
  /*box-shadow: 0px 3px 4px rgba(0,0,0,0.2);*/
  z-index:10;

/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+6,000000+100&amp;0.7+6,0+100 */
background: -moz-linear-gradient(top,  rgba(0,0,0,0.7) 6%, rgba(0,0,0,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(6%,rgba(0,0,0,0.7)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(0,0,0,0.7) 6%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(0,0,0,0.7) 6%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(0,0,0,0.7) 6%,rgba(0,0,0,0) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(0,0,0,0.7) 6%,rgba(0,0,0,0) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */

}

.logo-estadao {
    font-family: 'Marcas Estadão';
    position: relative;
    display:block; width: 150px;
    float: left;
    margin-left: 1rem;
    margin-top:20px;
    font-size: 2rem;
    color: #fff;/*rgba(255, 255, 255, 0.9);*/
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.logo-estadao::before {
    content: "";
}



#point_0, #point_1, #point_2, #point_3, #closeBt {
  cursor: pointer;
}

#iconTouch, #iconDevice, #iconCardboard{
  /*position: fixed;*/
  display:block; float: right;
  width: 45px; height: 45px;
  margin: 30px 20px 0 0;
  background: #fff url("../img/icon-touch-device.svg?j1") no-repeat left top;
  background-size: 300% auto;
  overflow: visible;
  z-index: 900;
  border-left:1px solid #dedede;
  border:1px solid #fff;
  border-radius: 4px;
}
#iconDevice{
  background-position: -45px top;
  top: 75px;
  /*border-right:none;*/
}
#iconCardboard{
  background-position: -90px top;
  top: 75px;
  /*border-right:none;*/
}
#iconTouch, #iconDevice{
    margin-right: 3px;
}
span.description{
  display:block;
  position: absolute;
  right:100px; margin-top:0px;
  white-space: nowrap;
  background: rgba(255,255,255,0.8);
  padding:5px 10px;
  border-radius:3px;
  font-size: 0.8rem;
  overflow: hidden;
  text-transform: uppercase;
  color: #333;
  letter-spacing: 0.02em;

  transform: translate(-10px, 0);
  -moz-transform: translate(-10px, 0);
  -webkit-transform: translate(-10px, 0);
}
span.description.barTitle{
  float: right;
  margin: 42px 70px 0 0;
  
  background: rgba(255, 255, 255,0.7);
  border-radius: 3px;
  padding:5px 10px;
}

#iconTouch.selected{
  background-color: #f2f2f2;
  background-position: left bottom;
  border:1px solid #e88756;
}
#iconDevice.selected{
  background-color: #f2f2f2;
  background-position: -45px bottom;
  border:1px solid #e88756;
}

#iconCardboard.selected{
  background-color: #f2f2f2;
  background-position: -90px bottom;
  border:1px solid #e88756;
}


#sectorsOverlay{
  /*background: rgba(255,255,255,0.75);*/
  background: rgba(0,0,0,0.75);
  width: 100%; height: 100%;
  position: fixed;
  z-index: 100;
  display:none;
}
#sectorsOverlay .content{
  width: 100%; height:100%;
  margin-top:70px;
  max-height: calc(100% - 70px);
  max-width: 500px;
  margin: 0;
  position: relative;
  top:50%; left:50%;

  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
#sectorsOverlay .content svg{
  width: 100%; height:120%;
}

#screenOverlay{
  background: rgba(255,255,255,0.95);
  width: 100%; height: 100%;
  position: fixed;
  z-index: 1000;
  display:none;
}

#sectorsButton{
  position: fixed;
  display:block;
  width: 75px; height: 55px;
  bottom:20px; right: 20px;
  background: url("../img/icon-sectors.svg?d1") no-repeat left center;
  background-size: 60% auto;
  overflow: visible;
  z-index: 1;
}
#backButton{
  width: 16px;
  height:16px;
  display:block;
  position: fixed;
  right: 10px; top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.7);
  border-radius:5px;
  border: 1px solid #000;
  overflow:visible;
}

#sectorsButton span.description{
  right:80px; top:15px;
}

#screenOverlay .message{
  width: 100%;
  max-width: 500px;
  position: relative;
  left: 50%; top: 50%;
  text-align: center;
  font-size: 1rem;
  color:#999;
  font-family: 'flamabook';

  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
#screenOverlay .message .rotateIcon{
  max-width: 100px;

}
#screenOverlay .message h3{
  font-family: 'flamabold';
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0.5rem 0;
  color:#555;
}

#loaderOverlay{
  position: relative;
  background: rgba(0,0,0,0.85);
  width: 100%; height: 100%;
  position: fixed;
  z-index: 998;
  text-align: center;
}
#titleImg{
  display:block;
  position: fixed;
  width: 100%; height: auto;
  max-width: 760px;
  left: 50%; top: 40%;
  z-index: 999;

  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}


#cardboardOverlay{
  background: rgba(0,0,0,0.85);
  width: 100%; height: 100%;
  position: fixed;
  z-index: 998;
  text-align: center;
}

#cardboardOverlay .message, #loaderOverlay .message{
  width: calc(100% - 40px); 
  max-width: 550px;
  position: relative;
  color: #999;
  font-family: 'flamaultralight';
  font-size: 1.15rem;
  line-height: 1.4;
  left: 50%; top: 50%;
  padding: 15px 0 0 0;

  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
#loaderOverlay .message{
  top: 55%;
  transform: translate(-50%, 0);
  -moz-transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}
#cardboardOverlay .message img{
  width: 75%;
  display:block;
  margin: 0 auto;
  clear:both;
}
#cardboardOverlay .message h3{
  width: 100%;
  text-align: center;
  position: relative;
  color: #dedede;
  font-family: 'flamaultralight';
  font-size: 2.1rem; line-height: 2.4rem;
  text-transform: uppercase;
  margin: 1.5rem 0;
}
#btCardboard{
  font-size: 2.3rem; line-height: 3rem;
  text-transform: uppercase;
  background: rgba(255,255,255,0.6);
  border-radius:5px;
  padding: 8px 10px;
  font-size: 1.2rem; line-height: 1.4em;
  color: #333;
  margin-top:1.5rem;
  font-family: 'flamabook';
  clear: both;
  display:inline-block; width: 6em;
}

.loader {
  top: 55%;
  margin: 40px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 0.4em solid rgba(255, 255, 255, 0.1);
  border-right: 0.4em solid rgba(255, 255, 255, 0.1);
  border-bottom: 0.4em solid rgba(255, 255, 255, 0.1);
  border-left: 0.4em solid  #f1a280;
  -webkit-transform: translateZ(0) translateY(-50%);
  -ms-transform: translateZ(0) translateY(-50%);
  transform: translateZ(0) translateY(-50%);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
.loader,
.loader:after {
  border-radius: 50%;
  width: 8em;
  height: 8em;
}

@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 870px) {
  body{
    font-size: 0.8em;
  }
  .logo-estadao {
      font-family: 'Marcas Estadão';
      position: relative;
      display:block; width: 90px;
      float: left;
      margin-left: 1rem;
      margin-top:10px;
      font-size: 1.5rem;
      color: rgba(255, 255, 255, 0.7);
  }
  #iconTouch, #iconDevice, #iconCardboard{
    width: 30px; height: 30px;
    margin: 10px 10px 0 0;
  }
  #iconTouch, #iconDevice {
    margin-right: 3px;
  }
  #iconDevice{
    background-position: -30px top;
  }
  #iconCardboard{
    background-position: -60px top;
  }
  #iconTouch, #iconDevice{
      margin-right: 3px;
  }

  #iconTouch.selected{
    background-position: left bottom;
  }
  #iconDevice.selected{
    background-position: -30px bottom;
  }
  #iconCardboard.selected{
    background-position: -60px bottom;
  }
  span.description{
    font-size: 0.6em;
  }
  #sectorsOverlay .content{
    max-height: calc(100% - 40px);
  }
  span.description.barTitle{
    float: right;
    clear:both;
    margin: 55px 5px 0 0;

    transform: translateX(95px);
  }

  #cardboardOverlay .message img{
    width: 50%;
  }
  #cardboardOverlay .message h3{
    font-size: 1.6rem; line-height: 1.8rem;
  }
  #cardboardOverlay .message, #loaderOverlay .message{
    font-size: 1.1rem;
    top: 56%;
  }

}

@media screen and (max-height: 680px) {
  body{
    font-size: 0.8em;
  }
  #cardboardOverlay .message{
    font-size: 1rem;
    line-height: 1.4rem;
    max-width:300px;
  }
  #cardboardOverlay .message img{
    width: 160px;
  }
  #loaderOverlay .message{
    font-size: 1.1rem;
    top: 56%;
  }
}

@media screen and (min-height: 680px) {
  #cardboardOverlay .message, #loaderOverlay .message{
    font-size: 1.5rem;
    top: 48%;
  }
}
