html, body {
	height: 100%;
	margin: 0;
}

body{
	text-align: center;
	font-size: 1rem;
	display: flex;
	flex-direction: column;
	font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif; 
}

nav{
	display: flex;
	justify-content: space-between;
	margin-bottom: 100px;
	padding: 20px 0;
}

footer{
	background:#4C4B45;
	flex-shrink: 0;
}

h1, h2{
	color: #444335;
	margin-bottom: 50px;	
	font-family: Arial, sans-serif;
}

h1{				
	font-size:2.75rem;
}

h2{
	font-size:1.75rem;			
	margin-bottom: 70px;				
}

a{
	color:#406C6D;
	text-decoration:none;
}

img {
	max-width: 100%;
}

div.container{
	max-width: 1140px;
	width:100%;
	margin: auto;
	flex: 1 0 auto;
	padding-bottom: 100px;
}

.row{
	width:100%;
	float:left;
	margin-top: 90px;
}

.row:first-child {
	margin-top: 30px;
}

#clients h2{
	font-size:1.063rem;
	font-weight: normal;				
}

#clients ul{
	justify-content: space-between;
	flex-wrap: wrap;
	flex-direction: row;
	max-width: 900px !important;
    width: auto;
	margin: auto;
}

#clients ul li{
	justify-content: space-between;
	flex-wrap: wrap;
	flex-direction: row;
	width: 592px !important;
	margin: auto;
	margin-bottom:50px;
}

div#contact {
	background: #ECECEB;
	float: left;
	width: 100%;
	margin-top: 100px;
	padding: 15px;
}

ul{
	display: flex;
	justify-content:space-evenly;
}

#resources li{
	display: inline-block;
    border-right: 1px solid #ccc;
    max-height: 30px;
}

#resources li:last-child{
	border:none;
}

li {
	list-style: none;
	max-width: 230px;
	font-size: 0.938rem;
}

li span{
    padding: 0 15px;
	margin-top: -34px;
    display: inline-block;
}

.current-lang{
	height: 10px;
	cursor:pointer;
	position:relative;
}

.current-lang:hover .language-selector,
.current-lang:focus .language-selector{
	display:block;
}

.language-selector{
	display:none;
	background: #eee;
    position: absolute;
    padding: 5px;
    right: 0;
    width: 100px;
    text-align: left;
    font-size: 0.8rem;
    color:#ccc;
}

.current-lang img{
	max-width:20px;
	vertical-align:sub;
}

.language-selector a{
	display:inline-block;
	margin-bottom:5px;
	width:100%;
}

.language-selector a:hover{
	background: #ddd;
    border-radius: 5px;
}

.mobile-show{
	display:none;
}


@media only screen and (max-width: 640px){
	h1{				
		font-size:1.75rem;
		padding: 0 10px;
	}

	h2{
		font-size:1.375rem;
		margin-bottom:50px;
	}

	h1 br, h2 br{
		display:none;
	}

	div.container {
	    max-width: 88%;
	}

	.row{
		margin-top:10px;
	}

	.row:first-child {
		margin-top: 0;
	}

	nav{
		margin-bottom:70px;
	}

	div#flowchart img {
		margin: auto;
		margin-bottom:40px;
	}

	#resources ul{
		padding:0;
		flex-direction:column;
	}

	#resources li {
		border:none;
		max-height: none;
		margin-bottom: 45px;
		max-width: 100%;
	}

	#resources li span {
		max-width: 190px;
		margin: auto;
	}

	#resources li img {
		max-width: 100%;
		vertical-align: sub;
		margin-bottom: 5px;
	}

	.mobile-clients{
		max-width:284px;
		margin:auto;
	}

	.mobile-clients .row{
		margin-top:0;
		margin-bottom:30px;
	}



	.mobile-clients a{
		display: inline-block;
		max-width: 50%;
	}

	.client-right{
		float:right;
	}

	.client-left{
		float:left;
	}

	#clients img {
		margin:auto;
		max-width: 100%;
	}

	div#contact{
		padding:0;
	}

	div#contact p{
		font-size:1.063rem;
	}

	.mobile-hide{
		display:none;
	}

	.mobile-show{
		display:block;
	}

	.mobile-clients.mobile-show .row {
	    display: flex;
	    justify-content: space-between;
	    flex-direction: row;
	}
}

@media only screen and (max-width: 310px){
	.mobile-clients .row:nth-child(2) a:first-child{
		padding-left:0;
	}

	.mobile-clients .row:nth-child(2) a:last-child{
		padding-right:0;
	}

	.mobile-clients .row:nth-child(3) a:first-child {
	    padding-left: 0;
	}

	.mobile-clients.mobile-show .row {
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		display: block;
	}

	.mobile-clients.mobile-show .row a {
		width: 100%;
		max-width: 100%;
		margin-bottom: 25px;
		text-align: center;
		padding: 0 !important;
	}

	.mobile-clients.mobile-show .row:last-child a:last-child {
		margin-top: 20px;
	}

	div#contact p {
		font-size: 0.8rem;
	}
}
