html {
	box-sizing: border-box;

}
*, *:before, *:after {
	box-sizing: inherit;
}

.ios{
	position: fixed;
}

body {
	background-color: #161616;
	margin: 0px;
	overflow: hidden;
	font-family: 'Dosis', sans-serif;
	font-size: 1.1em;
	font-weight: 300;
  cursor: url('/images/glowingcircl.png'), auto;
}

input {
  color: #000;
}

#viewport {
	z-index: -1;
}

#info-button {
	width: 80px;
	height: 40px;
	position: absolute;
	top: 5px;
	left: 5px;
	cursor: pointer;
	background-color: rgba(0,0,0,0.4);
	border-radius: 5px;
	padding: 5px;
}

.in-vr #info-button {
	width: 30px;
	height: 30px;
}

#logo {
	background-image: url(/images/poweredbyinsite.png);
	background-size: cover;
	background-repeat: no-repeat;
	width: 90%;
	height: 100%;

}

#add-link-text {
  font-size: 18px;
  text-align: center;
}

#remove-link-img {
  background-image: url(/images/icon_trash.png);
	background-size: cover;
	background-repeat: no-repeat;
  margin: 15px auto;
	width: 23%;
	height: 40%;
}

#add-annotation-img {
  background-image: url(/images/annotation.png);
	background-size: cover;
	background-repeat: no-repeat;
  margin: 15px auto;
	width: 23%;
	height: 42%;
}

#add-link-img {
  background-image: url(/images/link360.png);
	background-size: cover;
	background-repeat: no-repeat;
  margin: 15px auto;
	width: 23%;
	height: 40%;
}

#poweredby {
	background-image: url(/images/poweredbyinsite.png);
	background-size: cover;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
}

#rotateInfo {
	display: block;
	background-image: url(/images/rotateVR.png);
	background-size: cover;
	background-repeat: no-repeat;
	width: 90px;
	height: 60px;
}

#loading {
	position: absolute;
	top: 50%;
	left: 50%;
}

#loading .content {
	padding: 10px;
	border-radius: 10px;
	position: relative;
	top: -50%;
	left: -50%;
	background-color: rgba(0,0,0,0.4);
}
#loading .content h1 {
	font-weight: 300;
	font-size: 32px;
	line-height: 32px;
	margin: 2px 0px 8px;
}

#loading #progressbar {
	margin: auto;
	text-align: center;
	background: white;
	width: 130px;
	height: 10px;
	border-radius: 5px;
}

#viewport {
	//position: fixed;
}

#loading_spinner {
	position: absolute;
	top: 50%;
	left: 50%;
}
#loading_spinner .content {
	padding: 2px;
	border-radius: 10px;
	position: relative;
	top: -50%;
	left: -50%;
	background-color: rgba(0,0,0,0.4);
}
#loading_spinner .content h1 {
	font-weight: 300;
	font-size: 32px;
	line-height: 32px;
	margin: 2px 0px 8px;
}

#loading_spinner #progressbar {
	margin: auto;
	text-align: center;
	background: white;
	width: 130px;
	height: 10px;
	border-radius: 5px;
}

#bar {
	background: #94CC7A;
	width: 7%;
	height: 100%;
	border-radius: 5px;
}

.button {
	cursor: pointer;
	display: inline-block;
	background: #94CC7A;
	color: #000000;
	border-radius: 5px;
}
.button:hover {
	background: #7FAD69;
}

/* Button */
.button-ctrl {
  display: block;
  position: relative;
  width: 120px;
  height: 32px;
  line-height: 32px;
  border-radius: 2px;
  font-size: 0.9em;
  background-color: #fff;
  color: #fff;
  margin: 0 auto;
}

.ctrl-text {
	text-align: center;
}

.button-ctrl > paper-ripple {
  border-radius: 2px;
  overflow: hidden;
}

.button-ctrl.narrow {
  width: 60px;
}

.button-ctrl.blue {
  background-color: rgba(41, 165, 220, 1);
}

.button-ctrl.raised {
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.2s;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
}

.button-ctrl.raised:active {
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
  transition-delay: 0s;
}

  .loader {
    margin: 0px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
  }
  .loader,
  .loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
  }
  @-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);
    }
  }


