:root {
	--main-color: #F4FBFF;
	--inner-color: #D5EDFD;
	
	--tooltip-color: #D5EDFD;

	--clicker: .0;
	--text-color: #606060;
}

body, p, h2, h3, h4, button, input, td, label {
    color: var(--text-color) !important;
}

span {
	color: var(--text-color);
}
.red {
	color: red;
	font-size: 110%;
	font-weight: bold;
}

.adapter {
	position: relative;
	border-radius: 10px;
	width: 99%;
	max-height: 700px;
	padding: 5px 5px;
	background: var(--main-color);
	-webkit-transition: max-height 0.5s; 
	-moz-transition: max-height 0.5s; 
	-ms-transition: max-height 0.5s; 
	-o-transition: max-height 0.5s; 
	transition: max-height 0.5s; 
}

.adapter.minimized {
	max-height: 30px;
	padding: 0px 5px;
	overflow-y: hidden;
}

.adapter .title {
	font-size: 150%;
	font-weight: bold;
}

.adapter .settings_container {
	position: absolute;
	right: 5%;
	top: 1%;
}

.adapter .button_style {
	width: 28px;
	height: 28px;
	padding: 0px;
	border-radius: 2px;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}

.adapter .button_style:hover {
	background-color: white;
	border: 2px solid white;
}

.adapter .button_style:active, .active {
    background-color: white;
}

@keyframes flash {
	10% {
		opacity: 0.0;
	}
}

@-webkit-keyframes flash {
	10% {
		opacity: 0.0;
	}
}

.adapter .data_recieve{
	animation: blink 3s step-start 1s infinite;
	-webkit-animation: blink 3s step-start 1s infinite;
}

.adapter .sensor {
	position: relative;
	border-radius: 10px;
	padding: 1px;
	width: 100%;
	height: 200px;
	background: var(--inner-color);
}

.adapter .sensor .title2 {
	position: absolute;
	left: 2%;
	font-size: 130%;
	font-weight: bold;
}

.adapter .sensor .status_container {
	width: 27%;
	height: 8%;
	position: absolute;
	right: 2%;
	top: 1%;
	padding: 0px;
}

.adapter .sensor .status_container .icons {
	height: 16px;
	width: 32px;
}

@keyframes blink {
	50% {
		opacity: 0.0;
	}
}

@-webkit-keyframes blink {
	50% {
		opacity: 0.0;
	}
}

.adapter .sensor .status_container .bat {
	opacity: 0.0;
}

.adapter .sensor .status_container .lo_bat{
	animation: blink 1s step-start 0s infinite;
	-webkit-animation: blink 1s step-start 0s infinite;
}

.adapter .sensor .button_container {
	width: 15%;
	height: 80%;
	position: absolute;
	right: 2%;
	top: 20%;
	padding: 2px;
}

.adapter .sensor .button_container .spacer {
	min-height: 10%;
}

.adapter .sensor .text_wsd_speed {
	position: absolute;
	top: 20%;
	left: 4%;
	font-size: 400%;
	line-height: 0.8;
}

.adapter .sensor .unit {
	font-size: 40%;
}

.adapter .sensor .unit_level {
	font-size: 80%;
}

.adapter .sensor .text_wsd_temp {
	position: absolute;
	bottom: 0%;
	left: 4%;
	font-size: 155%;
}

.adapter .sensor .text_ws_speed {
	position: absolute;
	top: 20%;
	left: 4%;
	font-size: 400%;
	line-height: 0.8;
}

.adapter .sensor .text_level {
	position: absolute;
	top: 20%;
	left: 4%;
	font-size: 210%;
	line-height: 0.8;
}

.adapter .sensor .text_ws_temp {
	position: absolute;
	bottom: 0%;
	left: 4%;
	font-size: 155%;
}

.adapter .sensor .canvas_container {
	position: absolute;
	width: 125px;
	top: 15%;
	left: 40%;
}

.adapter .sensor .canvas {
	width: 125px;
	height: 125px;
}

.adapter .sensor .canvas_container .text_wsd_dir {
	position: relative;
	font-size: 155%;
	bottom: -4px;
}

.add_adapter {
	position: absolute;
	bottom: 0px;
	border-radius: 10px;
	width: 99%;
	height: 50px;
	padding: 0px;
	border: 2px solid white;
	background-color: var(--main-color);
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}

.add_adapter:hover {
	background-color: var(--inner-color);
	border: 2px solid var(--inner-color);
}

