#container, #container > canvas {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

/* BS Overrides */

.tooltip {
  font-size: 11px;
  font-weight: 700;
}

/* tooltip placement fixes */
#toolbar :first-child .tooltip-inner,
#toolbar :first-child.ng-hide + human-annotations .tooltip-inner {
  margin-left: 30px;
}

.objectTooltip { /* should be in engine */
  position: absolute;
  box-sizing: content-box;
  padding: 3px 5px 2px 5px;
  z-index: 55;
  white-space: nowrap;
  opacity: .65;
  background-color: #3d3d3d;
  height: 18px;
  width: auto;
  font-size: 11px;
  color: #fff;
  font-weight: 900;
  border: solid 1px #eee;
  border-radius: .50ex;
}

/*-------------------------
  Human UI
--------------------------*/

button {
  line-height: 10px;
}

.human-panel > * {
  float: left;
}

/* Camera */

#navigator {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 85px;
}

human-camera-zoom {
  position: absolute;
  bottom: 0;
}

/* Tools */

#toolbar {
  position: absolute;
  bottom: 10px;
  left: 0;
  clear: both;
  z-index: 1;
}

@media (max-width: 991px) {

  .info-enabled #toolbar {
    bottom: 75px;
  }

}

#toolbar > * {
  float: left;
  margin-left: 10px;
}

/* Dissect */

human-dissect {
  height: 30px;
}

/* Annotations */

human-annotations button.tool.on {
  background-color: transparent;
  border-color: transparent;
}

/* Human Load Progess */

human-load-progress.small {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  background-color: #fff;
  box-shadow: none;
  padding: 5px;
  border: 1px solid #efefef;
}

human-load-progress.small .progress-indicator {
  width: 30px;
  height: 30px;
  line-height: 30px;
  background-image: url('../img/circular_loader_small.gif');
}

human-load-progress.small .status-text {
  padding-top: 5px;
}

human-load-progress.small .status-text:after {
  display: block;
  content: 'Loading...'; /* override text */
  font-size: 10px;
  color: #79818d;
}

human-load-progress.small .status-text span {
  display: none;
}

/* Duplicate small class styles when <= 480px */
@media (max-width: 480px) {

  human-load-progress {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    background-color: #fff;
    box-shadow: none;
    padding: 5px;
    border: 1px solid #efefef;
  }

  human-load-progress .progress-indicator {
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-image: url('../img/circular_loader_small.gif');
  }

  human-load-progress .status-text {
    padding-top: 5px;
  }

  human-load-progress .status-text:after {
    display: block;
    content: 'Loading...'; /* override text */
    font-size: 10px;
    color: #79818d;
  }

  human-load-progress .status-text span {
    display: none;
  }

}

/* Timeline Components */

human-scrubber {
  position: absolute;
  bottom: 25px;
  left: 50%;
}

human-scrubber {
  margin-left: -240px;
}

human-play-pause {
  position: absolute;
  bottom: 25px;
  left: 50%;
  margin-left: -25px;
}

human-tour {
  position: absolute;
  width: 100%;
  bottom: 25px;
  pointer-events: none;
  text-align: center;
}

human-tour > div {
  display: inline-block;
  pointer-events: all;
}

@media (max-width: 991px) {

  .info-enabled human-scrubber, .info-enabled human-play-pause, .info-enabled human-tour {
    bottom: 85px;
  }

}

/* Scene Object Hierarchy */

object-tree {
  position: absolute;
  width: 300px;
  top: 125px;
  left: 10px;
  background-color: #242529;
  z-index: 100;
}

object-tree > human-tree {
  max-height: 400px;
  margin: 10px 5px;
}

/* Info Panel */

#info-panel {
  display: none;
}

.info-enabled #info-panel {
  display: block;
}

human-info-panel {
  right: 10px;
  top: 10px;
  box-sizing: border-box;
}

body.audio-enabled human-info-panel .title {
  padding-right: 30px; /* make room for audio button(s) */
}