#toggle-render, #toggle-link {
	font-size: 16px;
	line-height: 16px;

	padding: 10px 20px;

	border-style: solid;
	border-color: #7FAD69;

	-webkit-animation-name: greenPulse;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;

	-moz-animation-name: greenPulse;
	-moz-animation-duration: 2s;
	-moz-animation-iteration-count: infinite;
}

#toggle-link {
	font-size: 12px;
	padding: 7px 10px;
}

#toggle-render:hover {
	border-color: #94CC7A;
}

#toggle-render.disabled {
	cursor: pointer;
	display: inline-block;
	background: #CBCBCB;
	color: #898989;
	pointer-events: none;

	-webkit-animation-name: none;
	-moz-animation-name: none;
}

.in-vr #toggle-render {
	padding: 6px 9px;
	-webkit-animation-name: none;
	-moz-animation-name: none;
}

.in-vr #toggle-render .text {
	margin-left: 0;
}

.in-vr #toggle-render .icon {
	display: none;
}


#info {
	padding: 10px;
	color: #fff;
	position: absolute;
	top: 5px;
	left: 5px;
	background-color: rgba(0,0,0,0.4);
	border-radius: 10px;
}
#info-right, #info-right-embed {
    position: fixed;
    padding: 10px;
    right: 5px;
}

.projectLink {
	font-style: italic;
}

.mobile #info-center{
	display: none;
}

#info-center{
	display: none;
}

@media only screen and (min-width: 768px) {
	#info-center {
		font-size: 1.5em;
		display: block;
		color: #fff;
	  	position: fixed;
		top: 35px;
		left: 50%;
		/* bring your own prefixes */
		transform: translate(-50%, -50%);

		background-color: rgba(0,0,0,0.4);

		width: 400px;

		padding: 3px 0px 3px;

		z-index: 10;
	}
}

#info-center .panel{
	background-color: rgba(0,0,0,0.0);
}
.in-vr #info-right {
	padding: 0px;
}

.controls {
	margin: 0 auto;
	text-align: center;
	cursor: pointer;
}
.controls .group {
	margin-top: 6px;
}
#view-name {
	position: relative;
	top: -5px;
	padding: 0px 8px;
}


#help-text h1 {
	font-size: 18px;
	margin-top: 15px;
}
#help-text div {
	margin-bottom: 5px;
}
#help-text div label {
	display: inline-block;
	width: 160px;
}
#help-text section {
	margin-top: 20px;
}

#model-title {
	bottom: 0;
	pointer-events: none;
	position: absolute;
	width: 70%;
	z-index: 100;
}
#model-title-text {
	color: #fff;
	font-size: 42px;
	line-height: 42px;
	font-weight: 300;
	margin: 0 0 12px 12px;
	padding: 0;
	pointer-events: none;
	text-shadow: 0 0 10px rgba(0,0,0, 0.5);
}
.in-vr #model-title-text {
	font-size: 26px;
	line-height: 26px;
	margin: 0 0 6px 6px;
	display: none;
}


#generic_error,
#security_error {
	padding-top: 200px;
	width: 500px;
	margin-left: auto;
	margin-right: auto;
	display: none;
}
.help-buttons {
	text-align: right;
}

#editorGUI {
	position: absolute;
	top: 225px;
	right: -10px;
}

@-webkit-keyframes greenPulse {
	from { background-color: #749a02; -webkit-box-shadow: 0 0 9px #333; }
	50% { background-color: #91bd09; -webkit-box-shadow: 0 0 18px #91bd09; }
	to { background-color: #749a02; -webkit-box-shadow: 0 0 9px #333; }
}

@-moz-keyframes greenPulse {
	from { background-color: #749a02; -webkit-box-shadow: 0 0 9px #333; }
	50% { background-color: #91bd09; -webkit-box-shadow: 0 0 18px #91bd09; }
	to { background-color: #749a02; -webkit-box-shadow: 0 0 9px #333; }
}

#preview {
	position: absolute;
	bottom: 5px;
	right: 5px;
	border: 1px solid #aaa;
	background-color: transparent;
	width: 280px;
	height: 180px;
	z-index: 5;
}

#preview .header {
	text-align: center;
	font-size: 12px;
	line-height: 12px;
	font-weight: 200;
	padding: 18px 6px;
	margin-top: 142px;
	color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,0) 11%, rgba(0,0,0,0.3), rgba(0,0,0,0.44));
	/* background-color: rgba(0,0,0,0.6); */
	font-weight: 300;
	height: 36px;
	text-shadow: 1px 1px 1px #444;
}

.mobile #preview {
	display: none;
}

#blocker {
	position: absolute;

	width: 100%;
	height: 100%;

	background-color: rgba(0,0,0,0.5);
}

