@import url("https://fonts.googleapis.com/css?family=Raleway:300");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@font-face {
	font-family: "digital-font";
	src: url("../assets/digital-7/digital-7.ttf");
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Poppins, sans-serif;
	img {
		user-select: none;
		-webkit-user-drag: none; /* prevents dragging in Safari */
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
	}
}

body {
	font-family: Poppins, sans-serif;
}
img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
img {
  pointer-events: none; /* optional: blocks all interaction */
}

h2 {
	font-size: 2.5rem;
	text-align: center;
	color: #e97451;
}

.container {
	border: 2px solid black;
	margin-top: 1rem;
	margin-left: 1vw;
	width: 94rem;
	height: 44rem;
	padding-top: 1rem;
	background-color: #e3dac9;
	position: relative;
}

.topic {
	height: 2%;
	font-size: 1.3rem;
	text-decoration-color: brown;

	text-align: center;
	font-weight: 700;
}

.topic span {
	color: #ff0000;
}

.main {
	height: 83%;
	padding-left: 1%;
	padding-right: 1%;
	padding-top: 2%;
	display: flex;
	gap: 1%;
}

.left {
	width: 65%;
	height: 100%;
	border-radius: 5%;
	box-shadow: 5px 5px 20px 5px #888888;
	background-color: #5d858b;
	background: url("../images/bg-image.jpg") no-repeat center/cover;
}

.right {
	/* border: 2px solid black; */
	position: relative;
	width: 35%;
	height: 100%;
	border-radius: 5%;
	box-shadow: 5px 5px 20px 5px #888888;
	background-color: whitesmoke;
	overflow: hidden;

	h1 {
		color: green;
		position: absolute;
		font-weight: 700;
		font-size: 4rem;
		top: 13.5rem;
		left: 9.5rem;
		text-shadow: 0px 0px 5px black;
	}

	img {
		height: 100%;
		width: 100%;
	}
}

.buttons {
	height: 10%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20%;
}

.buttons button {
	padding: 0.5rem 1rem;
	border-radius: 62rem;
	box-shadow: 2px 2px 5px 2px #888888;
	border: none;
}

.footer {
	border: 2px solid black;
	height: 5%;
	text-align: center;
	background-color: #555555;
	color: white;
}

.start {
	background-color: #03c03c;
	color: white;
	transition: all 0.3s ease-in-out;
}

.start:hover {
	background-color: #228b22;
	transform: scale(1.1);
	cursor: pointer;
}

.graph {
	background-color: #ed2839;
	color: white;
	transition: all 0.3s ease-in-out;
}

.graph:hover {
	background-color: #dc143c;
	transform: scale(1.1);
	cursor: pointer;
}

.print {
	background-color: #1f75fe;
	color: white;
	transition: all 0.3s ease-in-out;
}

.print:hover {
	background-color: #3457d5;
	transform: scale(1.1);
	cursor: pointer;
}

.reset {
	background-color: #79443b;
	color: white;
	transition: all 0.3s ease-in-out;
}

.reset:hover {
	background-color: #3d2b1f;
	transform: scale(1.1);
	cursor: pointer;
}

.bookmark-wrapper {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-block;
}

.bookmark {
	position: relative;
	color: #ffbf00;
	font-size: 3rem;
	transform: rotate(-90deg) translateY(-0.75rem);
	cursor: pointer;
}

.bookmark-icon {
	position: absolute;
	top: 0.3rem;
	right: 0.3rem;
	color: black;
	font-size: 1.5rem;
	transform: rotate(90deg) translateY(0.2rem) translateX(0.2rem);
}

#popup h4 {
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 0.8em;
	margin-bottom: 1rem;
}

#popup {
	position: absolute;
	top: 2.5rem;
	left: 0;
	background-color: #555;
	color: white;
	padding: 0.8rem 1.2rem;
	border-radius: 8px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.4s ease;
	pointer-events: none;
	z-index: 50 !important;
	width: 20rem;
}