@media (max-width: 991px) {

  #info-panel, human-info-panel {
    position: absolute;

    height: 60px;
    bottom: 0;
    width: 100%;
    max-width: 100%;

    -webkit-transition: height .25s;
            transition: height .25s;
  }

  #info-panel.open, #info-panel.open > human-info-panel {
    height: 210px;
  }

  #info-panel {
    background-color: #000;
    z-index: 1020;
  }

  #info-panel.open {
    max-height: 90%;
  }

  human-info-panel {
    top: auto;
    right: auto;

    line-height: 1.5em;
    padding: 15px 15px 0 15px;
    border-radius: 0;
  }

  human-info-panel .title {
    margin-top: 0px;
    font-size: 19px;
    line-height: 30px;
    margin-bottom: 10px;
    font-weight: 400;
    display: inline-block;
    border-bottom-color: transparent;
  }

  #info-panel.has-description > human-info-panel .title {
    margin-left: 30px;
  }

  human-info-panel .description {
    font-size: 14px;
    line-height: 21px;
    overflow-y: auto;
    display: none;
  }

  #info-panel.open > human-info-panel .description {
    display: block;
    height: 100px;
  }

  human-info-panel .description a {
  	color: #ddd;
  }

  human-info-panel .description a:hover {
  	color: #fff;
  }

  #info-panel > button {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 10px;
    height: 0;
    width: 0;
    border: 10px solid transparent;
    background-color: transparent;
    border-bottom-color: #fff;
    padding: 0;
    margin-right: 15px;
    cursor: pointer;
    outline: none;
    z-index: 1021;

    -webkit-transition: bottom .25s;
            transition: bottom .25s;
  }

  #info-panel.has-description > button {
    display: block;
  }

  #info-panel.open > button {
    bottom: 165px;
    border-top-color: #fff;
    border-bottom-color: transparent;
  }

}

/* Audio */

human-audio {
  position: absolute;
  right: 15px;
  top: 15px;
}

@media (max-width: 991px) {

  .info-enabled human-audio {
    right: 200px;
    top: 20px;
  }

}

button[mute-replay-audio] {
  display: block;
  height: 22px;
  width: 22px;
  padding: 0;
}

[mute-replay-audio]:after {
  position: absolute;
  top: 3px;
  background-position: -110px -128px;
}

[mute-replay-audio].muted:after {
  background-position: -110px -144px;
}

/* mute doubles as replay button */
[mute-replay-audio].ended:after {
  top: 4px;
  left: 4px;
  background-size: 266px 154px; /* replay button is a little large */
  height: 14px;
  width: 14px;
  background-position: -11px -14px !important;
}

/*-------------------------
  Widget Components
--------------------------*/

/* Keypress Toggle */

#keypress-toggle {
  opacity: .8;
}

#keypress-toggle:hover {
  opacity: 1;
  border-color: transparent;
}

/* Keypress Modal */

keypress-modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,.8);
  z-index: 2001;
}

keypress-modal.in {
  display: block;
}

keypress-modal .content {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: 600px;
  margin-top: 48px;
  position: relative;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
}

keypress-modal .header {
  height: 24px;
  padding: 0 10px;
  background-color: #3c4249;
}

keypress-modal .header:after {
  content: " ";
  display: table;
  clear: both;
}

keypress-modal .header > * {
  height: inherit;
  font-weight: 900;
  line-height: 24px;
  margin: 0;
  padding: 0;
}

keypress-modal .header > h1 {
  float: left;
  height: inherit;

}

keypress-modal .header > button {
  float: right;
  background: none;
  border: none;
  opacity: .75;
  cursor: pointer;
}

keypress-modal .header > button:hover {
  opacity: 1;
}

keypress-modal iframe {
  width: 100%;
  bottom: 0;
  overflow: auto;
  height: 576px;
}

/* Engine Fail Message */

fail-message {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 350px;
  margin-left: -175px;
  margin-top: -220px;
  text-align: center;
  padding: 10px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 5px;
  z-index: 1002;
}

body.fallback-tour fail-message {
	top: 10px;
	margin-top: 0;
}

fail-message.mobile {
  box-sizing: border-box;
  padding: 10px;
  margin-top: -50px;
  text-align: center;
  background-color: #000;
  z-index: 1002;
}

fail-message.mobile > a {
  color: #fff;
  text-decoration: none;
}

fail-message.mobile p {
  margin: 0 auto;
  margin-bottom: 5px;
}

.logo-image {
	width: 175px;
  height: 175px;
	background: url('../img/human-widget-logo-white-175x175.png');
	background-repeat: no-repeat;
	background-position: 0 0;
	display: inline-block;
	margin: 20px;
}

body.fallback-tour fail-message .logo-image {
	display: none;
}

.error-generic {
	font-size: 16px;
	color: #ddd;
	line-height: 25px;
}

body.fallback-tour fail-message .error-generic {
	font-size: 14px;
	line-height: 20px;
}

.error-details {
	line-height: 17px;
  font-size: 12px;
  color: #bbb;
  margin: 10px;
}