.add_adapter .text {
	font-size: 200%;
}

.header {
	position: absolute;
	top: 0%;
	width: 100%;
	height: 60px;
}

.header .button_container {
	top: 13%;
	position: absolute;
	right: 10px;
	height: 76%;
	width: 26%;
	min-width: 250px;
}

.header .license {
	width: 34%;
}

.header .button_container .button {
	width: 43%;
	height: 100%;
	padding: 0px;
	border-radius: 10px;
	border: 2px solid white;
	background-color: var(--main-color);
	font-size: 130%;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}

.header .button_container .license {
	width: 29%;
}

.header .button_container .help {
	width: 10%;
}

.header .button_container .button:hover {
	background-color: white;
	border: 2px solid var(--main-color);
}

.header .logo {
	background-image: url('../images/header.png');
	background-size: 167px 50px;
	position: absolute;
	top: 5px;
	left: 1%;
	width: 167px;
	height: 50px;
}

.live {
	position: absolute;
	width: 320px;
	min-width: 320px;
	height: calc(100% - 65px);
	top: 64px;
	left: 1%;
	overflow: hidden;
}

.live .inner {
	width: calc(100% + 15px);
	padding-right: 10px;
	height: 99%;
	overflow-y: scroll;
}

.graph_main_container {
	position: absolute;
	top: 100px;
	left: 340px;
	width: calc(100% - 350px);
	height: calc(100% - 100px);
	overflow: hidden;
}

.graph_main_container .inner {
	width: calc(100% + 15px);
	height: 99%;
	padding: 10px;
	overflow-y: scroll;
	overflow-x: hidden;
}

@keyframes graph_close {
	99% {
		max-height: 0px;
		opacity: 0;
		transform: translate(0px);
		margin-bottom: 20px;
		padding: 10px;
	}
	
	100% {
		max-height: 0px;
		opacity: 0;
		transform: translate(9999px);
		margin-bottom: 0px;
		padding: 0px;
	}
}

@keyframes graph_open {
	0% {
		opacity: 0;
	}
	1% {
		opacity: 0;
		max-height: 0px;
	}
	100% {
		max-height: 750px;
		opacity: 1;
	}
}

.graph_main_container .graph_container {
	position: relative;
	border: 2px solid var(--main-color);
	background: var(--main-color);
	max-height: 0px;
	display: block;
	opacity: 1;
	padding: 10px;
	margin-bottom: 20px;
	animation: graph_close 1s linear;
	animation-fill-mode: forwards;
}

.graph_main_container .graph_container .units_speed, .graph_main_container .graph_container .units_temp, .graph_main_container .graph_container .units_level {
	position: relative;
	left: 44px;
	font-size: 13px;
	color: var(--text-color);
}

.graph_main_container .graph_container .avg_speed {
	position: relative;
	color: blue !important;
	left: 25%;
	font-size: 13px;
}

.graph_main_container .graph_container .max_speed {
	position: relative;
	color: red !important;
	left: 50%;
	font-size: 13px;
}

.graph_main_container .graph_container.load {
	transform: translate(9999px);
}

.graph_main_container .graph_container .overlay {
	z-index: 998;
	position: absolute;
	width: 0%;
	height: 100%;
	opacity: 0;
	background: rgba(200,200,200,0.4);
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}

.graph_main_container .graph_container .overlay.show {
	width: 100%;
	opacity: 1;
}