.bookmark-wrapper:hover #popup {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.battery1 {
	width: fit-content;

	img {
		height: 13rem;
		margin-top: -2rem;
		margin-left: -1rem;
	}

	.clamper {
		position: absolute;

		left: 12.6rem;
	}
}

.battery2 {
	width: fit-content;
	position: relative;
	top: -13rem;
	filter: drop-shadow(0 0 20px #000);

	img {
		height: 13rem;
	}

	.clamper {
		position: absolute;
		top: 20rem;
	}
}

.battery-analyzer {
	/* overflow: hidden; */
	position: relative;
	width: fit-content;
	height: fit-content;
	left: 21.2rem;
	top: -7rem;

	img {
		height: 22rem;
	}
}

.screen1 {
	height: 29%;
	width: 50%;
	background-color: black;
	opacity: 0.8;
	transition: all 0.3s ease-in-out;
	position: absolute;
	border-radius: 1rem;
	z-index: 1;
	top: 8.7rem;
	left: 4.5rem;
	transform: rotate(-1.3deg);
	box-shadow: 0 0 0 4px black, 0 0 0 8px #5a555b, 0 0 0 9px black,
		0 0 0 6px whitesmoke;
}

.screen1:hover {
	cursor: pointer;
}

.screen2 {
	border: 2px solid black;
	height: 29%;
	width: 50%;
	border-radius: 1rem;
	background: linear-gradient(to right, #364349 5%, #44708b 30%, #bbb 100%);
	box-shadow: 0 0 0 4px black, 0 0 0 8px #5a555b, 0 0 0 9px black,
		inset 5px 5px 15px rgba(0, 0, 0, 0.3);
	position: absolute;
	border-radius: 10%;
	top: 8.7rem;
	left: 4.5rem;
	overflow: hidden;
	transform: rotate(-1.3deg);
	img {
		width: 5.2rem;
		height: 3rem;
	}
	.screen-graphs {
		display: none;
		border: 2px solid black;
		span {
			position: absolute;
			color: red;
			font-size: 0.7rem;
			font-weight: 700;
		}
		.span-voltage {
			top: 2.2rem;
			left: 1rem;
		}
		.span-soc {
			top: 2.2rem;
			left: 7rem;
		}
		.span-speed {
			top: 5.2rem;
			left: 1rem;
		}
		.span-current {
			top: 5.2rem;
			left: 7rem;
		}
	}
}

.name {
	transform: rotate(-1deg);
	position: absolute;
	top: 6.6rem;
	left: 7rem;
	text-decoration: underline;
	text-underline-offset: 0.3em;
	font-size: 0.8rem;
	color: white;
	font-weight: 700;
	text-align: center;

	span {
		font-size: 1rem;
	}
}

.power {
	height: 1.7rem;
	border: none;
	width: 1.7rem;
	border-radius: 62rem;
	color: rgb(15, 173, 15);
	background-color: #564d50;
	font-size: 0.8rem;
	border: none;
	position: absolute;
	top: 16.5rem;
	left: 11rem;
	box-shadow: -1px 1px 1px 1px #161313, inset -2px 2px 5px 2px #161313;
}

.power i {
	transform: translateX(-0.05rem) translateY(0.1rem);
}

.power:hover {
	cursor: pointer;
	background-color: #3d3739;
}

.visibility {
	opacity: 0;
}

.screen2-data {
	display: grid;
	grid-template-columns: repeat(2, 5.3rem); /* Each column is 200px wide */
	grid-template-rows: repeat(2, 3rem); /* Each row is 200px tall */
	border: 2px solid black;
	height: 100%;
	width: 100%;
	overflow: hidden;
	gap: 1px;
	font-size: 1.3rem;
	border-radius: 10%;

	color: white;
	font-weight: 600;
	visibility: hidden;
	position: absolute;
}

.screen2-data div {
	background-color: #161313;
}

.hide {
	visibility: visible !important;
}

.w {
	height: 25%;
	width: 100%;
	border-bottom: 2px solid black;
	display: none;
}
.hidden {
	display: none !important;
}
.loading {
	position: absolute;
	top: 15rem;
	left: 13rem;
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	color: #555;
}

.bordering {
	border: none !important;
}

.wson {
	width: 100%;
	height: 100%;
	margin-left: 1rem;
}

#svg1 {
	position: absolute;
	z-index: 2;
	top: 8.7rem;
	left: 14.8rem;
	height: 5rem;
}

#svg2 {
	position: absolute;
	z-index: 2;
	top: 11.5rem;
	left: 14.8rem;
	height: 5rem;
}