body.fallback-tour fail-message .error-details {
	display: none;
}

.error-details > p {
  margin-top: 5px;
}

.error-details b {
  font-weight: 900;
}

#webgl-message {
  position: absolute;
  font-size: 13px;
  z-index: 1002;
}

@media (max-width: 768px) {

	/* Only show icon badge when touring on smallest mobile devices */
	body.fallback-tour fail-message.mobile {
		background-color: transparent;
		border-color: transparent;
	}

	body.fallback-tour fail-message.mobile p {
		display: none;
	}

}

/* Image Container, Click to Interact Container */

#image-container,
#video-container,
#video-container > iframe,
click-container,
fallback-tour {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#video-container {
	background-color: #000;
}

body:not(.embedded) #video-container > iframe {
	/* Keep video above bottom info bar */
	box-sizing: border-box;
	padding-bottom: 60px;
}

#image-container {
	opacity: 1;
  z-index: 1001;

  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
}

body.fallback-tour #image-container, #image-container.has-content {
  background-color: #000;
}

html.touch #image-container.loading {
  opacity: .75;
}

html.touch #image-container.loading:after {
	content: '';
	position: absolute;
	margin-top: -8px;
	margin-left: -8px;
	left: 50%;
	top: 50%;
	height: 16px;
	width: 16px;
	background-image: url('../img/loader-transparent.gif');
}

#image-container.cover {
  -webkit-background-size: cover;
     -moz-background-size: cover;
       -o-background-size: cover;
          background-size: cover;
}

fail-message.mobile, click-container > button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  margin-left: -110px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  line-height: 30px;
}

click-container {
  z-index: 1002;
  background-color: transparent;
}

click-container > button {
  height: 40px;
  margin-top: -20px;
  background-color: rgba(0,0,0,0.75);
}

click-container > button:before {
  display: block;
  position: absolute;
  content: '';
  background-image: url('../img/human-widget-icons-20x20-white.png');
  background-position: -100px 0;
  height: 20px;
  width: 20px;
  top: 10px;
  left: 15px;
  opacity: 0.75;
}

click-container > button:hover  {
  background-color: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.75);
}

@media (max-width: 480px) {

  click-container > button {
    width: 190px;
    height: 40px;
    margin-left: -95px;
    margin-top: -20px;
    font-size: 14px;
  }

}

/* Fallback Module Info Panel / Emulate engine module display */

fail-module-info {
  position: absolute;
  box-sizing: border-box;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 60px;
  line-height: 1.5em;
  padding: 15px 15px 0 15px;
  background-color: #000;
  border-radius: 0;
  z-index: 1020;

  -webkit-transition: height .25s;
          transition: height .25s;
}

fail-module-info.open {
  height: 210px;
  max-height: 90%;
}

fail-module-info > button {
  position: relative;
  top: -10px;
  height: 0;
  width: 0;
  border: 10px solid transparent;
  background-color: transparent;
  border-bottom-color: #fff;
  display: inline-block;
  padding: 0;
  margin-right: 15px;
  cursor: pointer;
  outline: none;
}

fail-module-info.open > button {
  top: 0;
  border-top-color: #fff;
  border-bottom-color: transparent;
}

fail-module-info > h1 {
  margin-top: 0px;
  font-size: 19px;
  line-height: 30px;
  margin-bottom: 10px;
  font-weight: 400;
  display: inline-block;
}

fail-module-info > p {
  font-size: 14px;
  line-height: 21px;
  overflow-y: auto;
  display: none;
}

fail-module-info.open > p {
  display: block;
  height: 100px;
}

fail-module-info > p a {
	color: #ddd;
}

fail-module-info > p a:hover {
	color: #fff;
}

@media (min-width: 992px) {

  fail-module-info, fail-module-info.open {
    top: 10px;
    bottom: auto;
    right: 10px;
    width: 300px;
    height: auto;
    max-height: 450px;
    max-width: 85%;
    box-sizing: content-box;
    padding: 15px;
    line-height: 1.5em;
    background-color: transparent;
    color: #fff;
  }

  fail-module-info h1 {
    display: block;
    border-bottom: 1px solid #fff;
  }

  fail-module-info button {
    display: none;
  }

  fail-module-info p {
    display: block;
    overflow-y: auto;
  }

  fail-module-info.open > p {
    height: auto;
  }

}

/* Fallback Tour & Controls */

fallback-tour {
  z-index: 1001;
}

fallback-tour.video {
	pointer-events: none; /* no swiping for video iframes */
}

