/* ==========================================================================
   Generic page styles
   ========================================================================== */

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html,
body {
  background-color: #171717;
  font-family: Arial, Helvetica, sans-serif;
  height: 100%;
  overflow: hidden;
  width: 100%;
}
h1 {
  color: #3e3e3e;
  font-size: 22px;
  font-weight: 400;
}
h2 {
  font-size: 20px;
  font-weight: normal;
  margin: 5px 0 30px 0;
  color: #000;
}
a {
  text-decoration: none;
}
svg {
  display: block;
  max-height: 100%;
  width: 100%;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.clear {
  clear: both;
}


#welcome-screen {
  background-color: #fff;
  /*height: 400px;*/
  left: 0;
  margin: 0 auto;
  max-width: 720px;
  padding: 60px;
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 96%;
}

#welcome-title {
  padding-right: 10px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 44%;
}
#welcome-title h1 span {
  display: block;
}

#welcome-text {
  border-left: 1px solid #ddd;
  float: right;
  position: relative;
  width: 50%;
  padding: 8% 0 8% 40px;
}
#welcome-text p {
  margin-bottom: 20px;
  color: #555;
}

#start-tour {
  color: #00275d;
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  -webkit-transition: color .2s;
  transition: color .2s;
}
#start-tour:hover {
  color: #3e3e3e;
}

.floorplan-outer {
  background: #fff;
  border-color: #000;
  border-style: solid;
  border-width: 1px 1px 1px 0;
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translate(-100%, -50%);
          transform: translate(-100%, -50%);
  /*width: 340px;*/
  z-index: 2;

  opacity: 0;
  visibility: hidden;
}
.floorplan-outer.open {
  -webkit-transform: translate(0%, -50%);
          transform: translate(0%, -50%);
}

.floorplan-container {
  background: #fff;
  /*position: relative;*/
  z-index: 5;
}

.floorplan-inner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: none;
  height: 300px;
  margin: 8px;
  position: relative;
  width: 250px;
}

.floorplan-inner.show {
  display: block;
}

.fp-switch-container {
  background-color: #fff;
  border-color: #000;
  border-style: solid;
  border-width: 1px 1px 1px 0;
  left: 100%;
  margin-left: 1px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  z-index: -1;
}
.fp-switch {
  background: #053776 url(../local/images/gui/floor-icon.svg) center no-repeat;
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: 100;
  height: 40px;
  line-height: 44px;
  margin: 8px 6px;
  text-align: center;
  -webkit-transition: all .6s;
  transition: all .6s;
  width: 40px;
}
.fp-switch:hover,
.fp-switch.active {
  background-color: #f37226;
}

.camera-icon {
  display: block;
  height: 32px;
  position: absolute;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 32px;
  z-index: 10;
}


.camera-icon svg:hover {
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  /*transform: scale(1.1);*/
}

.camera-icon svg .b {
  fill: #053776;
  -webkit-transition: fill .2s ease;
  transition: fill .2s ease;
}

.camera-icon.visited svg .b {
  fill: #999;
}

.camera-icon.active svg .b,
.camera-icon.visited.active svg .b {
  fill: #f37226;
}

.camera-label {
  background-color: #053776;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  left: 0;
  margin-top: -16px;
  opacity: 0;
  padding: 5px 20px;
  position: absolute;
  top: 0;
  -webkit-transform: translate(-50%, -100%);
          transform: translate(-50%, -100%);
  -webkit-transition: opacity .2s, visibility 0s ease .2s;
  transition: opacity .2s, visibility 0s ease .2s;
  visibility: hidden;
  white-space: nowrap;
  z-index: 15;
}
.label-after {
  border-width: 6px 6px 0;
  border-color: #00275d transparent transparent;
  border-style: solid;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
}
.camera-label:hover,
.camera-label.hovered {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity .2s, visibility 0s ease 0s;
  transition: opacity .2s, visibility 0s ease 0s;
}

