@font-face {
    font-family: 'robotoc';
    src: url(robotoc.ttf)  format('truetype'); /* Legacy iOS */
}
*::-webkit-scrollbar{
	width:4px;
	height:2px;
	cursor:default;
	border-radius:2px;
	background-color: #111;
}
*::-webkit-scrollbar-thumb{
	border: none;
	cursor:default;
	border-radius:2px;
	background-color: #118811;
}
html, body{
	font-family: robotoc, arial, sans-serif;
	font-size:16px;
	margin:0;
	background:#444;
	background-size: cover;
	color:#ddd;
	overflow:hidden;
}

/* LOADER */
.z-loader{
  width:32px;
  height:32px;
  position:relative;
  display:inline-block;
  animation:z-loader-ani 4s linear infinite reverse;
  vertical-align:middle;
}
.z-loader,
.z-loader:after,
.z-loader:before{
  box-sizing:border-box;
  border-radius:50%;
  transform-origin:50% 50%
}
.z-loader:after,
.z-loader:before{
  width:100%;
  height:100%;
  content:'';
  display:block;
  position:absolute;
  top:0;
  border:3px solid #0078D4;
  left:0
}
.z-loader:before{
  border-top-color:transparent;
  border-left-color:transparent;
  border-bottom-color:transparent;
  z-index:2
}
.z-loader:after{
  z-index:1;
  border-top-color:transparent;
  border-left-color:transparent;
  border-bottom-color:transparent;
  animation:z-loader-innerani 2s linear infinite
}
@keyframes z-loader-ani {
  0% {transform:rotate(0deg)}
  25% {transform:rotate(270deg)}
  25.01% {transform:rotate(-90deg)}
  50% {transform:rotate(180deg)}
  50.01% {transform:rotate(-180deg)}
  75% {transform:rotate(90deg)}
  75.01% {transform:rotate(-270deg)}
  100% {transform:rotate(0deg)}
}
@keyframes z-loader-innerani {
  0% {transform:rotate(90deg)}
  25% {transform:rotate(270deg)}
  25.01% {transform:rotate(-90deg)}
  50% {transform:rotate(-270deg)}
  50.001% {transform:rotate(90deg)}
  75% {transform:rotate(270deg)}
  75.01% {transform:rotate(-90deg)}
  100% {transform:rotate(-270deg)}
}
/* LOADER */

#main_container {
  display: flex;
  align-items: center;
  justify-content: center;
  width:100vw;
  height:100vh;
  transition: opacity 1s cubic-bezier(.25,.8,.25,1);
  opacity:0;
}
#main_container.cakar_loaded{
	opacity:1;
}
input, button{
	font-family: robotoc, arial, sans-serif;
	padding:5px;
	margin:2px;
	line-heigt:36px;
	padding:10px 25px 10px 25px;
	border-radius:4px;
	border:1px solid #111;
	color:#fff;
	background:#555;
	font-size:16px;
	cursor:pointer;
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
	outline:none;
}
button{
	border-color:#555;
}
#send{
	background:#006CBE;
	border-color:#006CBE;
	position:relative;
}
#send:hover{
	background:#0078D4;
	border-color:#0078D4;
}
input[disabled],
button[disabled]{
	opacity:0.5;
}
#send .z-loader{
	position:absolute;
	left:-40px;
	top:4px;
	visibility:hidden;
	opacity:0;
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
#send[disabled]{
	opacity:1;
	color:rgba(255,255,255,0.6);
	background:#005CAE;
	border-color:#005CAE;
	box-shadow:none;
}
#send[disabled] .z-loader{
	visibility:visible;
	opacity:1;
}
input{
	background:#222;
	width:270px;
}
input:hover, button:hover{
	border-color:#0078D4;
	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
button:active, button:focus,
input:focus{
	border-color:#006CBE;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
button:hover{
	background:#0078D4;
}
button:active{
	background:#006CBE;
}
#comport{
	width:160px;
}
#main_inner{
	text-align:center;
}
#cakar{
	display:inline-block;
	text-align:right;
	text-shadow:1px 1px 4px #000;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#cakar_title{
	font-size:86px;
	line-height:1;
	color:#fff;
	font-weight:normal;
}
#cakar_title b{
	margin-left:8px;
	top:-30px;
	font-size:18px;
	position:relative;
}
#cakar_desc{
	font-size:14px;
	color:#999;
	padding-bottom:20px;
	position:relative;
	top:-8px;
	padding-right:30px;
}
#logoholder{
	position:fixed;
	z-index:99;
	right:10px;
	bottom:10px;
}
#send{
	width:140px;
}

