/* ----------------------------------------
       PAGE SLIDERS
--------------------------------------------*/

.slider-page {
    width: 98%;
    height: 500px;
    position: relative;
    margin: auto;
    z-index: 1;
    border-bottom: 2px solid lightgrey;
    background-color: white;
}

.pieces-slider {
    position: relative;
    text-align: center;
}

.pieces-slider {}

/* Make all slides absolutes and hide them */

.js .pieces-slider__slide {
    position: absolute;
    right: 100%;
}

/* Define image dimensions and also hide them */

.pieces-slider__image {
    max-width: auto;
    max-height: auto;
    position: absolute;
    bottom: 30%;
}

.pieces-slider__image {
    visibility: hidden;
}

/* Hide the titles */

.pieces-slider__text {
    text-indent: -9999px;
}

/* Canvas with viewport width and height */

.pieces-slider__canvas {
    position: relative;
    width: 100vw;
    height: 100vh;
    transition: 0.2s opacity;
    top: -240px;
}

/* Class for when we resize */

.pieces-slider__canvas--hidden {
    opacity: 0;
    transition-duration: 0.3s;
}

/* Navigation buttons */

.pieces-slider__button {
    position: absolute;
    left: 0;
    top: 20%;
    width: 100px;
    height: 100px;
    margin: -25px 0 0 0;
    background-color: #1bb1dc;
    color: #fff;
    font-family: inherit;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.1s background-color;
}

.pieces-slider__button:hover {
    background: #1bb1dc;
}

.pieces-slider__button--next {
    left: auto;
    right: 0;
}

/* Hide the buttons when no JS */

.no-js .pieces-slider__button {
    display: none;
}

/* Media queries with styles for smaller screens */

@media screen and (max-width: 720px) {
    .pieces-slider__image {
        max-width: 250px;
        max-height: 300px;
        top: 0;
    }
    .services .service-card {
        max-width: 300px;
        flex-direction: column;
        height: auto;
    }
    .services .service-card .card-img {
        position: relative;
    }
    .services .service-card .card-img, .services .service-card:hover .card-img {
        width: 100%;
        height: 200px;
        left: 0;
    }
    .services .service-card .card-img img, .services .service-card:hover .card-img img {
        max-width: 100px;
    }
    .services .service-card .card-content {
        position: relative;
        width: 100%;
    }
    .services .service-card .card-content h3 {
        font-size: 22px;
        font-weight: 700;
    }
}

@media screen and (max-width: 55em) {
    .pieces-slider__canvas {
        width: 100vw;
        height: 100vw;
        top: -120px;
        left: -10px;
    }
    .pieces-slider__button {
        width: 50px;
        height: 50px;
        top: 30%;
    }
    .slider-page {
        height: 300px;
    }
    #about {
        margin-left: 0;
    }
    body {
        overflow-x: hidden;
    }
    .service-header {
        font-size: 20px;
        margin-left: 30%;
        margin-top: 30px;
    }
    #main {
        width: 100%;
    }
    .our-services {
        width: auto;
        margin: auto;
    }
    .services .service-card {
        position: relative;
        margin-left: -100px;
    }
    .why-us-content p {
        margin-top: 30px;
    }
    .section-header p {
        font-size: 20px;
    }
}