* {
	box-sizing: border-box;
	outline: none;
}

html {
	max-width: 1200px;
	margin: 20px auto;
	box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

body {
	background: #e9e9e9;
	font-size: 16px;
	color: #333333;
	margin: 0;
	font-family: sans-serif;
}


/* ------------------------ LAYOUT ------------------------ */


main {
	display: flex;
	padding: 20px;
	margin: 0 auto;
	background: #fcfcfc;
}

header,
footer {
	height: 60px;
	background: #f0f0f0;
	padding: 10px 20px;
	line-height: 40px;
	background: linear-gradient(to bottom, #f0f0f0 1%,#fcfcfc 50%,#f0f0f0 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f0', endColorstr='#f0f0f0',GradientType=0 );
}

.error {
	height: 40px;
	color: #ee2e24;
	font-weight: 700;
	float: right;
}

header img {
	height: 40px;
	-ms-interpolation-mode: bicubic;
}

.row {
	display: flex;
	flex: 1;
	min-height: 160px;
	height: calc(100% - 38px);
}

.col-2 {
	flex-direction: column;
	flex: 1;
}

.col-1 {
	flex: 1;
	flex-direction: column;
}

div[class^="col"] {
	margin-right: 20px;
	display: inline-block;
    position: relative;	
}

div[class^="col"]:last-of-type {margin-right: 0;}

.action {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

footer a {
	float: right;
	font-size: 14px;
	color: #666;
	font-weight: 700;
	text-decoration: none;
}

footer a:hover {text-decoration: underline;}

/* ------------------------ TITLES ------------------------ */


h1 {
    padding: 0 0 10px 0;
    margin: 0;
    font-size: 24px;
    font-weight: 100;
}

.tool h1 {color: rgb(238, 47, 40);}

.software h1 {color: rgb(40, 132, 238);}

h2 {
	margin: 0;
	padding: 0;
	font-size: 18px;
	color: #ffffff;
	padding: 10px;
	font-weight: 100;
	border-radius: 4px 4px 0 0;
}

.software h2 {background-color: rgb(40, 132, 238);}

.tool h2 {background-color: rgb(238, 47, 40);}


/* ------------------------ LISTS ------------------------ */


ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

li {
	display: flex;
	background: #fafafa;
    border-style: solid;
    border-width: 0 1px;	
}

.tool li {border-color: rgb(238, 47, 40);}

.software li {border-color: rgb(40, 132, 238);}

li:nth-child(even) {background-color: #f3f3f3}

li:last-of-type {
	border-width: 0 1px 1px 1px;	
	border-radius: 0 0 4px 4px;
}

li a {
	flex: 1;
	padding: 10px;
	text-decoration: none;
	color: #333333;
}

li:active a,
li[data-selected] a {
	color: #ffffff;
}

.tool li:hover {background-color: rgba(238, 47, 40, 0.25);}

.tool li:active,
.tool li[data-selected] {
	background-color: rgba(238, 47, 40, 0.75);
}

.software li:hover {background-color: rgba(40, 132, 238, 0.25);}

.software li:active,
.software li[data-selected] {
	background-color: rgba(40, 132, 238, 0.75);
}


/* ------------------------ BUTTONS ------------------------ */


input[type="submit"] {
    height: 40px;
	line-height: 36px;
	width: 100%;
    color: #ffffff;
	margin: 0;
	padding: 0;
	border-style: solid;
    border-width: 1px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: none;
    border-radius: 4px;
    background-color: transparent;
    background-image: -moz-linear-gradient(bottom, #E4E8EA 0%, #E8EBED 50%, #f1f3f4 96.36%, #FFFFFF 100%);
    background-image: -ms-linear-gradient(bottom, #E4E8EA 0%, #E8EBED 50%, #f1f3f4 96.36%, #FFFFFF 100%);
    background-image: -o-linear-gradient(bottom, #E4E8EA 0%, #E8EBED 50%, #f1f3f4 96.36%, #FFFFFF 100%);
    background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#E4E8EA), color-stop(0.5, #E8EBED), color-stop(0.9636, #f1f3f4), to(#FFFFFF));
    background-image: -webkit-linear-gradient(bottom, #E4E8EA 0%, #E8EBED 50%, #f1f3f4 96.36%, #FFFFFF 100%);
    background-image: linear-gradient(bottom, #E4E8EA 0%, #E8EBED 50%, #f1f3f4 96.36%, #FFFFFF 100%);
    -webkit-transition: all 0.30s ease-in-out;
    -moz-transition: all 0.30s ease-in-out;
    -ms-transition: all 0.30s ease-in-out;
    -o-transition: all 0.30s ease-in-out;	
	cursor: pointer;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.tool input[type="submit"] {
	background: rgba(238, 47, 40, 0.85);
	border-color: rgb(238, 47, 40);
}

.software input[type="submit"] {
	background: rgba(40, 132, 238, 0.85);
	border-color: rgb(40, 132, 238);
}

input[type="submit"]:hover {box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);}

input[type="submit"]:active {box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);}


/* ------------------------ RESPONSIVE ------------------------ */


@media screen and (max-width: 900px) {
	html {margin: 0 auto;}
	main {display: block;}
}

/* ------------------------ HIDE TOOLS ------------------------ */

/* To hide the TOOLS section, remove this line AND...
	html {max-width: 900px;}
	div.tool {display: none;}
...also remove this line */