* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	background-color: #d6d6d6;
	height: 100%;
	width: 100%;
	overflow: hidden; /* Verhindert Scrollen */
}

body {
	display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

.header {
	height: 10%;
	display: flex;
	align-items: center;
	width: 50%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1rem;
}

.img-logo {
	margin: auto;
	width: 100%;
	height: auto;
	/* max-height: 60px; */
	display: block;
}

.main {
	display: flex;
	align-items: center;
	flex: 1;
    overflow-y: auto;
	height: 85%;
	width: auto;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;

	position: relative;
	margin: 0 auto;
	overflow: hidden;
}

.bg-img {
	width: auto;
	height: 90%;
	margin-left: auto;
	margin-right: auto;

	z-index: 0;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.telid {
	max-width: 31%;
	max-height: 31%;
	z-index: 1;
	/* cursor: pointer; */
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
}
#telid1 {
	transform: translate(-99%, -116%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid2 {
	transform: translate(99%, -116%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid3 {
	transform: translate(-76%, 11%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid4 {
	transform: translate(76%, 11%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid5 {
	transform: translate(-76%, 138%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid6 {
	transform: translate(76%, 138%); /* X und Y Verschiebung - 0% = zentriert */
}

.telid-lr {
	max-width: 52%;
	max-height: 52%;
	z-index: 1;
	/* cursor: pointer; */
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
}
#telid-r-2 {
	transform: translate(39%, -102.5%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid-l-3 {
	transform: translate(-26%, 7%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid-r-4 {
	transform: translate(25.5%, 13.5%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid-l-5 {
	transform: translate(-26%, 122.5%); /* X und Y Verschiebung - 0% = zentriert */
}
#telid-r-6 {
	transform: translate(26%, 129%); /* X und Y Verschiebung - 0% = zentriert */
}

.footer {
	height: 5%;
	text-align: center;
	width: 50%;
	margin: auto;
	display: table;
	font-size: 1rem;
}

span {
	display: table-cell;
	vertical-align: middle;
	line-height: normal;
}

.leds {
	max-width: 3%;
	max-height: 3%;
	z-index: 1;
	opacity: 1.0;
}
#led-green-ble-ok, 
#led-red-ble-notok {
	transform: translate(-390%, -1810%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-blue-ble-connected, 
#led-gray-ble-notconnected {
	transform: translate(-320%, -1640%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-white-rfid-1, 
#led-gray-rfid-1,
#led-yellow-rfid-1,
#led-green-rfid-1 {
	transform: translate(-388%, -1200%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-white-rfid-2, 
#led-gray-rfid-2,
#led-yellow-rfid-2,
#led-green-rfid-2 {
	transform: translate(388%, -1200%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-white-rfid-3, 
#led-gray-rfid-3,
#led-yellow-rfid-3,
#led-green-rfid-3 {
	transform: translate(-165%, 112%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-white-rfid-4, 
#led-gray-rfid-4,
#led-yellow-rfid-4,
#led-green-rfid-4 {
	transform: translate(165%, 112%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-white-rfid-5, 
#led-gray-rfid-5,
#led-yellow-rfid-5,
#led-green-rfid-5 {
	transform: translate(-165%, 1425%); /* X und Y Verschiebung - 0% = zentriert */
}

#led-white-rfid-6, 
#led-gray-rfid-6,
#led-yellow-rfid-6,
#led-green-rfid-6 {
	transform: translate(165%, 1425%); /* X und Y Verschiebung - 0% = zentriert */
}


.button-fullsize {
	max-width: 9%;
	max-height: 9%;
	z-index: 1;
	transform: translate(-355%, -665%); /* X und Y Verschiebung - 0% = zentriert */
	/* cursor: pointer; */
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
}
.button-info {
	max-width: 9%;
	max-height: 9%;
	z-index: 1;
	transform: translate(355%, -665%); /* X und Y Verschiebung - 0% = zentriert */
	/* cursor: pointer; */
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
}
.button-ble {
	max-width: 14%;
	max-height: 14%;
	z-index: 1;
	transform: translate(20%, -390%); /* X und Y Verschiebung - 0% = zentriert */
	/* cursor: pointer; */
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
}

.buttons-overlay {
	z-index: 2;
	border-radius: 50%;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	background-color: transparent;
}
#button-fullsize-overlay {
	transform: translate(-355%, -665%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-info-overlay {
	transform: translate(355%, -665%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-ble-overlay {
	transform: translate(20%, -390%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-telid-1-overlay {
	transform: translate(-99%, -116%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-telid-2-overlay {
	transform: translate(99%, -116%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-telid-3-overlay {
	transform: translate(-76%, 11%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-telid-4-overlay {
	transform: translate(76%, 11%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-telid-5-overlay {
	transform: translate(-76%, 138%); /* X und Y Verschiebung - 0% = zentriert */
}
#button-telid-6-overlay {
	transform: translate(76%, 138%); /* X und Y Verschiebung - 0% = zentriert */
}

.serial-frontend {
	max-width: 27%;
	max-height: 3%;
	min-width: 27%;
	min-height: 3%;
	/* border: 1px solid black;
	background-color: blanchedalmond; */
	color: white;
	font-size: min(1.5vw, 20px); /* Dynamische Anpassung */
	font-weight: normal;
	display: flex;
    justify-content: center;
  	align-items: center;
	z-index: 1;
}
#serial-frontend-1 {
	transform: translate(-114%, -750%); /* X und Y Verschiebung - 0% = zentriert */
}
#serial-frontend-2 {
	transform: translate(114%, -750%); /* X und Y Verschiebung - 0% = zentriert */
}
#serial-frontend-3 {
	transform: translate(-87.5%, 70%); /* X und Y Verschiebung - 0% = zentriert */
}
#serial-frontend-4 {
	transform: translate(87.5%, 70%); /* X und Y Verschiebung - 0% = zentriert */
}
#serial-frontend-5 {
	transform: translate(-87.5%, 900%); /* X und Y Verschiebung - 0% = zentriert */
}
#serial-frontend-6 {
	transform: translate(87.5%, 900%); /* X und Y Verschiebung - 0% = zentriert */
}

.status-frontend,
.time-utc {
	max-width: 27%;
	max-height: 3%;
	min-width: 27%;
	min-height: 3%;
	/* border: 1px solid black;
	background-color: blanchedalmond; */
	color: white;
	font-size: min(1.5vw, 20px); /* Dynamische Anpassung */
	font-weight: bold;
	display: flex;
    justify-content: center;
  	align-items: center;
	z-index: 1;
}
#status-frontend-1 {
	transform: translate(-114%, -900%); /* X und Y Verschiebung - 0% = zentriert */
}
#status-frontend-2 {
	transform: translate(114%, -900%); /* X und Y Verschiebung - 0% = zentriert */
}
#status-frontend-3 {
	transform: translate(-87.5%, -80%); /* X und Y Verschiebung - 0% = zentriert */
}
#status-frontend-4 {
	transform: translate(87.5%, -80%); /* X und Y Verschiebung - 0% = zentriert */
}
#status-frontend-5 {
	transform: translate(-87.5%, 750%); /* X und Y Verschiebung - 0% = zentriert */
}
#status-frontend-6 {
	transform: translate(87.5%, 750%); /* X und Y Verschiebung - 0% = zentriert */
}

.battery-frontend {
	max-width: 27%;
	max-height: 3%;
	min-width: 27%;
	min-height: 3%;
	/* border: 1px solid black;
	background-color: blanchedalmond; */
	color: white;
	font-size: min(1.5vw, 20px); /* Dynamische Anpassung */
	font-weight: bold;
	display: flex;
    justify-content: center;
  	align-items: center;
	z-index: 1;
}
#battery-frontend-1 {
	transform: translate(-114%, -640%); /* X und Y Verschiebung - 0% = zentriert */
}
#battery-frontend-2 {
	transform: translate(114%, -640%); /* X und Y Verschiebung - 0% = zentriert */
}
#battery-frontend-3 {
	transform: translate(-87.5%, 180%); /* X und Y Verschiebung - 0% = zentriert */
}
#battery-frontend-4 {
	transform: translate(87.5%, 180%); /* X und Y Verschiebung - 0% = zentriert */
}
#battery-frontend-5 {
	transform: translate(-87.5%, 1010%); /* X und Y Verschiebung - 0% = zentriert */
}
#battery-frontend-6 {
	transform: translate(87.5%, 1010%); /* X und Y Verschiebung - 0% = zentriert */
}

#time-utc {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */

	font-weight: lighter;
	text-wrap-mode: nowrap;
	transform: translate(0%, 1400%); /* X und Y Verschiebung - 0% = zentriert */
}

/* for button blinking */
.blinking {
	opacity: 0.4;
	-webkit-animation: glowing 1300ms infinite;
	-moz-animation: glowing 1300ms infinite;
	-o-animation: glowing 1300ms infinite;
	animation: glowing 1300ms infinite;
}
@-webkit-keyframes glowing {
	0% {
		background-color: #0091b2;
		-webkit-box-shadow: 0 0 3px #0091b2;
	}
	50% {
		background-color: #21c7ed;
		-webkit-box-shadow: 0 0 15px #21c7ed;
	}
	100% {
		background-color: #0091b2;
		-webkit-box-shadow: 0 0 3px #0091b2;
	}
}
@keyframes glowing {
	0% {
		background-color: #0091b2;
		box-shadow: 0 0 3px #0091b2;
	}
	50% {
		background-color: #21c7ed;
		box-shadow: 0 0 15px #21c7ed;
	}
	100% {
		background-color: #0091b2;
		box-shadow: 0 0 3px #0091b2;
	}
}


@media screen and (max-width: 1600px) {
	.header, .footer {
		width: 60%;
	}
}

@media screen and (max-width: 1400px) {
	.header, .footer {
		width: 70%;
	}
}

@media screen and (max-width: 1200px) {
	.header, .footer {
		width: 70%;
	}
}

@media screen and (max-width: 1000px) {
	.header, .footer {
		width: 80%;
	}
}

@media screen and (max-width: 900px) {
	.header, .footer {
		width: 90%;
	}
}

@media screen and (max-width: 800px) {
	.header, .footer {
		width: 95%;
	}
}
