#distribution-tool {
	width: 99%;
	margin: auto;
}

#hide-placeholders {
	display: none;
}

#hole-cards {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-around;
	margin-bottom: .5rem;
}

#hole-cards > * {
	flex: 0 1 50%;
	box-sizing: border-box;
}

.suit {
	display:flex;
	flex-direction:row;
	flex-wrap: wrap;	
}

.card {
	box-sizing: border-box;
	width: calc(100% / 7);
	padding: .1rem;
}

#hand-history {
	display: flex;
	flex-direction: column;
	width: 50%;
	margin: 0 auto;
}

#hand-history .card {
	width: calc(100% / 5);
}

#display-hand .card {
	width: calc(100% / 4);
}

.card.used {
	opacity: .4;
}

.section-heading {
	text-align: center;
}

#card-selection {
	margin-bottom: .5rem;
}

#display-hand {
	display:flex;
	flex-direction:row;
	flex-wrap: nowrap;
	justify-content: center;
	margin-bottom: .5rem;
}

#legend {
	display:flex;
	flex-direction:row;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: .5rem;
}

.legend-item {
	display:flex;
	flex-direction:row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	border-top: 1px solid #000000;
	border-right: 1px solid #000000;
	border-bottom: 1px solid #000000;
	width: calc(100% / 13);
	aspect-ratio: 1 / 1;
	font-size: .75rem;
}

.legend-item:first-child {
	border-left: 1px solid #000000;
}

#hand-distribution {
	display:flex;
	flex-direction:row;
	flex-wrap: wrap;
	border-left: 1px solid #000000;
	border-top: 1px solid #000000;
	margin-bottom: .5rem;
}

.abstraction {
	display:flex;
	flex-direction:row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	border-right: 1px solid #000000;
	border-bottom: 1px solid #000000;
	min-width: calc(100% / 13);
	flex: 1;
	aspect-ratio: 1 / 1;
	font-size: .75rem;
}

input[name="save_hand"] {
	display: block;
	margin: 0 auto;
	width: 50%;
	height: 100%;
	background-color: #1484eb;
	font-size: 1.5rem;
}

/* Color palette source: https://www.color-hex.com/color-palette/20901 */ 
/* Was given advice to you light/dark for the heatmap as it is easier for human eye to differentiate. https://colorbrewer2.org/#type=sequential&scheme=YlOrRd&n=7 */
/* ['#ffffb2','#fed976','#feb24c','#fd8d3c','#fc4e2a','#e31a1c','#b10026'] */
.count-1 {
	background-color: rgba(255, 255, 178, 1);
}

.count-2 {
	background-color: rgba(254, 217, 118, 1);
}

.count-3 {
	background-color: rgba(254, 178, 76, 1);
}

.count-4 {
	background-color: rgba(253, 141, 60, 1);
}

.count-5 {
	background-color: rgba(252, 78, 42, 1);
}

.count-6 {
	background-color: rgba(227, 26, 28, 1);
}

.count-7 {
	background-color: rgba(177, 0, 38, 1);
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	.card {
		padding: .2rem;
		width: calc(100% / 13);
	}

	.abstraction {
		font-size: 1rem;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
	#distribution-tool {
		width: 90%;
	}

	.card {
		padding: .3rem;
	}

	.abstraction {
		font-size: 1.25rem;
	}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	#distribution-tool {
		width: 70%;
	}

	.abstraction {
		font-size: 1.5rem;
	}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	#distribution-tool {
		width: 60%;
	}
}