.mobile #blocker {
	display: none;
}

#instructions {
		font-size: 15px;
		margin-left: auto;
		margin-right:auto;
		width: 70%;
		height: 80%;

		display: -webkit-box;
		display: -moz-box;
		display: box;

		-webkit-box-orient: horizontal;
		-moz-box-orient: horizontal;
		box-orient: horizontal;

		-webkit-box-pack: center;
		-moz-box-pack: center;
		box-pack: center;

		-webkit-box-align: center;
		-moz-box-align: center;
		box-align: center;

		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
		user-select: none;

		color: #ffffff;
		text-align: center;
		cursor: pointer;
}

@media only screen and (min-width: 768px) {
	#instructions {
		font-size: 25px;
		margin-left: auto;
		margin-right:auto;
		width: 70%;
		height: 80%;

		display: -webkit-box;
		display: -moz-box;
		display: box;

		-webkit-box-orient: horizontal;
		-moz-box-orient: horizontal;
		box-orient: horizontal;

		-webkit-box-pack: center;
		-moz-box-pack: center;
		box-pack: center;

		-webkit-box-align: center;
		-moz-box-align: center;
		box-align: center;

		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
		user-select: none;

		color: #ffffff;
		text-align: center;

		cursor: pointer;
	}
}


#top-bar {
	position: absolute;
	top: 0;
	left: 0;
	min-height: 30px;
	width: 100%;
	background-color: #fff;
}

#sidebar {
	display: none;
}

.btn-wide {
  width: 100%;
}

@media only screen and (min-width: 768px) {

	#sidebar {
		display: block;
		position: absolute;
		right: 5px;
		top: 10px;

		background-color: #fff;
		border: 1px solid #aaa;

		width: 175px;

		color: #222;

		padding: 1px 0px 3px;

		z-index: 10;
	}

  #sidebar a {
    cursor: pointer;
  }

  #sidebar a:hover {
    text-decoration: none;
  }

}

.mobile #sidebar {
	display: none;
}

#sidebar h4 {
	font-weight: 300;
}

#save-btn {
	width: 100%;
	font-size: 16px;
	line-height: 16px;
	font-weight: 300;
}

.list-group {

}

.list-group.active:hover {
	cursor: pointer;
}

.list-group-item {
	padding: 6px 10px;
	overflow: hidden;

	-webkit-user-select: none;
	user-select: none;
}

.list-group-item:hover {
	cursor: pointer;
	background-color: #f5f5f5;
}


.panel {
	box-shadow: none;
	border: 0;
	margin: 0;
}

.panel .header {
	border-bottom: 0px solid #333;
	padding: 2px 6px;
}

.panel .header .text {
	font-size: 16px;
	position: relative;
	top: 4px;
}

.panel .list {
	margin: 3px 0px;
}

.panel .list > div {
	padding: 2px 4px;
}

.panel .list > div:hover {
	background-color: #f9f9f9;
}

.panel .list > div.selected {
	background-color: #91bd09;
}

.panel .row {
	margin: 4px 0px;
}

.panel .list > div .row .btn {
	float: right;
	margin-left: 3px;
}

#list {
	width: 110px;
}

.name {
	width: 110px;
	display: inline-block;
	padding: 4px;
}

/*.btn {
	display: inline-block;
	padding: 4px 8px 4px;
	background-color: rgba(0, 0, 0, 0.2);
	border-width: 1px 1px 3px;
	border-style: solid;
	border-color: #aaa;
	border-radius: 2px;
	transition: background-color 0.15s linear;
}

.btn:hover {
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.3);
}*/