fallback-tour-controls {
	pointer-events: all;
  position: absolute;
	height: 34px;
  left: 50%;
  margin-left: -34px;
  bottom: 80px;

  border-radius: 4px;
	overflow: hidden;
  background-color: rgba(33,38,43,0.5);
  z-index: 1002; /* in front of image container */
}

fallback-tour-controls::-moz-selection,
fallback-tour-controls::selection {
	background: none;
}

fallback-tour-controls > .arrow {
	display: inline-block;
  opacity: .5;
	padding: 5px;
	cursor: pointer;
	background-image: none;
}

fallback-tour-controls > .arrow:after {
	content: '';
	display: block;
	height: 24px;
	width: 24px;
	background-image: url("../img/human-widget-icons-24x24-white.png");
}

html.no-touch fallback-tour-controls > .arrow:not(.disabled):hover,
fallback-tour-controls > .arrow:not(.disabled):active {
  background-color: rgb(33,38,43);
	opacity: 1;
}

fallback-tour-controls > .arrow.disabled {
  cursor: default;
	opacity: .1 !important;
}

fallback-tour-controls > .arrow.arrow-left:after {
  background-position: -96px -96px;
}

fallback-tour-controls > .arrow.arrow-right:after {
  background-position: -48px -96px;
}

/* Module Error */

module-error {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  margin-left: -175px;
  margin-top: -165px;
  padding: 10px;
  text-align: center;

  background-color: #000;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 5px;
  z-index: 1002;
}

module-error p {
  font-size: 16px;
  color: #ddd;
  line-height: 25px;
  margin: 20px 10px;
}

/* Embed Fullscreen */

#embed-full-screen {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 10px;
  top: 10px;
  background-image: url('../img/human-widget-icons-20x20-white.png');
  z-index: 1001;
  opacity: 0.50;
  cursor: pointer;
}

#embed-full-screen:hover {
  opacity: 1.0;
}

/* Embed Logo */

#embed-logo {
  display: inline-block;
  position: absolute;
  cursor: help;
  z-index: 1030;
  outline: none;
  opacity: 0.5;
  height: 36px;
  width: 160px;
  right: 10px;
  bottom: 10px;
  background-image: url('../img/human-widget-powered-logo-white.png');
  background-size: 100%;
  background-repeat: no-repeat;
}

#embed-logo:hover,
body.fallback #embed-logo:hover,
.info-enabled #embed-logo:hover {
  opacity: 1.0;
}

@media (max-width: 991px) {

  .info-enabled #embed-logo {
    opacity: .7;
  }

}

@media (max-width: 400px) {

  #embed-logo {
    width: 120px;
    height: 28px;
  }

  /* Go to a different image, just the B when in iphone portrait */
  .info-enabled #embed-logo {
    height: 40px;
    width: 40px;
    margin-right: 5px;
    opacity: .8;
    background-image: url('../img/human-widget-logo-white.png');
    background-size: initial;
  }

  body.fallback #embed-logo {
    width: 40px; /* Hide human text */
  }

}

/* Add This Social Media Panel */

.addthis_sharing_toolbox {
  position: absolute;
  top: 50%;
  margin-top: -96px;
  left: 5px;
  z-index: 10001;
}

a.at-share-btn {
  box-sizing: content-box;
  display: block !important;
  width: 48px;
  max-width: 48px !important;
  line-height: 48px;
  margin: 0px !important;
  padding: 8px 0 !important;
  text-align: center;

  -webkit-transition: width 0.15ms ease-in-out;
     -moz-transition: width 0.15ms ease-in-out;
       -o-transition: width 0.15ms ease-in-out;
          transition: width 0.15ms ease-in-out;
}

a.at-share-btn:hover {
  width: 64px;
  max-width: 64px !important;
}

a.at-share-btn + .at_flat_counter {
  top: -40px !important;
  left: 50px !important;
}

a.at-share-btn + .at_flat_counter {
  height: 48px !important;
  width: 48px !important;
  padding: 0px !important;
  margin: 0px !important;
  line-height: 36px !important;
  text-align: center;
  color: #666 !important;
  background: #efefef;
}

a.at-share-btn + .at_flat_counter:hover {
  color: #000 !important;
  background: #fff !important;
}

a.at-share-btn + .at_flat_counter:after {
  content: 'Shares' !important;
  font-size: 8px !important;
  display: inline-block !important;
  transform: none !important;
  width: auto !important;
  border: none !important;
  border-width: 0px!important;
  top: 15px !important;
  left: 7px !important;
}