.main-area {padding: 2em;	}
.cards p {margin-bottom: 1.5em;}
.cards h2 {font-size: 1.5em;}

.cards img {
	display: block;
	border: 0;
	width: 50%;
	height: auto;
	
}

/* Flexbox */
@media screen and (min-width: 50em) {
    
    .outer-wrap {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-direction: column;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    
    .content {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
    
    .main-area {
        -webkit-flex: 1 1 auto;
            -ms-flex: 1 1 auto;
                flex: 1 1 auto;
        -webkit-order: 1;
            -ms-flex-order: 1;
                order: 1;
    }
  
}

/* Card Based Layout - Base styles */

.card {
	background:#0F263D;
	margin-bottom: 4em;	
	border: 2px solid #1ABC9C;
}

.card a {
	color: black;
	text-decoration: none;
}

/*.card a:hover {
	box-shadow: 3px 3px 8px hsl(0, 0%, 70%);
  transition: all 0.4s;
}*/

.card-content {
	padding: 1.4em;
}

.card-content h2 {
	margin-top: 0;
	margin-bottom: .5em;
	font-weight: normal;
	font-size:28px;
	color:white;
	text-align:center;

}

.card-content p {
	font-size: 95%;
	color:white;
	text-align:center;
}

/* Flexbox stuff */

@media screen and (min-width: 40em) {
    .cards {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
                flex-wrap: wrap;
        -webkit-justify-content: space-between;
            -ms-flex-pack: justify;
                justify-content: space-between;
        margin-top: -1em;
    }

    .card {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex: 0 1 calc(50% - .5em);
            -ms-flex: 0 1 calc(50% - .5em);
                flex: 0 1 calc(50% - .5em);
        margin-bottom: 1em;
    }
}

@media screen and (max-width: 39.9em) {
  
  .main-area {padding: 0em;}
  .card {margin-bottom: 2em;}	
}

@media screen and (min-width: 60em) {
    .cards {
        margin-top: inherit;
    }
    
    .card {
        -webkit-flex: 0 1 calc(33% - 1em);
            -ms-flex: 0 1 calc(33% - 1em);
                flex: 0 1 calc(33% - 1em);
        margin-bottom: 2em;
    }
}

#customers {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: auto;
}

#customers td{
   margin: 5px;
    width: 200px;
    height: 200px;
    z-index: 3;
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.5);
    background: url("assets/image/why_bg.jpg");
}

#customers .content{
    position: relative;
    background: rgba(36, 57, 80, 0.8);
    padding: 25px;
    width: 100%;
    height: 100%;
    transition: background .2s ease-out;
    font-family: 'Work Sans', sans-serif;
    overflow: hidden;
}

#customers tr:hover {background-color: #ddd;}
#title{
}

#percentage{
}

#when{
}

.pincho {background-image: url("https://royalpayers.com/assets/images/slide.png");
background-repeat:no-repeat;
width:100%;
height:400px;
margin:10px;
}

.flex-container1 {
  display: flex;
  flex-flow: row wrap;
  align-content: space-around;
  width: 100%;
  align-content:center;
  }

.flex-container1>div {
  width: 450px;
  margin: 10px;
  flex: 0 1 40%;
   }

@media (max-width: 600px) {
   .flex-container1>div {
    max-width: 75%;
    flex: 0 1 30%;
    }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
    .flex-container1>div {
       max-width: 100%;
       flex: 0 1 100%;
    }
}