.graph_main_container .graph_container .overlay .loader {
	z-index: 999;
	position: relative;
	width: 120px;
	height: 120px;		
	top: calc(50% - 60px);
	left: calc(50% - 60px);
	
	border: 16px solid #f3f3f3;
	border-radius: 50%;
	border-top: 16px solid #3498db;
	-webkit-animation: spin 2s linear infinite;
	animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
	0% { -webkit-transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.graph_main_container .graph_container.close {
   	animation: graph_close 1s linear;
   	animation-fill-mode: forwards;
}

.graph_main_container .graph_container.open {
	transform: translate(0px);
	margin-bottom: 20px;
	padding: 10px;
	animation: graph_open 1s linear;
	animation-fill-mode: forwards;
}

.graph_main_container .graph_container .button {
	position: absolute;
	width: 24px;
	height: 24px;
	top: 1%;
	right: 0.3%;
	padding: 0px;
	border: 2px solid white;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	background-color: white;
}

.graph_main_container .graph_container .button:hover {
	background-color:  var(--main-color);
	border: 2px solid var(--main-color);
}

.graph_main_container .graph_container p {
	font-size: 130%;
	font-weight: bold;
}

.graph_main_container .graph_container .graph {
	position: relative;	
	width: 100%;
}

.graph_main_container .graph_container .graph .dir_tab {
	position: absolute;
	top: 18px;
	right: 0px;
	height: 280px;
	width: 50px;
}

.graph_main_container .graph_container .graph .dir_tab td{
	width: 5px;
}

.graph_main_container .graph_container .graph .chart {
	width: calc(100% - 65px);
	height: 300px;
	max-height: 300px;
	cursor: crosshair;
	margin: 0px 0px 25px 0px;
}

.graph_main_container .graph_container .graph .chart.hide {
	height: 0px;
	/*max-height: 0px;*/
}

.graph_tooltip {
	position: absolute;
	top: 64px;
	left: 350px;
	width: calc(100% - 370px);
	height: 35px;
	padding: 5px;
	background: var(--main-color);
}

.graph_tooltip .button_container {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 40%;
	display: flex;
	flex-direction: row;
	height: 100%;
	border: 2px solid var(--main-color);
}

.graph_tooltip .button_container .button {
	width: 20%;
	height: 100%;
	padding: 0px;
	font-size: 130%;
	border: 0px solid var(--main-color);
	border-radius: 0px;
	border: 2px solid white;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	background-color: var(--main-color);
}

.graph_tooltip .button_container .button:hover, .graph_tooltip .button_container .button.active {
	background-color:  white;
	border: 2px solid var(--main-color);
}

.graph_tooltip .legend {
	position: absolute;
	top: 5px;
	right: 25px;
	font-size: 115%;
	display: inline-block;
	height: 100%;
}

.overlay {
	position: relative;
	width: 0%;
	height: 0%;
	opacity: 0.;
	background: rgba(200,200,200,0);
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	left: 50%;
}

.overlay.show {
	transform: translate(-50%);
	width: 100%;
	height: 100%;
	background: rgba(200,200,200,0.7);
}

.overlay.intro{
	transform: translate(-50%);
	width: 100%;
	height: 100%;
	background: white;
}

.overlay .inner {
	position: absolute;
	top: 10%;
	left: 25%;
	width: 50%;
	height: 80%;
	background: white;
	border-radius: 20px;
	opacity: 1;
	overflow: hidden;
}

.overlay .inner input, .overlay .inner select {
	width: 250px;
	background-color:  white;
	border: 2px solid var(--inner-color);
	border-radius: 2px;
}

.overlay .inner input[type="submit"], .overlay .inner .button_mp {
	cursor: pointer;
	width: 280px;
	padding: 10px 50px 10px 50px;
	border: 2px solid white;
	font-size: 130%;
	border-radius: 10px;
	background-color:  var(--main-color);
	color: gray;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}

.overlay .inner input[type="submit"]:hover, .overlay .inner .button_mp:hover, .overlay .inner .button_mp.active {
	background-color:  white;
	border: 2px solid var(--main-color);
}

.overlay .inner input[type="checkbox"] {
	width: 50px;
}

.overlay .inner .button_mp.stack {
	width: auto;
	text-align: center;
	display: inline-block;
	float: left;
	padding: 10px;
	margin-left: 10px;
}

.overlay .inner .settigs_general {
	width: 102%;
	height: 100%;
	padding: 2%;
	overflow-y: scroll;
}

.overlay .inner .settings_general_selector {
	margin-left: 5%;
	height: 11%;
	//overflow-x: scroll;
	margin-bottom: 50px;
}


.overlay .inner .settigs_general .noshow {
	display: none;
}

.overlay .inner .settigs_general .intro_logo {
	width: 100%;
	height: 40%;
	max-height: 278px;
	max-width: 929px;
	background-image: url('../images/header.png');
	background-size: 100%;
	background-repeat: no-repeat;
}


.overlay .inner .settigs_general .settigs_inner {
	background-color: var(--main-color);
	border-radius: 10px;
}


.overlay .inner .settigs_general .button {
	position: absolute;
	width: 24px;
	height: 24px;
	top: 1%;
	right: 1%;
	padding: 0px;
	border: 2px solid white;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	background-color: white;
}

.overlay .inner .settigs_general .button:hover {
	background-color:  var(--main-color);
	border: 2px solid var(--main-color);
}

.overlay .inner .settigs_general form, .overlay .inner .settigs_general .divform {
	width: 100%;
	display: none;
}

.overlay .inner .settigs_general form .show, , .overlay .inner .settigs_general .divform.show {
	display: block;
}

.overlay .inner .settigs_general table {
	position: relative;
	width: 80%;
	left: 12.5%;
}

.overlay .inner .settigs_general table td {
	width: 50%;
	padding: 3px;
}

.overlay .inner .settigs_general .change_login_details {
	max-height: 0px;
	overflow: hidden;
	background-color: var(--main-color);
	border-radius: 10px;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}

.overlay .inner .settigs_general .change_login_details.show {
	max-height: 500px;
}

/* GRAFI */

.ct-label {
	font-size: 15px;
	color: var(--text-color);
}

.ct-series-a .ct-line {
  stroke: blue;
  stroke-width: 2px;
}	
.ct-series-a .ct-point {
  stroke: blue;
  opacity: var(--clicker);
  stroke-width: 40px;
}

.ct-series-b .ct-line {
  stroke: red;
  stroke-width: 2px;
}	
.ct-series-b .ct-point {
  stroke: red;
  opacity: var(--clicker);
  stroke-width: 40px;
}

.ct-series-c .ct-line {
  stroke: black;
  stroke-width: 5px;
}	
.ct-series-c .ct-point {
  stroke: black;
  opacity: .0;
  stroke-width: 10px;
}

.ct-series-d .ct-line {
	stroke-width: 0px;
}	
.ct-series-d .ct-point {
	stroke: green;
	stroke-width: 4px;
	stroke-linecap: square;
}

.ct-series-e .ct-line {
	stroke-width: 0px;
}	
.ct-series-e .ct-point {
	stroke: green;
	stroke-width: 15px;
	opacity: var(--clicker); 
}

.ct-series-a .ct-area {
	fill: DarkBlue;
}

.ct-series-b .ct-area {
	fill: purple;
}

.graph_main_container .graph_container .temp .ct-series-a .ct-line {
	stroke: purple;
	stroke-width: 2px;
}
.graph_main_container .graph_container .temp .ct-series-a .ct-point {
	stroke: purple;
	opacity: var(--clicker);
	stroke-width: 40px;
}

#log_download_status_text {
	text-align: center;
	font-size: 135%;
	display: none;
}

#myProgress {
	width: 50%;
	border: 2px solid var(--inner-color);
	display: none;
}