.delete {
	float: right;
}

.primary {
	padding: 6px;
}

#views #list {
	overflow: auto;
}

#views #add-view-btn {
	margin-top: 6px;
}

input.num {
	width: 32px;
}

.row.vec3 {

}

.modal-sm {
    width: 450px;
}

.row.vec3 > div {
	width: 50px;
	display: inline-block;
}

.header .btn {
	float: right;
}

.btn.primary-btn {
	background-color: #337ab7;
	color: #fff;
	border-radius: 3px;
	font-size: 15px;
	padding: 5px 10px;
	width: 100%;
	text-align: center;
	border-bottom-width: 3px;
	border-color: #286090;
}

.btn.primary-btn:hover {
	background-color: #286090;
}



#views {
	margin-top: 6px;
}

.scale {
	position: relative;
	top: 3px;
}


#msgs {
  border: 1px solid #ccc;
  padding: 4px 11px;
  margin-bottom: 8px;
  max-height: 70px;
  overflow: auto;
}

#debug {
	border: 1px solid black;
	background-color: white;
	position: absolute;
	padding: 4px;
	bottom: 10px;
	right: 10px;
	color: black;
}

.hide {
	display: none;
}

.show {
	display: block;
}

/* dat.gui overrides */

#scale-container {
	margin-bottom: 7px;
}

#scale-container input {
	margin-top: 0px;
}

.dg {
	font: inherit !important;
	color: #111 !important;
	text-shadow: none !important;
}

.dg.main {
	width: 100% !important;
}

.dg.a {
	float: none !important;
	margin-right: 5px !important;
}

.dg li:not(.folder) {
	background: inherit !important;
	border-bottom: none !important;
}

.dg .cr.number input[type=text] {

}

.dg .cr.number {
	border-left: none !important;
}

.dg .property-name {
	padding-left: 2px !important;
}

.dg .c input[type=text] {
	background: #eee !important;
	color: #111 !important;
}

.dg.main .close-button {
	display: none;
}

ul.share-buttons{
  list-style: none;
  padding: 0;
  text-align: center;
}

ul.share-buttons li{
  display: inline;
}

ul.share-buttons .fa{
	color: rgba(41, 165, 220, 1);
}

a .left , a .right {
  display: inline-block;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.4);
}

a:hover .left, a:hover .top, a:hover .bottom, a:hover .right{
  border: 0.3em solid #333;
}

a:hover .left:after, a:hover .top:after, a:hover .bottom:after, a:hover .right:after {
  border-top: 0.5em solid #94CC7A;
  border-right: 0.5em solid #94CC7A;
}

.left {
  display: inline-block;
  width: 4em;
  height: 4em;
  border: 0.3em solid #333;
  border-radius: 50%;
  margin-right: 1.5em;
  position: absolute;
  top: 45%;
  left: 1%;
}

.left:after {
  content: '';
	display: inline-block;
  margin-top: 1.0em;
  margin-left: 1.1em;
  width: 1.4em;
  height: 1.4em;
  border-top: 0.5em solid #fff;
  border-right: 0.5em solid #fff;
  -moz-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.right {
  display: inline-block;
  width: 4em;
  height: 4em;
  border: 0.3em solid #333;
  border-radius: 50%;
  margin-left: 1.5em;
  position: absolute;
  top: 45%;
  right: 1%;
}

.right:after {
  content: '';
  display: inline-block;
  margin-top: 1em;
  margin-left: 0.7em;
  width: 1.4em;
  height: 1.4em;
  border-top: 0.5em solid #fff;
  border-right: 0.5em solid #fff;
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#image-object-modal.fixed-container,
#image-object-delete-modal.fixed-container,
#set-name-modal.fixed-container
{
  position: fixed;
  left: calc(50% - 300px);
  top: calc(50% - 150px);
}

#delete-annotation-modal.fixed-container {
	position: fixed;
	left: calc(50% - 150px);
	top: calc(50% - 150px);
}

.flex-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  width: 650px;
}

.flex-wrapper-vertical {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  height: 300px;
  width: 600px;
}

.tall-modal {
  height: 600px;
}

