@charset "UTF-8";
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* ON OFF 글자 추가 */
.slider::after {
    content: "OFF";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: calc(100% - 27px);
    transform: translateY(-55%);
    font-size: 10px;
    color: #555;
}

input:checked+.slider::after {
    content: "ON";
    left: 10px;
    color: #fff;
}