html {
  font-size: 100%;
  -ms-text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
  cursor: default;
  background-color: black;
  color: white;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  text-align: center;
  font-family: 'Kanit', sans-serif;
  font-weight: normal;
  font-style: normal;
  touch-action: none;
}

.hidden { display: none!important; }

.mobile-only, #rotate-device-layer { display: none; }

a {
  text-decoration: none;
  color: white;
}
.clickable {
  cursor: pointer;
  z-index: 10;
}

.fullview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.middlescreen {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  -moz-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  -o-transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

/* z-indexes: splash on top of everything, then UI, then pano */
#splash { z-index: 100; }
#wrap   { z-index: 10; }
#pano   { z-index: 1; }

/* let mouse events bubble down to the pano */
#wrap   { pointer-events: none; }
#wrap * { pointer-events: auto; }

header {
  position: absolute;
  top: 3.125vw;
  left: 3.125vw;
  height: 7vw;
}
header, .secondary-logo { margin: 0; }
header img, .secondary-logo img { height: 100%; max-height: 88px; }

.secondary-logo {
  position: absolute;
  top: 3.125vw;
  right: 3.125vw;
  height: 7vw;
}

#social-wrap {
  position: absolute;
  bottom: 60vh;
  right: 0;
}
.social-btn:not(:first-of-type) { margin-top: 10px; }
.social-btn {
  width: 6vh;
  height: 6vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
#facebook { background-image: url("../images/facebook-icon.png"); }
#twitter  { background-image: url("../images/twitter-icon.png"); }

.pano-btn {
  width: 5vh;
  height: 8vh;
  border: 1px solid white;
  background-color: rgba(0, 83, 160, 1.0);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}
.pano-btn:hover { background-color: rgba(0, 83, 160, 1.0); }
#prev-pano-btn {
  left: 0;
  border-left: 0;
  background-image: url("../images/prev-icon.png");
}
#next-pano-btn {
  right: 0;
  border-right: 0;
  background-image: url("../images/next-icon.png");
}

#version-switch {
  display: none;
  position: absolute;
  right: 32px;
  bottom: 100px;
  font-weight: bold;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 1);
}

footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 84px;
  background-color: rgba(0, 83, 160, 1.0);
}
.round-btn {
  border: 2px white solid;
  border-radius: 50%;
  background-color: rgba(0, 83, 160, 0.0);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
}
.round-btn:hover { background-color: rgba(0, 83, 160, 1.0); }
/*#credits {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 4px;
  font-size: 10px;
}*/

#credits a::after {
  content: "360° Virtual Tour \A created by Pan 3Sixty";
  white-space: pre;
}

#credits, #current-pano {
  position: absolute;
  bottom: 12px;
  height: 36px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1em;
/*font-weight: bold;*/
}
#current-pano { left: 32px; }
#credits { right: 32px; }
#info-btn, #navigate-btn {
  height: 36px;
  width: 36px;
  background-color: rgba(0, 0, 0, 0.0);
  background-position: center;
  background-repeat: no-repeat;
}
#info-btn {
  margin-right: 12px;
  background-size: 50%;
}
#navigate-btn {
  margin-left: 12px;
  background-size: cover;
}
#info-btn     { background-image: url("../images/info-icon.png"); }
#navigate-btn { background-image: url("../images/thumbs-icon.png"); }
#controls-wrap {
  display: inline-flex;
  flex-wrap: wrap-reverse;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  width: 680px;
  height: 52px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
@media only screen and (max-width: 1190px) {
  .audio #in, .audio #out { display: none; }
}
@media only screen and (max-width: 1080px) {
  #in, #out { display: none; }
  .audio #full, .audio #toggle-hotspots { display: none; }
}
@media only screen and (max-width: 960px) {
  #full, #toggle-hotspots { display: none; }
}

.control {
  height: 48px;
  width: 48px;
  margin-left: 5px;
  margin-right: 5px;
}
#left             { background-image: url("../images/left-icon.png"); }
#right            { background-image: url("../images/right-icon.png"); }
#up               { background-image: url("../images/up-icon.png"); }
#down             { background-image: url("../images/down-icon.png"); }
#in               { background-image: url("../images/in-icon.png"); }
#out              { background-image: url("../images/out-icon.png"); }
#full             { background-image: url("../images/full-icon.png"); }
#toggle-hotspots  { background-image: url("../images/info-icon.png");}
#play-pause, #play-pause-mobile {
  background-image: url("../images/pause-icon.png");
  background-size: 60%;
}
#rewind, #rewind-mobile {
  background-image: url("../images/rewind-icon.png");
  background-size: 66%;
  background-position-y: 48%;
}
#hide-hotspots {
  height: 100%;
  background-image: url("../images/slash.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80%;
}

#hotspot-info-container,
#about-container {
  position: absolute;
  right: 55%;
  width: 40vh;
  max-width: 100%;
  height: 60vh;
  top: 20vh;
  background-color: rgba(0, 83, 160, 1.0);
  box-sizing: border-box;
  text-align: left;
}
#about-container {
  right: 50%;
  transform: translate(50%, 0%);
  -moz-transform: translate(50%, 0%);
  -ms-transform: translate(50%, 0%);
  -o-transform: translate(50%, 0%);
  -webkit-transform: translate(50%, 0%);
}

#hotspot-info-content,
#about-content {
  position: relative;
  top: 22.5%;
  width: 82%;
  left: 9%;
}

.hotspot-info-logo-jewson, .hotspot-info-logo-gobain{
  position: absolute;
  top: 16px;
}

.hotspot-info-logo-jewson {
  left: 4%;
  width: 36%;
  margin-top: 1%;
}
.hotspot-info-logo-gobain {
  right: 4%;
  width: 27%;
}

#hotspot-info-container h2,
#about-container h2 { font-size: 2.5vh; margin: 0 0 1vh 0; }

#hotspot-info-container a,
#hotspot-info-container p,
#about-container p,
#hotspot-info-container li { font-size: 1.6vh; margin: 1vh 0; }
ul { padding-left: 0.8rem; }
li { margin-bottom: 0.6rem; }

#hotspot-info-close-btn, #about-close-btn {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translate(-50%, 0%);
  -moz-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  -o-transform: translate(-50%, 0%);
  -webkit-transform: translate(-50%, 0%);
  outline: none;
  text-decoration: none;
  border: 3px solid #fedc23;
  padding: 4px 12px;
}

.hotspot-info-logo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22.5%;
  background-image: url('../images/hotspot-info-header.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.vr-button {
  display: none;
  width: 48px;
  height: 48px;
  background-image: url('../images/vr-icon-256.png');
  position: absolute;
  right: 18px;
  bottom: 72px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#rotate-device-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0054a1;
  z-index: 10000;
  text-align: center;
}

#rotate-device-layer h1 {
  position: absolute;
  left: 0;
  top: 6vmin;
  width: 100%;
  font-size: 6vmin;
}

#rotate-device-layer p {
  position: absolute;
  left: 0;
  bottom: 6vmin;
  width: 100%;
  font-size: 4vmin;
}

.rotate-device-icon {
  position: absolute;
  top: 20%;
  height: 60%;
  width: 100%;
}