[data-bs-theme=dark] {

	--bs-body-bg: #1a1a1a;
	--bs-body-bg-rgb: #1a1a1a;
}

body {
	margin: 0 auto;
	padding: 0;
}

body::after {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	z-index: -1;
	content: url(/img/garage_light_off.webp) url(/img/garage_light_on.webp);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto: wght@500&dispLay=swap');

body.dashboard main {
	width: 100vw;
}

#alltesla {
	height: 88vh;
	width: 100%;
	background-color: transparent;
	position: relative;
}

.preloader-ico {
	position: absolute;
	right: 10px;
	top: 8px;
	width: 16px;
	height: 16px;
}

#sensors {
	position: relative;
	top: 50px;
	left: 50px;
	width: 200px;
	height: 200px;
	z-index: 100;
	float: left;
}

#sensors ul {
	list-style: none;
	margin-left: 0;
	padding: 0;
}

#buttons-content {
	width: 1060px;
	height: 300px;
	margin: 0 auto;
}

.boki_plot {
	z-index: 23;
	background-position: center bottom;
	margin: 0 auto;
	text-align: center;
	background-repeat: no-repeat;
	position: absolute;
}

#gate,
#garage,
#light {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.1);
	width: 200px;
	height: 65px;
	border-radius: 15px;
	margin-bottom: 10px;

}

#infor {
	position: absolute;
	padding: 5px;
	color: red;
	z-index: 400;
	color: #333;
}

.text {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 70px;

	font-size: 15px;
	font-family: 'Roboto', sans-serif;
}

.ico {
	border-radius: 50px;
	margin: 10px;
	padding: 10px;
	width: 45px;
	height: 45px;
	background-size: 30px 30px;
	background-position: center center;
	text-align: left;
	background-color: rgba(0, 0, 0, 0.3);
	background-repeat: no-repeat;
	cursor: pointer;
}

.closed .text,
.button.off .text {}

.light_text {}

.opened,
.button.on,
.button.opening {
	background-color: #3e6be2 !important;
	color: #ffffff;
}

.button.blocked {
	background-color: #e23e3e !important;
	color: #ffffff;
}

.garage.opened .ico,
.garage.opening .ico {
	background-color: rgba(255, 255, 255, 1);
	background-image: url(/img/ico_garage_open.svg) !important;
}

.garage.closed .ico,
.garage.closing .ico {
	background-image: url(/img/ico_garage_close.svg);
}

.gate.closed .ico,
.gate.closing .ico {
	background-image: url(/img/ico_gate_close.svg);
}

.gate.opened .ico,
.gate.opening .ico {
	background-color: #ffffff !important;
	background-image: url(/img/ico_gate_open.svg);
}

.light.off .ico {
	background-image: url(/img/ico_light_off.svg);
}

.light.on .ico {
	background-color: #ffffff !important;
	background-image: url(/img/ico_light_on.svg);
}

[data-bs-theme=dark] .garage_light.off {
	background-image: url(/img/garage_dark_off.webp);
}

[data-bs-theme=dark] .garage_light.on {
	background-image: url(/img/garage_dark_on.webp);
}

.garage_light.off {
	background-image: url(/img/garage_light_off.webp);
}

.garage_light.on {
	background-image: url(/img/garage_light_on.webp);
}

.but_close,
.ico_close,
.but_run,
.but_close {
	background-size: 30px 30px;
}