.fov-radar {
background: -webkit-linear-gradient(-45deg, #053776 0%,rgba(255,255,255,0) 50%); /* Chrome10-25,Safari5.1-6 */
background: -webkit-linear-gradient(315deg, #053776 0%,rgba(255,255,255,0) 50%);
background: linear-gradient(135deg, #053776 0%,rgba(255,255,255,0) 50%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  height: 60px;
  position: absolute;
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
  width: 60px;
}


.close-button {
  background-color: #053776;
  color: #fff;
  display: block;
  height: 20px;
  width: 100%;
  height: 40px;
  /*border-bottom: 1px solid #ddd;*/
}
.close-button span {
  display: inline-block;
  line-height: 40px;
  font-size: 16px;
  padding: 0 20px;
}
.close-button svg {
  fill: #fff;
  float: right;
  width: 40px;
  padding: 12px;
  /*border-left: 1px solid #ddd;*/
}

.open-button {
  background-color: #053776;
  color: #fff;
  font-size: 16px;
  left: 0;
  line-height: 1;
  margin: 70px 0 0 20px;
  opacity: 0;
  padding: 12px 20px;
  position: absolute;
  top: 50%;
  -webkit-transform-origin: left;
          transform-origin: left;
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
  -webkit-transition: all .2s;
  transition: all .2s;
}

.open-button:hover {
  background-color: #f37226;
}


.room-title {
  background: #053776;
  color: #fff;
  cursor: default;
  line-height:40px;
  opacity: 0;
  padding: 0 30px;
  position: absolute;
  right: 0;
  top: 0;
  visibility: hidden;
}


.welcome-active {
  /*filter: blur(5px);*/
}


.gui-container {
  bottom: 0;
  opacity: 0;
  padding: 0 0 10px;
  position: absolute;
  right: 0;
  visibility: hidden;
}


.gui-container.editor {
  bottom: 70px;
}

.button,
#help-screen .button {
  background-color: #053776;
  background-repeat: no-repeat;
  color: #fff;
  display: block;
  float: left;
  font-size: 16px;
  height: 60px;
  line-height: 1;
  margin-right: 10px;
  position: relative;
  text-align: center;
  -webkit-transition: color .4s, background-color .4s;
  transition: color .4s, background-color .4s;
  width: 60px
}
.button-gallery:hover,
.button-gallery.galleryOpen,
.gui-container .button:hover,
.button.enabled {
  background-color: #f37226;
  /*color: #fefefe;*/
}
.button.button-auto.disabled {}


.button.button-motion {
  font-size: 18px;
  left: 10px;
  position: absolute;
  top: 10px;
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  width: 120px;

  opacity: 0;
  visibility: hidden;
}

.editor .button {
  background-color: #00c496;
  color: #fff;
  font-size: 10px;
}

.button::after {
  left: 5px;
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.button.button-zoomout,
.button.button-zoomin,
.button.button-auto,
.button.button-gallery {
  background-image: url(../local/images/gui/icon-group-html.png);
}
.button.button-zoomout,
.button.button-zoomin {
  text-indent: -9999px;
}

.button.button-zoomout,
#help-screen .button.button-zoomout {
  background-position: 0 0;
}
.button.button-zoomin,
#help-screen .button.button-zoomin {
  background-position: -60px 0;
}
.button.button-auto,
#help-screen .button.button-auto {
  background-position: -120px 0;
}

.button-gallery {
  background-position: -180px 0;
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 10px;
  width: 180px;
  z-index: 10;

  opacity: 0;
  visibility: hidden;
}

/*.button.button-zoomout:hover {
  background-position: 0 -60px;
}
.button.button-zoomin:hover {
  background-position: -60px -60px;
}
.button.button-auto.disabled,
.button.button-auto:hover {
  background-position: -120px -60px;
}
.button.button-gallery.galleryOpen,
.button.button-gallery:hover {
  background-position: -180px -60px;
}*/

.button-motion::after {
  content: "Motion Control";
}
.button-fs::after {
  content: "full screen";
}
.button-fs.enabled::after {
  content: "small screen";
}
.button-zoomin::after {
  content: "Zoom In";
}

.button-zoomout::after {
  content: "Zoom Out";
}

.button-help::after {
  content: "help";
}

.button-panalign::after {
  content: "Pan Align";
}

.button-startpos::after {
  content: "Start Position";
}

.button.button-auto.disabled {
  background-color: rgba(40,40,40,0.5);
}
/*.button-auto::after {
  content: "Auto";
  top: 70%;
}*/
.button-gallery::after {
  content: "Photo Gallery";
  right: 45px;
}

