html {
    scroll-behavior: smooth;
}

/* SERVICES */

.maindiv {
    background-color: #207cb1;
    padding-top: 40px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    margin-top: -8px;
    height: auto;
}

.services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px;
    margin-top: -10px;
    margin-left: auto;
    margin-right: auto;
}

.services>div {
    flex-basis: calc(25% - 50px);
    display: inline-block;
    margin-top: 20px;
    width: 450px;
}

.maindiv2>h1 {
    color: white;
    font-size: 30pt;
    text-align: center;
    margin-left: auto;
    margin-left: auto;
}

.serv>img{
    width: 450px; 
    height: 350px; 
    object-fit: cover;
}

/*----------------------------*/
body {
    display: block;
    margin: 0;
    background: #FFFFFF;
    font-family: Lato, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}



.services>div>h5,
.services>div>h2 {
    color: white;
}

.header {
    padding: 20px;
    width: 100%;
    height: 100px;
}

.logo {
    margin-left: 15%;
    margin-right: 15%;
}

.main-div {
    position: absolute;
    text-align: center;
    top: 360px;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    width: 100%;
}

.button {
    position: absolute;
    right: 15%;
    top: 4%;
    display: inline-block;
    border-radius: 4px;
    background-color: #008CBA;
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 20px;
    padding: 15px;
    width: 150px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
}

.button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.button:hover span {
    padding-right: 25px;
}

.button:hover span:after {
    opacity: 1;
    right: 0;
}

.info {
    position: relative;
    top: 80px;
    text-align: center;
}

.mainContact {
    background-color: #ECECEC;
    padding-top: 90px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 90px;
    margin-top: -8px;
    height: auto;
}

.contact {
    display: flex;
    justify-content:center;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact>div {
    display: inline-block;
    font-family: WorkSans;
    width: 280px;
}

.mainContact>h1 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 30pt;
    font-family: WorkSansSB;
}


/*  GALERY  */
* {
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
}

.mySlides {
    display: none;
}

img {
    vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    top: 30px;
    margin: auto;
}

/* The dots/bullets/indicators */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: none;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

footer {
    background-color: #f2f2f2;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #575757;
}

footer>a {
    color: #575757;
}



@media only screen and (max-width: 800px) {

    body {
        margin: 0;
    }

    .logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .button {
        display: none;
    }

    .slideshow-container {
        top: 50px;
    }

    .mySlides img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .serv>img{
        width: 400px;
        height: 300px;
    }
}

@media only screen and (max-width: 400px) {
    body {
        margin: 0;
    }

    .logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .button {
        display: none;
    }

    .slideshow-container {
        top: 50px;
    }

    .mySlides img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .serv>img{
        width: 300px;
        height: 250px;
    }
}