/* ////// */
/* Global */
/* ////// */

html {
	background-color: #000000;
}

body {
	margin: 0 0;
	overflow: hidden; 
	font-family: Monospace;
}

/* //////////// */
/* HTML Overlay */
/* //////////// */

span#title {
	 position: fixed;
	 top: 10px;
	 width: 100%;
	 text-align: center;
	 z-index: 1;
	 color: #fff;
}

div#debug {
	 display: none;
	 position: fixed;
	 top: 20px;
	 z-index: 1;
	 margin: 1em 0;
	 background-color: #000;
	 color: #fff;
}

div#htmlOverlay {
	position: fixed;
	pointer-events: none;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 5;
}

/* Enable all pointer events for all children of the overlay */
div#htmlOverlay > * {
	pointer-events: auto;
}

div#htmlOverlay div#fullScreenButton {
	position: fixed;
	right: 10px;
	bottom: 10px;
	width: 40px;
	height: 40px;
	z-index: 5;
}

div#htmlOverlay i.fa-expand {
	text-align: center;
	color: #1dc9b7;
	font-size: 30px;
	margin: 0 0;
}

div#htmlOverlay i.fa-expand:hover {
	font-size: 40px;
	margin-left: -5px;
	margin-top: -5px;
}

div#htmlContainer {
	display: block;
}

/* ///// */
/* Scene */
/* ///// */

a-scene#sceneWebGL {
	z-index: 0;
}

div#sceneHTML {
	position: absolute;
	top: 0;
	z-index: 4;
}

/* //////// */
/* Carousel */
/* //////// */
.carouselContainer {
	display: block;
	position: relative;
	width: 300px;
	height: 400px;
	
	z-index: 3;

	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
	/* overflow: hidden; */
}

#hudTest .carouselContainer {
	margin-left: 120px; /* For testing purposes */
}

.carousel {
	background-color: rgba(255, 255, 255, 0.85);
	height: 100%;

	-webkit-box-shadow: 1px 4px 47px 8px rgba(0,0,0,0.75);
	-moz-box-shadow: 1px 4px 47px 8px rgba(0,0,0,0.75);
	box-shadow: 1px 4px 47px 8px rgba(0,0,0,0.75);
}

.carouselLeft, .carouselRight {
	top: 120px; /* 0.5 * (400px - 160px) */
	width: 80px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 160px;
	position: absolute;
	text-align: center;
	line-height: 160px;

	text-shadow: 2px 2px 30px rgba(0,0,0,0.7);
}

.carouselLeft[disabled], .carouselRight[disabled] {
	color: rgba(220, 220, 220, 0.5);
	text-shadow: 2px 2px 30px rgba(0,0,0,0.3);
}

.carouselLeft {
	left: -100px;
}

.carouselRight {
	left: 320px;
}

.carouselLeft:active, .carouselRight:active {
	font-size: 180px;
	line-height: 180px;
	top: 110px; /* non-active - 10px */
}

.carouselLeft.noneRemaining:active, .carouselRight.noneRemaining:active {
	/* original values */
	font-size: 160px;
	line-height: 160px;
	top: 120px;
}

/* /// */
/* HUD */
/* /// */

fieldset#hud {
	background-color: rgba(0, 155, 0, 0.7);
	height: 300px;
	width: 400px;
	margin-top: 40px;
	margin-left: 0;
	margin-right: 0;
	padding: 0 0;
}


/* ////// */
/* Header */
/* ////// */

div#header .icon {
	float: right;
}

div#header {
	background-color: rgba(0, 155, 0, 0.5);
	margin-top: -40px;
	height: 40px;
	width: 100%;
	/* background-color: #0f0; */
}

div#header i.fa-expand {
	font-size: 30px;
	margin-right: 10px;
	margin-top: 5px;
	width: 100%;
	text-align: center;
	
	color: #1dc9b7;
}

div#header .title {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 40px;
	font-family: mono;
	font-size: 30px;
	text-align: center;
	font-weight: 900;
	color: #1dc9b7;
}

/* ///////// */
/* Main View */
/* //////// */

div#mainView {
	display: block;
	position: relative;
	float: left;
	margin: 0 0;
	height: 100%;
	width: 80%;
	margin-top: 20px;
}

div#mainView div#graph {
	/* top: 0; left: 0; position: absolute;  */
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 40px;
	height: 100%;
	/* border: 2px solid #1dc9b7; */
	overflow: hidden;
}


/* /////// */
/* Sidebar */
/* /////// */

div#sideBar {
	display: block;
	float: left;
	margin: 0 0;
	height: 100%;
	width: 20%;
}

.quickView {
	/* border: 1px solid #000000; */
	height: 80px;
	margin-bottom: 10px;
}

.quickView .icon {
	width: 80px;
	height: 60px;
	/* margin-left: 5px; */
}

div#sideBar i.fa-battery-full {
	font-size: 40px;
	line-height: 60px;
	width: 100%;
	text-align: center;
	color: #1dc9b7;
	
}

div#sideBar i.fa-temperature-low {
	font-size: 40px;
	line-height: 60px;
	width: 100%;
	text-align: center;
	/* color: #1dc9b7; */
	color:  #22b9ff;
	margin-left: 5px;
}

.quickViewStatus {
	display: block;
	width: 100%;
	font-weight: 900;
	font-family: mono;
	color: #3de9d7;
	text-align: center;
}

/* Wifi Icon */

svg#wifi {
	width: 80px;
	height: 60px;
}

svg > path {
	animation-name: fadeIn;
	animation-duration: 4s;
	animation-iteration-count: infinite;
}

svg > path#wifi1 {
	animation-delay: -1s;
}

