#slider {
    position: relative;
    width: 50%;
    height: 32vw;
    margin: 50px auto 60px auto;
    font-family: 'Helvetica Neue', sans-serif;
    perspective: 1400px;
    transform-style: preserve-3d;
}

.home-section-4 {
    background-color: #f7fafd;
    height: 1200px;
}

#s1 {
    margin-left: 45px;
}

.home-section-4 .content h1 {
    padding-top: 45px;
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: bold;
}

.home-section-4 .content p {
    font-size: 20px;
    text-align: center;
}

input[type=radio] {
    position: relative;
    margin-top: 20px;
    top: 108%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: 0 15px 0 0;
    opacity: 0.4;
    transform: translateX(-83px);
    cursor: pointer;
}

input[type=radio]:nth-child(5) {
    margin-right: 0px;
}

input[type=radio]:checked {
    opacity: 1;
    color: #00DCF7;
}

input[type='radio']:checked:after {
    width: 18px;
    height: 18px;
    border-radius: 18px;
    position: relative;
    background-color: #00DCF7;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 2px solid white;
}

input[type='radio']:after {
    width: 18px;
    height: 18px;
    border-radius: 18px;
    top: -2px;
    left: -1px;
    position: relative;
    background-color: #d1d3d1;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 2px solid white;
}

#slider label,
#slider label img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    color: white;
    font-size: 70px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 400ms ease;
}

#s1:checked~#slide1,
#s2:checked~#slide2,
#s3:checked~#slide3,
#s4:checked~#slide4,
#s5:checked~#slide5 {
    box-shadow: 0 13px 26px rgba(0, 0, 0, 0.3), 0 12px 6px rgba(0, 0, 0, 0.2);
    transform: translate3d(0%, 0, 0px);
}

#s1:checked~#slide2,
#s2:checked~#slide3,
#s3:checked~#slide4,
#s4:checked~#slide5,
#s5:checked~#slide1 {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3), 0 2px 2px rgba(0, 0, 0, 0.2);
    transform: translate3d(20%, 0, -100px);
}

#s1:checked~#slide3,
#s2:checked~#slide4,
#s3:checked~#slide5,
#s4:checked~#slide1,
#s5:checked~#slide2 {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: translate3d(40%, 0, -250px);
}

#s1:checked~#slide5,
#s2:checked~#slide1,
#s3:checked~#slide2,
#s4:checked~#slide3,
#s5:checked~#slide4 {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3), 0 2px 2px rgba(0, 0, 0, 0.2);
    transform: translate3d(-20%, 0, -100px);
}

#s1:checked~#slide4,
#s2:checked~#slide5,
#s3:checked~#slide1,
#s4:checked~#slide2,
#s5:checked~#slide3 {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: translate3d(-40%, 0, -250px);
}

#slider input {
    margin-top: 20px;
}

@media screen and (max-width: 2200px) {
    .home-section-4 {
        height: 1000px;
    }
}

@media screen and (max-width: 1850px) {
    .home-section-4 {
        height: 900px;
    }
}

@media screen and (max-width: 1600px) {
    .home-section-4 {
        height: 800px;
    }
}

@media screen and (max-width: 1199px) {
    .home-section-4 {
        height: 680px;
    }
}

@media screen and (max-width: 1024px) {
    .home-section-4 .content h1 {
        padding-top: 45px;
        font-size: 30px;
        text-align: center;
        margin-bottom: 12px;
    }
    .home-section-4 .content p {
        font-size: 18px;
        text-align: center;
    }
    #s1 {
        margin-left: 45px;
    }
    .home-section-4 {
        height: 600px;
    }
}

@media screen and (max-width: 928px) {
    .home-section-4 {
        height: 560px;
    }
}

@media screen and (max-width: 768px) {
    .home-section-4 .content h1 {
        padding-top: 45px;
        font-size: 30px;
        text-align: center;
        margin-bottom: 12px;
    }
    .home-section-4 .content p {
        font-size: 18px;
        text-align: center;
        padding: 0px 5px 0px 5px;
    }
    #s1 {
        margin-left: 45px;
    }
    .home-section-4 {
        height: 500px;
    }
}

@media screen and (max-width: 500px) {
    .home-section-4 {
        height: 480px;
    }
    #slider {
        width: 60%;
        height: 40vw;
    }
}

@media screen and (max-width: 425px) {
    .home-section-4 .content h1 {
        padding-top: 45px;
        font-size: 22px;
        text-align: center;
        margin-bottom: 12px;
    }
    .home-section-4 .content p {
        font-size: 14px;
        text-align: center;
    }
    #s1 {
        margin-left: 45px;
    }
    .home-section-4 {
        height: 430px;
    }
}

@media screen and (max-width: 375px) {
    .home-section-4 {
        height: 380px;
    }
}