.graphic__switch {
    position: relative;
    width: 180px;
    height: 48px;
    background: #00a075;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.graphic h2 {
    margin-bottom: 10px;
}

.graphic #theme-switch {
    display: none;
}

.graphic__toggle {
    position: absolute;
    width: 50%;
    height: 100%;
    background: #005e52;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: transform .35s cubic-bezier(.25, .46, .45, .94),
    background-color .3s;
}

.graphic__labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 22px;
    font-weight: 600;
    user-select: none;
}

.graphic__dog {
    opacity: 1;
}

.graphic__cat {
    opacity: 0.4;
}

.graphic__dog,
.graphic__cat {
    z-index: 1;

    svg {
        fill: #fff;
    }
}

.graphic__wrapper__1,
.graphic__wrapper__2 {
    display: none;
}

.graphic__wrapper__1 {
    display: block;
}

.graphic #theme-switch:checked + .graphic__switch .graphic__toggle {
    transform: translateX(100%);
    background: #005e52;
}

.graphic #theme-switch:checked + .graphic__switch .graphic__dog {
    opacity: .4;
}

.graphic #theme-switch:checked + .graphic__switch .graphic__cat {
    opacity: 1;
}