.fototrx,
table{
	width:100%;
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
	box-sizing:border-box;
}
#result span{
	font-size:24px;
	color:#fd8;
	text-shadow:1px 2px 6px #000;
}
.fototrx{
	display:block;
	padding:12px;
	background:#222;
	min-height:100px;
}
.fototrx div{
	display:inline-block;
	padding:0;
	vertical-align:bottom;
	width:50%;
	position:relative;
	line-height:100px;
	position:relative;
	text-align:center;
	max-height:400px;
	font-size:12px;
	color:#ff9;
}
.fototrx div:before{
	background:#468;
	position:absolute;
	display:inline-block;
	padding:2px;
	line-height:18px;
	background:#07a;
	color:#fff;
	bottom:0;
	width:100px;
	margin-left:0;
	z-index:5;
}
.fototrx div.fotoentran:before{
	content:"Foto Entrance";
}
.fototrx div.fotoexit:before{
	content:"Foto Exit";
	background:#486;
}
.fototrx div span{
	display:inline-block;
	font-size:12px !important;
	color:#ff9 !important;
}
@media only screen and (min-width: 320px) {
	#send{
		border-radius:0 5px 5px 0;
		margin-left:0;
	}
	#new_uid{
		border-radius:5px 0 0 5px;
		margin-right:0;
	}
}
@media only screen and (max-width: 449px) {
	#send{
		width:80px;
	}
}
.history_header {
	border-left:1px solid #222;
	border-top:1px solid #222;
	width:100%;
}

@media only screen and (min-width: 510px) {
	.fototrx,
	table{
		width:calc(80vw - 100px);
		min-width:500px;
		max-width:1100px;
		text-shadow:1px 1px 2px #000;
		margin:0;
	}
	.history_header {
		width:80vw;
	}
}

tr:nth-child(odd){
	background:#303030;
}
tr:nth-child(even){
	background:#3a3a3a;
}
tr:hover td, tr:hover th{
	background:rgba(0,80,180,0.2);
}
th, td{
	border-top:1px solid #3f3f3f;
	border-bottom:1px solid #282828;
	cursor:default;
}
th{
	font-weight:normal;
	text-align:left;
	width:160px;
	color:#aaa;
	padding:6px;
	font-size:16px;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
td{
	font-weight:bold;
	text-align:left;
	color:#fff;
	padding:6px 25px 6px 0;
	font-size:16px;
}
#result {
	max-height: calc(100vh - 240px);
	overflow-y: auto;
	margin-bottom:50px;
}
@keyframes folotloading {
  0% { background:#000; }
  50% { background:#468; }
  100% {background: #000;}
}
#result img.loading{
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  animation-name: folotloading;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  width:200px;
  height:100px;
  cursor:wait !important;
}
#result img{
	width:200px;
	height:auto;
	cursor:zoom-in;
	object-fit: cover;
	outline-color:#000;
	transition: all 0.3s ease;
	background:rgba(0,0,0,0);
}
#result img:hover{
	box-shadow: 0 14px 28px rgba(40,120,200,0.25), 0 10px 10px rgba(40,120,200,0.22);
	outline:1px solid #468;
}
#result img.zoom{
	cursor:zoom-out;
	position:fixed;
	object-fit: contain;
	background:rgba(0,0,0,0.7);
	left:0px;
	top:0px;
	width:100vw;
	height:100vh;
	z-index:200;
	box-shadow:none !important;
	outline:none !important;
	backdrop-filter:blur(10px);
}
#result .footlink{
	text-align:right;
	padding:4px;
}
#result a:visited,
#result a{
	text-decoration:none;
	color:#aaa;
	display:inline-block;
	padding:4px;
	line-height:18px;
	font-size:14px;
	text-shadow:1px 1px 2px #000;
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
	border-radius:4px;
}
#result a:hover{
	color:#fff;
	background:#555;
}
#cleanup{
	display:none;
	padding-left:0;
	padding-right:0;
	width:40px;
}
#srcform{
	margin-bottom:4px;
}
#srcform.showed #cleanup{
	display:inline-block;
}
#new_uid{
	width:calc(80vw - 235px);
	max-width:960px;
	min-width:240px;
}
#srcform.showed #new_uid{
	width:calc(80vw - 285px);
	max-width:910px;
}
.history_header td,
.history_header th{
	padding:4px !important;
	border-right:1px solid #222;
}
.history_header th{
	font-weight:bold;
	text-align:center;
	width:auto;
}
.history_header td{
	font-weight:normal;
	text-align:center;
}
.pretitle{
	text-align:left;
	color:#fff;
	text-shadow:1px 1px 2px #000;
	font-size:14px;
	padding:6px;
}
@keyframes logo_animation {
  0% {fill: #555;}
  50% {fill: #999;}
  100% {fill: #555;}
}
#iotlab_logo{
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  animation-name: logo_animation;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}