.motor-container {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 4%;
    right: 1%;
}
.stator-outer {
    position: absolute;
    width: 87.5%; 
    height: 87.5%; 
    border-radius: 50%;
    background-color: #6ac9b9;
    box-shadow:inset 0 0 10px black;
    left: 6.25%;
    z-index: 1;
}
.stator-inner {
    position: absolute;
    width: 87.5%;
    height: 87.5%;
    border-radius: 50%;
    background-color: #d0d0d0;
    left: 6.25%;
    top: 6.25%;
    z-index: 1;
}
.stator-core {
    position: absolute;
    width: 87.5%;
    height: 87.5%;
    border-radius: 50%;
    background-color: #000;
    box-shadow:0 0 10px black;
    left: 6.25%;
    top: 6.25%;
    z-index: -2;
}
.stator-core-inner{
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background-color: #000;
    box-shadow: 0 0 5px black;
    left: 20%;
    top: 20%;
    z-index: 1;
}

.coil {
    position: absolute;
    z-index: -1;
    width: 50px;
    height: 60px;
    color: white;
    background-color: #9e2b27;
    font-size: 24px;
    transform-origin: center;
    box-shadow: 0 0 10px black,inset 0 0 5px black;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}
.coil-a {
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
}
.coil-b {
    top: 20%;
    right: 9%;
    transform: rotate(60deg);
}
.coil-c {
    bottom: 20%;
    right: 9%;
    transform: rotate(120deg);
}
.coil-a-desh {
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}
.coil-b-desh {
    bottom: 20%;
    left: 9%;
    transform: rotate(240deg);
}
.coil-c-desh {
    top: 20%;
    left: 9%;
    transform: rotate(300deg);
}
.magnet {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #32cd32;
    border: 3px solid white;
    color: red;
    font-size: 24px;
    font-weight: bold;
    box-shadow:inset 0 0 10px black;
    display: flex;
    justify-content: center;
    align-items: center;
}
.rotor-center {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.phase-label {
    position: absolute;
    color: yellow;
    font-size: 2rem;
    font-weight: bold;
    z-index: 5;
}
.phase-a {
    top: -12%;
    left: 46%;
}
.phase-b {
    top: 14%;
    right: 5%;
}
.phase-c {
    bottom: 27%;
    right: 7%;
}
.phase-a-desh {
    bottom:1%;
    left: 46%;
}
.phase-b-desh {
    bottom: 25%;
    left: 5%;
}
.phase-c-desh {
    top: 14%;
    left: 5%;
}

.energized {
    background-color: #ff5a5a;
}
.rotor {
    position: absolute;
    width: 120px;
    height: 55px;
    background-color: whitesmoke;
    border-radius: 45%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg); /* Ensure it starts at 90deg */
    z-index: 2;
    box-shadow: inset 0 0 10px black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation:none; /* Continuous Rotation */
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(90deg); } 
    to { transform: translate(-50%, -50%) rotate(450deg); } 
}
.motor-connection{
    position: absolute;
    top: 25%;
    right: -381%;
    z-index: 10;
    font-weight: bold;
    /* color: white; */
    font-size: 1rem;
}
#motor-red,#motor-yellow,#motor-blue{
    /* border: 2px solid black; */
    margin: 6px;
    padding-left: 15px;
    color: brown;
}
#motor-yellow{
    margin-left: -1px;
}
#motor-signal{
    position: absolute;
    top: 95%;
    right: -465%;
    z-index: 10;
    font-weight: bold;
    color: brown;
    font-size: 1rem;
    padding: 0 2px 2px 0;
    /* border: 1px solid black; */
}
.motor-text{
    position: absolute;
    background-image: url(../assets/plank.png);
    background-size: cover;
    border-radius: 5px;
    padding: 0 10px;
    font-weight: bold;
    font-size: 1.5rem;
    bottom: -10%;
    left: 22%;
    border: 2px solid black;
}
.inverter-connection{
    position: absolute;
    top: 32%;
    right: -205%;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 1rem;
    z-index: 10;
    color: brown;
}
#inverter-red,#inverter-yellow,#inverter-blue{
    padding-right : 10px;
    /* border: 1px solid black; */
    height: 1.4rem;
}
#c1-aqua-in,#c2-aqua-in,#c3-aqua-in{
    position: absolute;
    bottom: -40%;
    right: -167%;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 1rem;
    z-index: 10;
    color: white;
    /* border: 1px solid black; */
    /* height: 1.4rem; */
    padding-bottom: 5px;
}
#c2-aqua-in{
    right: -148%;
}
#c3-aqua-in{
    right: -130%;
}