#myBar {
	width: 1%;
	height: 30px;
	background-color: var(--inner-color);
	text-align: center;
	line-height: 30px;
}

/* MEDIA for phones */

@media (max-width: 1270px) {
	.graph_tooltip {
		height: 70px;
	}

	.graph_tooltip .button_container {
		height: 50%;
		width: 100%;
	}

	.graph_tooltip .legend {
		top: 50%;
		left: 2%;
		height: 40%;
	}

	.graph_main_container {
		top: 135px;
	}
}


/* VIEW ACCOUNT */
.selectBox {
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
  position: relative;
}

.selectBox select {
  width: 100%;
  /*font-weight: bold;*/
}

.overSelect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#checkboxes {
  display: none;
  border: 1px #dadada solid;
  width: 250px;
  text-align: left;
}

#checkboxes label {
  display: block;
  font-weight: normal;
}

#checkboxes label:hover {
  background-color: #1e90ff;
}


.overlay .inner .button_mp.view_del
{
	display: inline-block;
	width: 100px;
	height: 30px;
	
   background-color: #f2210d;
   color: white;
   vertical-align: middle;
   padding: 2px;
}

.overlay .inner .button_mp.view_del:hover {
	background-color: #AA0000;
}

.overlay .inner .button_mp.view_del.hide
{
   display:none;
}

.overlay .inner .button_mp.view_copy {
	display: inline-block;
	width: 100px;
	height: 30px;
	
	background-color: #3333FF;
	color: white;
	vertical-align: middle;
	padding: 2px;

	-moz-transition: all .2s ease-in;
	-o-transition: all .2s ease-in;
	-webkit-transition: all .2s ease-in;
}

.overlay .inner .button_mp.view_copy:hover
{
	background-color: #1111AA;
}

.overlay .inner .button_mp.view_copy.hide
{
	display:none;
}

.overlay .inner .button_mp.view_copy.gen
{
	width: 204px;
}

.overlay .inner input.genview_input {
	width: 400px;
}