#percent1 {
	position: absolute;
	top: 10.7rem;
	color: white;
	width: 1rem;
	text-align: center;
	left: 16.8rem;
	z-index: 3;
	font-size: 0.6rem;
	font-weight: bold;
}

#percent2 {
	position: absolute;
	top: 13.4rem;
	width: 1rem;
	text-align: center;
	left: 16.8rem;
	z-index: 3;
	color: white;
	font-size: 0.6rem;
	font-weight: bold;
}

#spinner1 {
	cursor: pointer;
	border: solid 1px red !important;
	top: 10rem;
	height: 5rem;
	box-shadow: 2px 2px 2px black;
}

#spinner2 {
	cursor: pointer;
	border: solid 1px red !important;
	top: 20rem;
}

.big-circle {
	fill: #3d2b1f;
	filter: drop-shadow(0 0 20px #000);
	stroke: black;
	stroke-width: 3;
}

.small-circle {
	fill: black;
	filter: drop-shadow(0 0 20px grey);
}

.triangle-indicator {
	fill: black;
	/* Change to desired color */
	stroke: black;
	stroke-width: 3;
}

.selection-switch {
	img {
		height: 2.3rem;
		transition: all 0.3s ease-in-out;
	}

	position: absolute;
	top: 7.5rem;
	z-index: 3;
	left: 16rem;

	border-radius: 50%;

	cursor: pointer;
}

.title {
	position: absolute;
	font-size: 0.35rem;
	color: white;
}

.title1 {
	top: 9.3rem;
	left: 16.7rem;
	z-index: 4;

	p {
		display: none;
	}

	h1:hover {
		display: none;
	}

	h1:hover ~ p {
		display: block;
		color: black;
		font-size: 0.6rem;
		font-weight: 700;
		background-color: #e3dac9;
		padding: 0.3rem;
		border-radius: 0.5rem;
		border: none;
	}
}

.title2 {
	top: 11.9rem;
	left: 16.6rem;
	z-index: 3;

	p {
		display: none;
	}

	h1:hover {
		display: none;
	}

	h1:hover ~ p {
		display: block;
		color: black;
		font-size: 0.6rem;
		font-weight: 700;
		z-index: 5;
		background-color: #e3dac9;
		padding: 0.3rem;
		border-radius: 0.5rem;
		border: none;
	}
}

.title3 {
	top: 14.7rem;
	left: 16.6rem;
	z-index: 3;

	p {
		display: none;
	}

	h1:hover {
		display: none;
	}

	h1:hover ~ p {
		display: block;
		color: black;
		font-size: 0.6rem;
		font-weight: 700;
		z-index: 3;
		background-color: #e3dac9;
		padding: 0.3rem;
		border-radius: 0.5rem;
		border: none;
	}
}

.switch {
	position: absolute;
	top: 15.5rem;
	left: 8rem;
	z-index: 3;
	cursor: pointer;
	color: white;
	text-shadow: 0px 0px 2px black;

	img {
		height: 4.8rem;
	}
}

.relay1 {
	position: absolute;
	top: 2.5rem;
	left: 27rem;
	z-index: 3;
	cursor: pointer;
	color: rgb(31, 28, 28);
	text-shadow: 0px 0px 2px white;
	font-weight: 700;
	img {
		height: 10rem;
	}
}

.relay2 {
	position: absolute;
	top: 29rem;
	left: 27rem;
	z-index: 3;
	cursor: pointer;
	color: black;
	text-shadow: 0px 0px 2px white;
	font-weight: 700;
	img {
		height: 6rem;
	}
}

@media print {
	@page {
		size: landscape;
		margin: 0;
		/* Remove margins */
	}

	body {
		transform: scale(0.74);
		/* Scale to 74% */
		transform-origin: top left;
	}
}

/* /for rotor part/ */

.motors {
	position: absolute;
	box-shadow: 0px 0px 15px 3px black;
	height: 10rem;
	border-radius: 1rem;
	width: 9rem;
	padding: 4.6rem;
	color: white;
	text-shadow: 0px 0px 2px black;
}

.motor1 {
	top: 5rem;
	left: 46rem;
}

.motor2 {
	top: 25rem;
	left: 46rem;
}

.img1 {
	position: absolute;
	width: 88.88%;
	top: 0.5rem;
	left: 0.5rem;
}

.img2 {
	position: absolute;
	width: 44.4%;
	top: 2.5rem;
	left: 2.5rem;
	/* animation: rotate 2s linear infinite; */
}
/* 
.animate {
    animation: rotate 2s cubic-bezier(0.5, 0, 1, 1) infinite;
} */

.animate {
	animation: slowStart 1.5s cubic-bezier(0.5, 0, 1, 1) 1,
		fastLoop 1s linear infinite;
}

@keyframes slowStart {
	0% {
		transform: rotate(0deg);
	}
	30% {
		transform: rotate(20deg);
	}
	60% {
		transform: rotate(100deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes fastLoop {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

#instructions {
	position: absolute;
	font-size: 1.5rem;
	text-align: center;
	/* border: 2px solid black; */
	border-radius: 5px;
	width: 14%;
	left: 1%;
	top: 1%;
	background-image: url(../images/plank.png);
	background-size: cover;
	font-weight: bold;
	letter-spacing: 1px;
}
#popup {
	h4 {
		text-align: center;
		text-decoration: underline;
		text-underline-offset: 0.5em;
		margin-bottom: 1rem;
	}
	text-align: justify;
	font-size: 0.1rem;
	font-weight: lighter;
	position: absolute;
	left: 0rem;
	background-color: #000;
	color: white;
	padding: 0.8rem 1.2rem;
	border-radius: 8px;
	box-shadow: inset 5px 5px 10px black, inset -5px -5px 10px black,
		0 0 10px black;
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.5s ease;
	pointer-events: none;
	z-index: 13;
	width: 30rem;
	h4 {
		color: white;
		font-size: 1rem;
		text-shadow: 0px 0px 5px black;
	}
	p,
	ul {
		font-size: 0.8rem;
	}
	b.step {
		color: #e74c3c;
		font-size: 18px;
	}
	b.connection {
		color: #2980b9;
	}
	ul {
		list-style-type: square;
		margin-left: 5rem;
	}
	.note {
		color: #8e44ad;
		font-style: italic;
	}
}
#instructions:hover {
	cursor: pointer;
	#popup {
		opacity: 1;
		transform: translateY(0);
	}
}

.off-screen {
	display: grid;
	grid: 1fr 1fr / 1fr 1fr;
	border: 2px solid white;
	height: 100%;
	width: 100%;
	text-align: center;
	gap: 2px;
	font-size: 1.3rem;
	border-radius: 10%;
	background-color: white;
	color: white;
	font-weight: 600;
	z-index: -1;
	position: absolute;
	visibility: hidden;
}

.voltage,
.current,
.soc,
.speed {
	background-color: #161313;
}
.motor-label {
	position: absolute;
	top: 10.2rem;
	left: 1rem;
	font-size: 1rem;
	font-weight: bold;
}