#image-object-modal .annotation-button {
  width: 200px;
  height: 150px;
}

#blue-box {
  background: #3fa5eb;
  width: 300px;
  height: 150px;
  border: white 2px solid;
}

#image-object-modal .link-button,
#image-object-delete-modal .link-button,
#delete-annotation-modal .link-button {
  background: #3fa5eb;
  width: 300px;
  height: 150px;
  border: white 2px solid;
}

#image-object-delete-modal .embed-button {
  background: #3fa5eb;
  width: 300px;
  height: 300px;
  border: white 2px solid;
}

#image-object-delete-modal textarea {
  margin: 0 auto;
  display: block;
  width: 95%;
}

#text-card div {
  display: flex;
  margin: 0 auto;
  justify-content: center;
}

#text-card p {
  margin: 15px;
  text-align: center;
  font-size: 18px;
}

#text-card {
  background: #3fa5eb;
  width: 300px;
  height: 150px;
  border: white 1px solid;
}

#cancel-button p {
  font-size: 14px;
  text-align: center;
  margin: 2px;
}

#cancel-button {
  background: #3fa5eb;
  width: 100px;
  height: 30px;
  border: white 2px solid;
  margin-top: 20px;
}

#add-annotation {
	bottom: 10px;
	position: absolute;
	right: 10px;
  background: #3fa5eb;
	width: 60px;
	height: 60px;
	border-radius: 50%;
}

#add-annotation:active {
	background: #117CB0;
}

#add-annotation {
	/*display: none;*/
}

#img-selector div {
  display: flex;
  margin: 0 auto;
  justify-content: center;
}

#img-selector p {
  margin: 15px;
  text-align: center;
  font-size: 18px;
}

#spot-select {
  padding: 10px;
  width: 200px;
  background-color: rgba(0,0,0,0.4);
  position: fixed;
  left: calc(50% - 100px);
  font-size: 14px;
  top: 12%;
}

#img-selector button {
  color: black;
}

.margin-p {
  margin: 20px;
}


#add-annotation .plus {
	background: white;
	height: 40px;
	position: relative;
	top: 10px;
	width: 10px;
	margin: 0 auto;
	border-radius: 2px;
}

#add-annotation .plus:after {
	background: white;
	content: "";
	height: 10px;
	left: -15px;
	position: absolute;
	top: 15px;
	width: 40px;
	border-radius: 2px;
}

.modal {
	color: #000000;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.text-medium {
  font-size: 14px;
}

.underline-sm {
  min-width: 40px;
  border-bottom: 2px black solid;
}

.underline-faded {
  min-width: 40px;
  border-bottom: none;
}

.text-center {
  text-align: center;
}

.text-active {
  color: black;
}

.text-faded {
  color: gray;
}

.space-between {
  justify-content: space-between;
}

.column-divider {
  margin: 0px 20px;
}

.bottom-spacing {
  margin-bottom: 15px;
}

#prompt-name {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 85%;
}

#set-name-modal {
	background: #2C485E;
	padding: 10px;
	box-sizing: border-box;
}

.responsive-container {
	height: 25%;
	width: 50%;
	margin: 0 auto;
}

.flex-wrapper-vertical {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-direction: column;
	height: 25%;
	width: 75%;
	margin: 0 auto;
}

@media only screen and (max-width: 500px) {
  #set-name-modal {
	  background: #2C485E;
	  width: 75%;
  }

  #model-title-text {
    font-size: 14px;
    line-height: 14px;
    margin: 0 0 3% 3%;
  } 

  #blocker {
    display: none;
  }

  #add-annotation {
    display: none;
  }

  #info-button {
    width: 60px;
    height: 30px;
  }

  .loader {
    width: 3em;
    height: 3em;
  }

  #loading_spinner {
    top: calc(50% - 1.5em);
  }

  #left, #right {
    width: 2em;
    height: 2em;
  }

  #left:after, #right:after {
    width: .8em;
    height: .8em;
    margin-top: 0.3em;
    border-top: 0.2em solid #fff;
    border-right: 0.2em solid #fff;
  }
  
  #left:after {
    margin-left: 0.5em;
  }

  #right:after {
    margin-left: 0.3em;
  }
}

