@charset "UTF-8";
/* CSS Document */

/* Reset CSS */

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

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;  
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}

/* Custom Styles */

body{
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	background: #ececec;
	color: #212121;
	font-family: arial, sans-serif;
}

main{
	flex: 1;
	padding: 5% 10%; 
}

header{
	padding: 1em;
	background: white;
	border-bottom: 3px solid #be1920;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    text-align: center;
}

header img{height: 2em;}

.d-flex{
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

img{
	max-width: 100%;
	height: auto;
}

section:not(:last-of-type){margin-bottom: 4vh;}

.list-unstyled{
	padding: 0;
	list-style-type: none;
}

/* cards */

.card{
	display: flex;
	overflow: hidden;
	flex-direction: column;
	border-radius: 4px;
	box-shadow: 0px 5px 10px rgba(0,0,0,.25);
	background: white;
	text-align: center;
	margin-bottom: 1.5em;
}

@media screen and (min-width: 768px) {
	.card{
		width: 32%;
		max-width: 400px;
	}
}

.card-body{
	flex:1;
}

.card-body,
.card-footer{
	padding: 1em;
}

h2{
	font-size: 1.2em;
	font-weight: bold;
}

.btn{
	text-decoration: none;
    background-color: #6dae23;
    box-shadow: 0 4px 0 0 #456e16;
    font-size: 1.285em;
    font-weight: 700;
    color: #212121;
    padding: .5em 1em;
    border: 0;
    display: inline-block;
    line-height: 1.5;
    border-radius: .25rem;
}

.btn:hover,
.btn:active{
	background: #7bb43e;
}

/* brands list */

.brands-list{
	align-items: center;
	justify-content: space-between;
}
.brands-list-item{
	width: calc(50% - .5em);
	margin: 1em .25em;
	text-align: center; 
}

@media screen and (min-width: 540px) {
	.brands-list-item{
		width: calc(33% - .5em);
	}
}

@media screen and (min-width: 768px) {

	.brands-list{
		max-width: 90%;
		margin: 0 auto;
	}

	.brands-list-item{
		width: calc(25% - .5em);
	}
}