/* Stylowanie dla ekran�w o szer od 0 do 999px */
@media screen and (min-width: 0px) and (max-width: 999px) {

	#alltesla {
		width: 100%;
		margin: 0 auto;
		height: 90vh;
	}

	#content-garage,
	#door,
	#door-mask {
		margin: 0 auto;
		margin-top: 20px;
		width: 100%;
		height: 20%;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center top;
		position: absolute;
		left: 50%;
		transform: translate(-50%, 0%);
	}

	#buttons-content {
		width: 376px;
		height: 300px;
		left: 50%;
		transform: translate(-50%, 0%);
		position: absolute;
		bottom: 50px;
		z-index: 1000;

	}

	#buttons {

		position: absolute;
		width: 97%;
		top: 118px;
		left: 50%;
		transform: translate(-50%, 0%);
		padding: 0px 10px 0px 0px;

	}

	#sensors {
		position: relative;
		width: 100%;
		margin: 0 auto;
		top: unset;
		left: unset;
		z-index: unset;
		height: 150px;
	}

	.temperature-content,
	.humidity-content,
	.lux-content,
	.motion-content {
		float: left;
		margin: 0 3px;
	}

	#content-garage {
		z-index: 1;
	}

	[data-bs-theme=dark] #door {
		background-image: url(/img/drzwi_dark.webp);
		z-index: 2;
	}

	[data-bs-theme=dark] #door-mask {
		background-image: url(/img/maska_dark.webp);
		z-index: 3;
	}


	#door {
		background-image: url(/img/drzwi_light.webp);
		z-index: 2;
	}

	#door-mask {
		background-image: url(/img/maska_light.webp);
		z-index: 3;
	}


	.boki_plot {
		background-image: url(/img/plot_light.webp);
		background-size: cover;
		width: 380px;
		height: 180px;
		left: 50%;
		transform: translate(-50%, 0%);
		background-position: center 0;
		top: 19vh;
	}

	[data-bs-theme=dark] .boki_plot {
		background-image: url(/img/plot_dark.webp);
	}

	#gate,
	#garage,
	#light {
		margin: 14px 0px 0px 14px;
		cursor: pointer;
		position: relative;
		background-color: rgba(0, 0, 0, 0.1);
		width: 160px;
		height: 60px;
		border-radius: 15px;
		float: left;
	}

	#brama {
		background-image: url(/img/brama_light.webp);
		background-size: cover;
		width: 330px;
		background-repeat: no-repeat;
		height: 180px;
		background-position: 0 0;
		margin: 0 auto;
		position: absolute;
		top: 19vh;
		left: 50%;
		transform: translate(-50%, 0%);
	}

	[data-bs-theme=dark] #brama {
		background-image: url(/img/brama_dark.webp);
	}


	#data {
		display: none;
	}

	#data_mobile {
		background: #eee;
		position: relative;
		width: 100vw;
		height: 20vh;
	}
}

/*END Stylowanie dla ekran?w o szer od 0 do 999px */

/* Stylowanie dla ekran�w o szer powy�ej 1000px */
@media screen and (min-width: 1000px) {

	.boki_plot,
	#brama,
	#plot-tlo {
		bottom: 5px;
	}

	#content-garage {
		z-index: 1;
	}

	[data-bs-theme=dark] #door {
		background-image: url(/img/drzwi_dark.webp);
		z-index: 2;
	}

	[data-bs-theme=dark] #door-mask {
		background-image: url(/img/maska_dark.webp);
		z-index: 3;
	}

	#door {
		background-image: url(/img/drzwi_light.webp);
		z-index: 2;
	}

	#door-mask {
		background-image: url(/img/maska_light.webp);
		z-index: 3;
	}

	#content-garage,
	#door,
	#door-mask {
		width: 1180px;
		height: 70vh;
		margin-top: 40px;
		background-size: auto;
		background-repeat: no-repeat;
		background-position: 0px 0px;
		position: absolute;
		left: 50%;
		transform: translate(-50%, 0%);
	}

	#buttons {
		height: 300px;
		z-index: 100;
		background: transparent;
		width: 220px;
		height: 300px;
		margin-top: 40px;
		position: relative;
		float: right;
	}

	#plot-tlo {
		width: 100vw;
		height: 40vh;
		position: absolute;
		opacity: 1;
		z-index: 10;
		background-repeat: no-repeat;
		background-position: 0 0;
		background-size: auto;
		left: 50%;
		transform: translate(-50%, 0%);

	}


	.boki_plot {
		width: 1400px;
		height: 40vh;
		z-index: 12;
		background-image: url(/img/plot_light.webp);
		position: absolute;
		opacity: 1;
		background-repeat: no-repeat;
		background-position: center 0;
		background-size: auto;
		left: 50%;
		transform: translate(-50%, 0%);
	}

	[data-bs-theme=dark] .boki_plot {
		background-image: url(/img/plot_dark.webp);
	}

	#brama {
		background-image: url(/img/brama_light.webp);
		z-index: 8;
		width: 840px;
		height: 40vh;
		position: absolute;
		opacity: 1;
		background-repeat: no-repeat;
		background-position: 0 0;
		background-size: auto;
		left: 50%;
		transform: translate(-50%, 0%);
	}

	[data-bs-theme=dark] #brama {
		background-image: url(/img/brama_dark.webp);
	}

	#buttons {
		height: 300px;
		z-index: 100;
		background: transparent;
	}

	#garage,
	#gate,
	#light {
		margin-top: 10px;
		cursor: pointer;
		float: left;
		position: relative;
	}

	#data {
		position: absolute;
		top: 50px;
		left: 50px;
		width: 200px;
		text-align: center;
		height: 200px;
		z-index: 100;
		border: 1px solid #ddd;
	}

	/* END Stylowanie dla ekran�w o szer powy�ej 1179px */
}