.fs-close {
  background-color: #053776;
  fill: #fefefe;
  height: 40px;
  opacity: 0;
  padding: 10px;
  position: fixed;
  right: 10px;
  top: 60px;
  visibility: hidden;
  width: 40px;
}



#welcome-screen.hidden,
#help-screen.hidden {
  display: none;
}

#help-screen {
  background-color: rgba(62,62,62,0.4);
  color: #000;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  text-align: center;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: 10;
}
#help-inner {
  position: absolute;
  top: 50%;
  left: 0;
  margin: 0 auto;
  right: 0;
  -webkit-transform: translateY(-50%) scale(0.95);
          transform: translateY(-50%) scale(0.95);
  width: 94%;
  max-width: 700px;
}
#help-screen h1 {
  background-color: #f1f1ec;
  font-size: 30px;
  margin: 0 0 20px;
  padding: 15px 50px;
  text-align: center;
}
#help-screen h1 span {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}
#help-screen p {
  line-height: 1.35;
  font-size: 16px;
  min-height: 86px;
}
.diagrams {
  background-color: #f1f1ec;
  float: left;
  margin-bottom: 20px;
  padding: 20px;
  width: 31.333%;
}
.diagrams.dia2 {
  margin-left: 3%;
  margin-right: 3%;
}

.button-cont {
  margin-bottom: 10px;
}
#help-screen .button {
  display: inline-block;
  float: none;
}



.edit-status-outer {
  bottom: 5px;
  color: #b4b4b4;
  font-size: 10px;
  position: absolute;
  right: 5px;
  text-align: center;
  -webkit-transition: color .2s ease;
  transition: color .2s ease;
}

.edit-status-outer .set {
  color: #3f3f3f;
}



.placeholder {
  background-color: #fff;
  cursor: pointer;
}
.placeholderButton {
  background: #00c496;
  cursor: pointer;
  border: 3px solid #00c496;
  margin: auto;
  line-height: 50px;
  width: 300px;
  display: block;
    font-weight: 600;
  text-align: center;
  color: #fff;
  font-size: 26px;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
  margin: 0 0 0 -156px;
  left: 50%;
}
#tour-content p {
  width: 100%;
  margin: auto;
  text-align: center;
  background-color: #0094b3;
  display: block;
  color: #000;
  box-sizing: border-box;
}
#backTo360 {
  position: absolute;
  left: 5px;
  bottom: 5px;
  cursor: pointer;
  z-index: 9999;
  display: none;
}
#tour-content {
  margin-top:0px;
  margin-right:0px;
  margin-left:0px;
  height: 100%;
  overflow: hidden;
  width: 100%;
}
#container {
  background-color: #171717;
  height: 100%;
  -webkit-transition: -webkit-filter .2s ease;
  transition: -webkit-filter .2s ease;
  transition: filter .2s ease;
  transition: filter .2s ease, -webkit-filter .2s ease;
  width: 100%;
}
/* ==========================================================================
   EDITOR
   ========================================================================== */
.start-position {
  background:#f1f1f1;
  box-shadow:5px 0px 5px 0px rgba(50, 50, 50, 0.25);
  margin-left:-250px;
  padding: 12px 20px;
  position:absolute;
  top:0;
  left:50%;
  width:500px;
  z-index:99;
}

.start-position:after {
  content: attr(data-content);
  cursor: default;
  color: #c5c4c2;
  font-size: 30px;
  font-weight: 600;
  position: absolute;
  right: 10px;
  top: 4px;
}
/* ==========================================================================
   GALLERY
   ========================================================================== */
#gallery {
  height: 100%;
  left: 0;
  max-height: 100%;
  max-height: 100vh;
  max-width: 100%;
  max-width: 100vw;
  opacity: 0;
  position: fixed;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: 5;
}
/* ==========================================================================
   FORWARDER
   ========================================================================== */
#forwarder {
  background-color: #fff;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.forwardInner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  width: 400px;
  max-width: 90%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

#forwarder img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

#forwarder a {
  width: auto;
  display: inline-block;
  font-size: 20px;
  background-color: #053776;
  color: #fff;
  line-height: 2.5;
  padding: 0 20px;
}
/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
.touchevents .device-only {display: block !important;}
.touchevents .camera-label,
.touchevents .desktop-only {display: none !important;}

