#drawspace {
	margin: auto;
}

#messageBox {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	background-color: #222222;
	padding-top: 5px;
	padding-bottom: 5px;
}

#clickText {
	font-family: Verdana;
	color: #dddddd;
}

.thumbs {
	border: solid;
	border-width: 1px;
	border-color: #ffffff;
}

.gallery {
	display: grid;
	justify-content: center;
	align-content: center;
	margin: auto;
	grid-column-gap: 4px;
	grid-row-gap: 4px;
}

.controls {
	display: grid;
	justify-content: center;
	align-content: center;
	margin: auto;
	grid-column-gap: 2px;
}

.buttons {
	text-align: center;
	font-family: Verdana;
	background-color: #222222;
	color: #dddddd;
	border-color: #dddddd;
	border-style: solid;
	border-width: 1px;
	border-radius: 3px;
}

@media screen and (max-width: 390px) {
	
	#drawspace {
		width: 250px;
		height: 266.66px;
	}
	
	#messageBox {
		width: 250px;
	}
	
	#clickText {
		font-size: 12px;
	}
	
	.thumbs {
		width: 50px;
		height: 50px;
	}

	.gallery {
		grid-template-columns: 50px 50px 50px 50px 50px;
		grid-template-rows: 50px 50px;
	}

	.controls {
		grid-template-columns: 75px 75px 75px;
		grid-template-rows: 20px;
	}

	.buttons {
		width: 75px;
		height: 20px;
		font-size: 12px;
	}
}

@media screen and (max-width: 450px) {
	
	#messageBox {
		width: 300px;
	}
	
	#clickText {
		font-size: 12px;
	}
	
	.thumbs {
		width: 50px;
		height: 50px;
	}

	.gallery {
		grid-template-columns: 50px 50px 50px 50px 50px;
		grid-template-rows: 50px 50px;
	}

	.controls {
		grid-template-columns: 75px 75px 75px;
		grid-template-rows: 20px;
	}

	.buttons {
		width: 75px;
		height: 20px;
		font-size: 12px;
	}
}

@media screen and (max-width: 600px) {
	
	#drawspace {
		width: 325px;
		height: 346.66px;
	}
	
	#messageBox {
		width: 350px;
	}
	
	#clickText {
		font-size: 12px;
	}
	
	.thumbs {
		width: 50px;
		height: 50px;
	}

	.gallery {
		grid-template-columns: 50px 50px 50px 50px 50px;
		grid-template-rows: 50px 50px;
	}

	.controls {
		grid-template-columns: 75px 75px 75px;
		grid-template-rows: 20px;
	}

	.buttons {
		width: 75px;
		height: 20px;
		font-size: 12px;
	}
	
}

@media screen and (min-width: 600px) {
	
	#drawspace {
		width: 450px;
		height: 480px;
	}
	
	#messageBox {
		width: 450px;
	}
	
	#clickText {
		font-size: 12px;
	}
	
	.thumbs {
		width: 50px;
		height: 50px;
	}

	.gallery {
		grid-template-columns: 50px 50px 50px 50px 50px;
		grid-template-rows: 50px 50px;
	}

	.controls {
		grid-template-columns: 100px 100px 100px;
		grid-template-rows: 35px;
	}

	.buttons {
		width: 100px;
		height: 25px;
		font-size: 12px;
	}
}

@media screen and (min-width: 768px) {
	
	#drawspace {
		width: 500px;
		height: 533.33px;
	}
	
	#messageBox {
		width: 500px;
	}
	
	#clickText {
		font-size: 14px;
	}
	
	.thumbs {
		width: 100px;
		height: 100px;
	}

	.gallery {
		grid-template-columns: 100px 100px 100px 100px 100px;
		grid-template-rows: 100px 100px;
	}

	.controls {
		grid-template-columns: 100px 100px 100px;
		grid-template-rows: 25px;
	}

	.buttons {
		width: 100px;
		height: 25px;
		font-size: 14px;
	}
}

@media screen and (min-width: 1024px){
	
	#drawspace {
		width: 500px;
		height: 533.33px;
	}
	
	#messageBox {
		width: 500px;
	}
	
	#clickText {
		font-size: 14px;
	}
	
	.thumbs {
		width: 100px;
		height: 100px;
	}

	.gallery {
		grid-template-columns: 100px 100px 100px 100px 100px;
		grid-template-rows: 100px 100px;
	}

	.controls {
		grid-template-columns: 100px 100px 100px;
		grid-template-rows: 25px;
	}

	.buttons {
		width: 100px;
		height: 25px;
		font-size: 14px;
	}
}

@media screen and (min-width: 1200px){
	
	#drawspace {
		width: 550px;
		height: 586.66px;
	}
	
	#messageBox {
		width: 550px;
	}
	
	#clickText {
		font-size: 16px;
	}
	
	.thumbs {
		width: 125px;
		height: 125px;
	}

	.gallery {
		grid-template-columns: 125px 125px 125px 125px 125px;
		grid-template-rows: 125px 125px;
	}

	.controls {
		grid-template-columns: 150px 150px 150px;
		grid-template-rows: 35px;
	}

	.buttons {
		width: 150px;
		height: 35px;
		font-size: 16px;
	}
}


@media screen and (min-width: 1400px){
	
	#drawspace {
		width: 600px;
		height: 640px;
	}
	
	#messageBox {
		width: 600px;
	}
	
	#clickText {
		font-size: 16px;
	}
	
	.thumbs {
		width: 125px;
		height: 125px;
	}

	.gallery {
		grid-template-columns: 125px 125px 125px 125px 125px;
		grid-template-rows: 125px 125px;
	}

	.controls {
		grid-template-columns: 150px 150px 150px;
		grid-template-rows: 35px;
	}

	.buttons {
		width: 150px;
		height: 35px;
		font-size: 16px;
	}
}

