body {
	font-family: sans-serif;
	margin: 20px;
	color: #222;
}

h1 {
	margin: 0 0 12px 0;
	font-size: 20px;
}

#amount {
	width: 300px;
}

header {
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	align-items: center;
}
 
#controls {
	display: flex;
	flex-flow: row;
	align-items: center;
	gap:10px;
}

#cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: minmax(200px, auto);
	gap: 20px;
}

#cards article {
	border: 1px solid #ccc;
	padding: 16px;
	display: flex;
	min-height: 200px;
	background: #fff;
}

#cards .card-info {
	flex: 1;
}

#cards h2 {
	margin: 0 0 8px 0;
	font-size: 18px;
}

#cards p {
	margin: 6px 0;
	color: #444;
}

#cards a {
	color: blue;
	text-decoration: none;
}

#cards .card-image {
	width: 130px;
	height: 130px;
	margin-left: 16px;
	background: #eee;
	display: flex;
	align-items: center;
	justify-content: center;
}

#cards .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

