*{
    margin: 0;
    padding: 0;
}
body{
    background-color: rgb(79, 78, 78);
}
h1{
    font-size: 3rem;
    letter-spacing: 0.5rem;
    line-height: 2;
    margin-top: 30px;
    text-align: center;
    color:white;
    text-shadow: 2px 1px 1px black;
}
.mainDiv{
    width: 70%;
    height: 400px;
    position: absolute;
    top:50%;
    left:50%;
    background: url(images/img1.jpg) no-repeat center center/cover;
    background-size: 100%,100%;
    transform: translate(-50%,-50%);
    box-shadow: 1px 2px 10px 5px white;
    animation: slider 10s infinite linear;
}
@keyframes slider{
    0%{
        background: url(images/img3.jpg) no-repeat center center/cover;
    }
    25%{
        background: url(images/img2.jpg) no-repeat center center/cover;
    }
    50%{
        background: url(images/img1.jpg) no-repeat center center/cover;
    }
    75%{
        background: url(images/img4.jpg) no-repeat center center/cover;
    }
}