body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #eee8e8;
}

h1 {
    margin-top: 5%;
    position: absolute;
    top: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    border: 2px solid #b4b4b4;
    background-color: #e0e0e0;
    box-shadow: 7px 7px 23px #bebebe, -7px -7px 23px #fff;
    overflow: hidden;
    border-radius: 60px;
}

switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    color: #7b7878;
    display: flex;
    align-items: center;
    justify-content: center;
}

input:checked+.slider::before {
    background: white;
    box-shadow: none;
}

input:focus+.slider {

    box-shadow: 0 0 1px #2196f3;
}

.slider--0 {
    color: white;
    font-weight: 600;
    background-color: #49d84e;
}

.slider--1 div {
    transition: 0.5s;
    position: absolute;
    width: 100%;
    height: 50%;
    left: 0;
}

input:checked~.slider--1 div:first-child {
    transform: translateY(-100%);
    transition-delay: 1s;
}

input:checked~.slider--1 div:last-child {
    transform: translateY(100%);
    transition-delay: 1s;
}

input:checked~.slider--2 {
    transform: translateX(100%);
    transition-delay: 0.5s;
}

input:checked~.slider--3 {
    transform: translateX(-100%);
    transition-delay: 0s;
}

.slider--1 div:first-child {
    transform: translateY(0);
    top: 0;
    background-color: #f3f3f3;
    transition-delay: 0s;
}

.slider--1 div:last-child {
    transform: translateY(0);
    bottom: 0;
    background-color: #f3f3f3;
    border-top: 1px solid #e0e0e0;
    transition-delay: 0s;
}

.slider--2 {
    background-color: #e6e6e6;
    transition-delay: 00.5s;
    transform: translateX(0);
    border-left: 1px solid #d2d2d2;
}

.slider--3 {
    background-color: #d2d2d2;
    transition-delay: 1s;
    transform: translateX(0);
    border-right: 1px solid #d2d2d2;
}