﻿@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/raleway/v28/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrQ.ttf) format('truetype');
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /*background-color: #f8f8f8;*/
}

body {
    /*padding: 2rem 0.5rem;
    font-family: 'Raleway', Sans-serif;
    color: #32325d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;*/
}

@media (min-width: 40rem) {
    body {
       /* padding: 2rem;*/
    }
}

.container {
    /*display: flex;
    -webkit-display: box;
    -moz-display: box;
    -ms-display: flexbox;
    -webkit-display: flex;
    flex-wrap: wrap;
    padding: 0;*/
    /*margin: 0;*/
}

.cards {
    display: flex;
    padding: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (min-width: 40rem) {
    .cards {
        width: 50%;
    }
}

@media (min-width: 56rem) {
    .cards {
        /*width: 33.3%;*/
        width:25%;
    }
}

.cards .card-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.5s;
    -webkit-transition: transform 0.5s;
}

    .cards .card-item:hover {
        cursor: pointer;
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
    }

        .cards .card-item:hover .card-image {
            opacity: 1;
        }

.cards .card-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem;
    line-height: 1.5em;
    background: #101d29;
}

.cards .card-title {
    /*font-size: 25px;*/
    font-size: 1em;
    font-weight: 600;
    line-height: 1.2em;
    /*color: #32325d;*/
    color: #ff6768;
    margin-bottom: 0.2em;
}

.cards .card-image1 {
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px 6px 0px 0px;
    background-image: url( '/images/services/DMBasicMeasuringInstruments.jpg');
    opacity: 0.91;
}

.cards .card-image2 {
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px 6px 0px 0px;
    background-image: url( '/images/services/DMPrecisionMeasuringInstruments.jpg');
    opacity: 0.91;
}

.cards .card-image3 {
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px 6px 0px 0px;
    background-image: url( '/images/services/PressureVacuumAcousticsAccelerationSpeed.jpg');
    opacity: 0.91;
}

.cards .card-image4 {
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px 6px 0px 0px;
    background-image: url( '/images/services/TorqueMetrology.jpg');
    opacity: 0.91;
}

.card-intro{
    color:#ffff;
}
.a-style {
    color: #ff6768;
}
