/* global */

body {
    margin: 0;
    padding: 0;
    color: #414141;
    background: #fff;
    font-family: rift, sans-serif;
    font-style: italic;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* end of global */

@media(min-width: 1366px) {
    .car-logos {
        background: #f6f6f6;
        padding: 0 5%;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        justify-items: center;
    }
    .car-logos img {
        height: 120px;
    }
    .section-middle-a {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: inline-block;
        margin: 50px auto;
        font-size: 30px;
        font-weight: 700;
        background: #ec1c24;
        padding: 10px 30px;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }
    .pagination-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        font-size: 30px;
        font-weight: 700;
        color: #ec1c24;
        text-decoration: none;
    }
    .pagination-container span {
        font-size: 30px;
        font-weight: 700;
        color: #515151;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        font-size: 30px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0 10px;
    }
    .page-number-container span {
        font-size: 30px;
        font-weight: 700;
        color: #515151;
        margin: 0 10px;
    }
    .testimonial-item {
        border-left: 5px solid #ec1c24;
        margin: 0 0 100px 0;
        padding: 25px;
    }
    .before-after-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 50px;
        margin: 0;
    }
    .before-after-item {
        min-height: 200px;
    }
    .before-after-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        margin: 25px 0;
    }
    .before-after-item h4 {
        font-size: 20px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0;
    }
    .before-after-header-item h5 {
        font-size: 25px;
        font-weight: 700;
        color: #515151;
        margin: 0;
    }
}

@media(max-width: 1366px) and (min-width: 1024px) {
    .car-logos {
        background: #f6f6f6;
        padding: 0 5%;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        justify-items: center;
    }
    .car-logos img {
        height: 100px;
    }
    .section-middle-a {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: inline-block;
        margin: 50px auto;
        font-size: 30px;
        font-weight: 700;
        background: #ec1c24;
        padding: 10px 30px;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }
    .pagination-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        font-size: 30px;
        font-weight: 700;
        color: #ec1c24;
        text-decoration: none;
    }
    .pagination-container span {
        font-size: 30px;
        font-weight: 700;
        color: #515151;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        font-size: 30px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0 10px;
    }
    .page-number-container span {
        font-size: 30px;
        font-weight: 700;
        color: #515151;
        margin: 0 10px;
    }
    .testimonial-item {
        border-left: 5px solid #ec1c24;
        margin: 0 0 100px 0;
        padding: 25px;
    }
    .before-after-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 50px;
        margin: 0;
    }
    .before-after-item {
        min-height: 200px;
    }
    .before-after-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        margin: 25px 0;
    }
    .before-after-item h4 {
        font-size: 17px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0;
    }
    .before-after-header-item h5 {
        font-size: 20px;
        font-weight: 700;
        color: #515151;
        margin: 0;
    }
}

@media(max-width: 1024px) and (min-width: 769px) {
    .car-logos {
        background: #f6f6f6;
        padding: 0 5%;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        justify-items: center;
    }
    .car-logos img {
        height: 75px;
    }
    .section-middle-a {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: inline-block;
        margin: 50px auto;
        font-size: 30px;
        font-weight: 700;
        background: #ec1c24;
        padding: 10px 30px;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }
    .pagination-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        font-size: 30px;
        font-weight: 700;
        color: #ec1c24;
        text-decoration: none;
    }
    .pagination-container span {
        font-size: 30px;
        font-weight: 700;
        color: #515151;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        font-size: 25px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0 10px;
    }
    .page-number-container span {
        font-size: 25px;
        font-weight: 700;
        color: #515151;
        margin: 0 10px;
    }
    .testimonial-item {
        border-left: 5px solid #ec1c24;
        margin: 0 0 100px 0;
        padding: 20px;
    }
    .before-after-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 50px;
        margin: 0;
    }
    .before-after-item {
        min-height: 200px;
    }
    .before-after-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        margin: 25px 0;
    }
    .before-after-item h4 {
        font-size: 17px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0;
    }
    .before-after-header-item h5 {
        font-size: 20px;
        font-weight: 700;
        color: #515151;
        margin: 0;
    }
}

@media(max-width: 769px) {
    .car-logos {
        background: #f6f6f6;
        padding: 0 5%;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        justify-items: center;
    }
    .car-logos img {
        height: 40px;
    }
    .section-middle-a {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: inline-block;
        margin: 50px auto;
        font-size: 25px;
        font-weight: 700;
        background: #ec1c24;
        padding: 10px 30px;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }
    .pagination-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        font-size: 20px;
        font-weight: 700;
        color: #ec1c24;
        text-decoration: none;
    }
    .pagination-container span {
        font-size: 20px;
        font-weight: 700;
        color: #515151;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        font-size: 20px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0 5px;
    }
    .page-number-container span {
        font-size: 20px;
        font-weight: 700;
        color: #515151;
        margin: 0 10px;
    }
    .testimonial-item {
        border-left: 4px solid #ec1c24;
        margin: 0 0 50px 0;
        padding: 10px 20px;
    }
    .before-after-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 50px;
        margin: 0;
    }
    .before-after-item {
        min-height: 200px;
    }
    .before-after-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        margin: 12.5px 0;
    }
    .before-after-item h4 {
        font-size: 14px;
        font-weight: 700;
        color: #ec1c24;
        margin: 0;
    }
    .before-after-header-item h5 {
        font-size: 16px;
        font-weight: 700;
        color: #515151;
        margin: 0;
    }
}