@media only screen and (max-width: 1400px) {
  .floorplan-inner {
    height: 240px;
    width: 200px;
  }
}


@media only screen and (max-width: 1024px) {
  .close-button {
    left: auto;
    height: 26px;
    padding: 7px;
    position: absolute;
    right: -13px;
    top: -13px;
    width: 26px;
  }
  .close-button span {
    display: none;
  }
  .close-button svg {
    float: none;
    height: 100%;
    padding: 0;
    width: 100%;
  }
  .floorplan-inner {
    height: 180px;
    width: 150px;
  }

  .camera-icon {
    height: 26px;
    width: 26px;
  }

  .gui-container {
    padding-bottom: 8px;
  }
  .button, #help-screen .button {
    font-size: 12px;
    height: 50px;
    margin-right: 8px;
    width: 50px;
    background-size: 300px auto;
  }
  .button.button-zoomin,
  #help-screen .button.button-zoomin {
    background-position: -50px 0;
  }
  .button.button-auto,
  #help-screen .button.button-auto {
    background-position: -100px 0;
  }
  .button-gallery {
    background-position: -150px 0;
    margin: 8px;
    width: 150px;
  }
  #help-screen p {
    font-size: 14px;
    min-height: 76px
  }
  .diagrams {
    min-height: 170px;
    padding: 14px;
  }
}
@media only screen and (min-width: 671px) and (max-width: 1024px) {
  .fp-switch {
    width: 30px;
    height: 30px;
    line-height: 34px;
    font-size: 17px;
    margin: 6px 4px
  }
  .camera-label {
    font-size: 12px;
    padding: 4px 12px;
  }
}
@media only screen and (max-width: 768px) {
  #welcome-screen {
    padding: 40px 30px;
  }
  #welcome-text {
    padding: 6% 0 6% 30px;
  }
  #welcome-title h1 span {
    display: inline;
  }

  #help-screen h1 {
    font-size: 30px;
    padding: 12px 32px;
  }
}
@media only screen and (max-width: 677px) {
  .device-only {display: block !important;}
  .desktop-only {display: none !important;}

  #welcome-screen {
    height: auto;
    left: 0;
    margin: 0 auto;
    padding: 40px 10%;
    right: 0;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 90%;
  }
  #welcome-title,
  #welcome-text {
    border: none;
    float: none;
    height: auto;
    padding: 0;
    position: static;
    -webkit-transform: none;
            transform: none;
    width: auto;
  }
  #welcome-title h1 {
    margin-bottom: 20px;
  }
  #welcome-text p {
    display: none;
  }



  .floorplan-outer,
  .floorplan-outer.open {
    border-width:0;
    height: 100%;
    left: 0;
    -webkit-transform: none !important;
            transform: none !important;
    width: 100%;
    top: 0;
  }
  .close-button {
    height: 42px;
    padding: 10px;
    right: 0;
    top: 0;
    width: 42px;
  }
  .fp-switch-container {
    border-width: 1px 0 0 1px;
    bottom: 1px;
    left: auto;
    right: 1px;
    top: auto;
    -webkit-transform: none !important;
            transform: none !important;
    z-index: 10;
  }
  .fp-switch {
    float: right;
    font-size: 22px;
    height: 40px;
    line-height: 46px;
    margin: 5px;
    width: 40px;
  }
  .floorplan-container {
    background: transparent;
    left: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
  .floorplan-inner {
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg);
    margin: 0 auto;

    height: 84vh;
    max-height: 84vw;
    max-width: 70vw;
    width: 70vh;
  }

  .camera-icon {
    -webkit-transform: translate(-50%, -50%) rotate(90deg);
            transform: translate(-50%, -50%) rotate(90deg);
  }
  .camera-label {
    display: none;
  }

}
@media only screen and (max-width: 360px) {
  #welcome-title h1 {
    font-size: 20px;
  }
  #start-tour {
    font-size: 20px;
  }
  .open-button {
    padding: 10px 15px;
    margin: 50px 0 0 18px;
  }
  .room-title {
    line-height: 40px;
    padding: 0 30px;
  }
}