@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: normal;
  src: local('Inconsolata'), url(.././fonts/Inconsolata.woff) format('woff');
}

@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: bold;
  src: local('Inconsolata-Bold'), local('Inconsolata Bold'), url(.././fonts/Inconsolata-Bold.woff) format('woff');
}

body {
	margin: 0;
	padding: 3px;
    font: 1em Inconsolata, monospace;
}

header {
	position: fixed;
	top: 0;
	z-index: 1;
	width: 100%;
	height: 68px;
	background-color: white;
	border-bottom: 1px solid lightgray;
}

header h1 {
	float: left;
	margin-left: 25px;
	margin-top: 15px;
}

header div {
	float: right;
	padding: 25px;
}

#colortable {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-column-gap: 3px;
	padding-top: 69px;
}

#colortable .column {
	display: grid;
	grid-auto-rows: 61px;
	grid-row-gap: 3px;
}

.column div {
	padding: 5px 10px;
}

.box {
	position: fixed;
	top: -100%;
	left: -10px;
	z-index: 1;
	overflow: hidden;
	width: 100%;
	opacity: 0;
	transition: opacity 0.15s ease-in-out;
	background-color: inherit;
	color: inherit;
}

.box:target {
	top: 0;
	bottom: 0;
	opacity: 1;
}

.close {
	display: block;
	width: 100%;
	height: 100%;
}

.open {
	float: right;
	opacity: 0.7;
	color: inherit;
}

.open:after {
	content: '+';
}

a {
	color: black;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

@media screen and (max-width: 1000px) {
	#colortable {
		grid-template-columns: 1fr;
		grid-row-gap: 3px;
	}

	header h1 {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		margin: auto;
		margin: 6px 0;
		text-align: center;
		font-size: 1.2em;
	}

	header div {
		float: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		margin: 35px 0;
		padding: 0;
		text-align: center;
	}

}