svg > path#wifi2 {
	animation-delay: -0.5s;
}

svg > path#wifi3 {
	animation-name: fadeInHang;
}

/* Wifi Icon Animation */

@keyframes fadeIn {
  0% {fill-opacity: 0.5;}
  50% {fill-opacity: 1;}
  100% {fill-opacity: 0.5;}
}

@keyframes fadeInHang {
  0% {fill-opacity: 0.5;}
  50% {fill-opacity: 1;}
  70% {fill-opacity: 1;}
  100% {fill-opacity: 0.5;}
}

/* //// */
/* Tile */
/* //// */

.react-swipeable-view-container {
	height: 100%;
}

.tile {
	display: block;
	position: relative;
	overflow: hidden;
	height: 100%;
	font-family: Roboto,"Helvetica Neue",Arial,sans-serif;
	padding-left: 10%;
	padding-right: 10%;
	text-align: center;
}

.tileHeader, .tileContent, .tileFooter {
	display: block;
	position: relative;
	float: left;
	width: 100%;
}

.tileHeader {
	height: 20%;
	/* background-color: #39BA90; */
}

.tileHeader .statusIndicator {
	position: absolute;
	right: 0;
	font-size: 24pt;
	color: #9bb932;
	margin-top: 20px;
}

.tileHeader .statusIndicator.inline {
	position: relative;
	margin-top: 0;
}
	
.tileHeader .statusIndicator.inAlarm {
	color: #f00;
}

.tileError {
	font-weight: 900;
	color: #f00;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.tileContent {
	height: 60%;
	/* background-color: #9BB932; */
}

.tileContent[leaverows="3"] {
	height: 55%;
}

.tileFooter {
	height: 20%;
	width: 100%;
	padding-top: 5%;
	padding-bottom: 5%;
	box-sizing: border-box;
	/* background-color: #EE8802; */
}

.tileFooter.rows-3 {
	height: 25%;
}

.tileSection50 {
	position: relative;
	height: 50%;
	padding-top: 20px;
	box-sizing: border-box;
}

.tileTitle, .tileSubtitle {
	display: block;
	width: 100%;
	text-align: center;
	color: #464457;
}

.tileTitle {
	padding-top: 15px;
	font-weight: 900;
	font-size: 1.3rem;
}

.tileTitle.large {
	font-size: 2.3rem;
}

.tileSubtitle {
	padding-top: 5px;
}

.separator {
	position: absolute;
	bottom: 0;
	height: 1px;
	width: 90%;
	left: 5%;
	background-color: #464457;
}

.tileContent .title {
	text-align: center;
	display: block;
	font-size: 18pt;
	position: absolute;
	top: 1em;
	width: 100%;
}

.tileContent .icon {
	display: block;
	height: 100%;
	line-height: 100%;
	font-size: 80pt;
	margin-left: 5%;
	width: 35%;
	float: left;
	color: #464457;
}

.tileContent .icon i {
	display: block;
	height: 100%;
	line-height: 240px;
}

.icon > .fa-clock {
	margin-left: -.5rem;
	font-size: 60pt;
}

.freezing-blue {
	color: #22b9ff;
}

.tileContent .instrumentData {
	display: block;
	float: left;
	color: #464457;
	width: 60%;
	margin-top: 30%;
	position: relative;
}

.tileContent .instrumentData .digitMain {
	font-size: 70pt;
	float: left;
}

.tileContent .instrumentData[characters="2"] .digitMain {
	font-size: 60pt;
	margin-left: -5px;
	margin-top: 10px;
}

.tileContent .instrumentData[characters="3"] .digitMain {
	font-size: 50pt;
	margin-left: -10px;
	margin-top: 22px;
}

.tileContent .instrumentData .decimalSeparator, .tileContent .instrumentData .decimals {
	font-size: 30pt;
	margin-top: 44px;
	float: left;
}

.tileContent .instrumentData .decimalSeparator {
	margin-left: -4px;
}

.tileContent .instrumentData .decimals {
	margin-left: -3px;
}

.tileContent .instrumentData .celsius {
	position: absolute;
	font-size: 35pt;
	
	/* float: left; */ /* Doesn't work well with double-digit temperatures */
	right: 30px;
	top: 4px;
}

.tileContent .instrumentData[characters="2"] .celsius {
	right: 8px;
	top: 8px;
}

.tileContent .instrumentData[characters="3"] .celsius {
	font-size: 31pt;
	right: 9px;
	top: 11px;
}

.tileFooter .row {
	display: block;
	width: 100%;
	position: relative;
	color: #464457;
	font-size: 1.3rem;
	height: 25px;
	line-height: 25px;
}

.tileFooter .item {
	display: block;
	float: left;
	width: 20%;
	text-align: right;
	font-weight: 700;
	margin-left: 4rem;
}

.tileFooter .value {
	box-sizing: content-box;
	display: block;
	float: left;
	margin-left: 5px;
	width: 40%;
	text-align: left;
}

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

.tileFooter .halfLine {
	box-sizing: border-box;
	display: block;
	width: 50%;
	float: left;
	
	padding-left: 2em;
}

.tileFooter .halfLine ~ .halfLine {
	padding-left: 0;
	padding-right: 2em;
}

.tileSpinner {
	position: absolute;
	font-size: 60pt;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.bold {
	font-weight: 900;
}

.valueLarge {
	font-size: 80pt;
}

/* /////// */
/* A-FRAME */
/* /////// */

/* Hide all dialogs: they're occluded by sceneHTML, so they can't be clicked.
 To add to that: we don't need device orientation or motion events,
 and on iPad with iOS 13 the user agent is mistakenly sent as Desktop,
 prompting another useless dialog. */
.a-dialog {
	display: none;
}