
.pmsm-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.motor-container {
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	/* background-color: #a8a4a4; */
	/* background-image: url(../images/front-motor.png); */

	background-repeat: no-repeat;
	background-position: center;
	background-size: 350px;
	/* box-shadow: 0 0 15px rgba(0,0,0,0.2); */
	/* overflow: hidden; */
	top: 1rem;
	right: 4.5rem;
	img {
		height: 120%;
		position: absolute;
		left: -0.2rem;
		top: -0.2rem;
		filter: drop-shadow(5px 5px 7px black);
	}
}

.stator {
	position: absolute;
	width: 70.6%;
	height: 70.6%;
	top: 81px;
	left: 56px;
	border-radius: 50%;
	background-color: rgb(44, 34, 34);
}

.coil {
	position: absolute;

	/* border-radius: 10px; */

	background-color: brown;

	background-size: 110px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
	transition: background-color 0.3s;
}

.coil.active-n {
	background-color: red;
}

.coil.active-s {
	background-color: blue;
}

.coil::after {
	content: "";
	position: absolute;
	width: 30px;
	height: 30px;
	/* background-color: #42270b; */
	border-radius: 5px;
}

.coil-1 {
	top: 31%;
	left: 47.5%;
	width: 50px;
	height: 40px;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.coil-2 {
	top: 57%;
	left: 76.5%;
	width: 40px;
	height: 50px;
	border-bottom-right-radius: 10px;
	border-top-right-radius: 10px;
}

.coil-3 {
	top: 86%;
	left: 47.5%;
	width: 50px;
	height: 40px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

.coil-4 {
	top: 57%;
	left: 21.5%;
	width: 40px;
	height: 50px;
	border-bottom-left-radius: 10px;
	border-top-left-radius: 10px;
}

.coil1-bg {
	background: url(../assets/winding.png) no-repeat center/cover;
	transform: rotate(90deg) translateX(0.4rem) translateY(-0.2rem);
	background-size: 5.2rem;
	height: 170%;
	width: 100%;
}
.coil2-bg {
	background: url(../assets/winding.png) no-repeat center/cover;
	transform: rotate(180deg) translateX(0.4rem) translateY(-0.2rem);
	background-size: 5.2rem;
	height: 130%;
	width: 170%;
}
.coil3-bg {
	background: url(../assets/winding.png) no-repeat center/cover;
	transform: rotate(-90deg) translateX(0.4rem) translateY(-0.2rem);
	background-size: 5.2rem;
	height: 170%;
	width: 100%;
}
.coil4-bg {
	background: url(../assets/winding.png) no-repeat center/cover;
	transform: translateX(0.4rem) translateY(-0.2rem);
	background-size: 5.2rem;
	height: 130%;
	width: 170%;
}

.pole-label {
	position: absolute;
	font-weight: bold;
	font-size: 18px;
	color: white;
	text-shadow: 1px 1px 2px black;
	z-index: 10;
	pointer-events: none;
	left: 2rem;
}

.rotor-container {
	position: absolute;
	width: 29%;
	height: 29%;
	top: 51%;
	left: 42%;
	border-radius: 50%;
	background-color: #00000062;
}

.magnet {
	position: absolute;
	width: 82%;
	height: 82%;
	top: 9%;
	left: 9%;
	border-radius: 50%;
	background: linear-gradient(
		90deg,
		#ff0000 0%,
		#ff0000 50%,
		#0000ff 50%,
		#0000ff 100%
	);
	transform-origin: center;
}
.magnet-center {
	position: absolute;
	background-color: grey;
	box-shadow: inset 2px 2px 2px solid;
	border-radius: 50%;
	height: 25%;
	width: 25%;
	top: 37%;
	left: 37%;
}

.magnet-label {
	position: absolute;
	font-weight: bold;
	font-size: 18px;
	color: white;
	text-shadow: 1px 1px 2px black;
	pointer-events: none;
}

.n-label {
	left: 20%;
	top: 34%;
	transform: translateX(-50%);
}

.s-label {
	right: 20%;
	top: 34%;
	transform: translateX(50%);
}

.controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.slider-container {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 300px;
}

label {
	width: 130px;
}

input[type="range"] {
	flex-grow: 1;
}

.value-display {
	width: 50px;
	text-align: right;
}

.pmsm-button {
	padding: 10px 20px;
	background-color: #4caf50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin: 5px;
}

.pmsm-button:hover {
	background-color: #45a049;
}

.pmsm-button:active {
	background-color: #3e8e41;
}