.gate-container {
	width: 100%;
	height: 379px;
	justify-content: center;
	display: flex;
	overflow-x: hidden;
}

.gate-left {
	background-image: url(../img/plot_light_repeat.png);
	background-size: contain;
	background-repeat: repeat-x;
	height: 379px;
	flex-grow: 1;
}
.gate-center {
	position: relative;
	height: 379px;
	width: 1180px;
	min-width: 1180px;
	background-image: url(../img/plot_light.png);
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
}
.gate-move {
	background-image: url(../img/brama_light.png);
	background-size: cover;
	background-repeat: no-repeat;
	z-index: -1;
	width: 794px;
}
.gate-right {
	background-image: url(../img/plot_light_repeat.png);
	background-size: contain;
	background-repeat: repeat-x;
	height: 379px;
	flex-grow: 1;
	margin-top: -1px;
}

.garage {
	display: flex;
	justify-content: center;
}

.garage-interior {
	background-image: url(../img/garage_light_off.png);
	background-size: contain;
	background-repeat: no-repeat;
	height: 380px;
	width: 1180px;
	min-width: 1180px;
	display: flex;
	justify-content: center;
	z-index: 1;
	position: relative;
}

.garage-door {
	background-image: url(../img/drzwi_light.png);
	background-size: contain;
	background-repeat: no-repeat;
	height: 305px;
	width: 435px;
	min-width: 435px;
	background-repeat: no-repeat;
	z-index: 2;
}

.garage-door-mask {
	background-image: url(../img/maska_light.png);
	background-size: contain;
	background-repeat: no-repeat;
	height: 305px;
	width: 435px;
	min-width: 435px;
	z-index: -3;
}

.sensors {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
}

.sensor {
	width: 200px;
	flex-grow: 1;
}

.grid-items-vertical {
	display: flex;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}

.grid-items-horizontal {
	display: none;
	flex-flow: row wrap;
	justify-content: center;
}

.grid-column {
	min-width: 310px;
	margin-top: 20px;
	display: flex;
	align-items: flex-start;
}

.grid-column-left {
	justify-content: flex-end;
}

.grid-column-right {
	justify-content: flex-start;
}

.grid-column-spacer {
	flex: 1;
}

.grid-items-vertical .sensors {
	flex-flow: column wrap;
}

@media screen and (max-width: 999px) {
	.gate-container {
		height: 132px;
	}

	.gate-left {
		height: 132px;
	}

	.gate-center {
		height: 132px;
		width: 412px;
		min-width: 412px;
	}

	.gate-move {
		width: 256px;
	}

	.gate-right {
		height: 132px;
	}

	.garage-interior {
		height: 132px;
		width: 412px;
		min-width: 412px;
	}

	.garage-door {
		height: 106px;
		width: 152px;
		min-width: 152px;
	}

	.garage-door-mask {
		height: 106px;
		width: 152px;
		min-width: 152px;
	}

	.grid-items-vertical {
		display: none;
	}

	.grid-items-horizontal {
		display: flex;
	}
}
