.toggle {
    width: 3.25rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    background-color: var(--main-select-color);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease;
    z-index: 10;
    color: var(--main-icon-accent-text-color);
}

.toggle:hover {
    background-color: var(--main-plashka-select-color);
    color: var(--neutral-background-color);
}
.toggle:hover>i {
    color: var(--neutral-background-color);
}

.scene-layer { transition: opacity 600ms ease; }
.scene-day { opacity: 1; }
.scene-night { opacity: 0; }
.toggle.active .scene-day { opacity: 0; }
.toggle.active .scene-night { opacity: 1; }

.knob {
    position: absolute;
    left: 0.15rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--neutral-background-color);
    transition: transform 500ms cubic-bezier(.4,.8,.3,1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.toggle>i{
    font-size: 1.25rem;
}

.toggle.active .knob { transform: translateX(1.5rem); }
.knob:hover { transform: scale(1.05); }



