@import url('../style.css');
body{
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-switch);
}
.switch-key {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background-gray);
    transition: 0.4s;
    border-radius: 34px;
}
.slider::before{
     content: '';
     position: absolute;
     height: 26px;
     width: 26px;
     left: 4px;
     bottom: 4px;
     background-color: var(--color-switch);
     transition: 0.4s;
     border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--background-gray);
}
input:checked + .slider::before {
     transform: translateX(26px);
}