:root {
	--color-bg: #354B60;
	--color-text: white;
	--color-table-bg: white;
	--color-table-bg--head: #efefef;
	--color-table-bg--even: whitesmoke;
	--color-table-text: black;
	--color-link-text-light: white;
	--color-link-text-light--visited: white;
	--color-link-text-dark: black;
	--color-link-text-dark--visited: black;
	--color-search-text: #354B60;
	--color-search-bg: white;
	--color-search-border: rgba(241, 196, 15, .50);
	--color-search-border--focus: #f1c40f;
}

body {
	margin: 0.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-weight: 400;
	color: var(--color-text);
	background-color: var(--color-bg);
}

table {
	width: 100%;
	background: var(--color-table-bg);
	border: 0;
	table-layout: auto;
	border-radius: 0.5rem;
}

table thead {
	background: var(--color-table-bg--head);
}

table tr th,
table tr td {
	padding: 0.5625rem 0.625rem;
	font-size: 0.875rem;
	color: var(--color-table-text);
	text-align: left;
	line-height: 1.125rem;
}

table thead tr th {
	padding: 0.5rem 0.625rem 0.625rem;
	font-weight: bold;
}

table tr.even {
	background: var(--color-table-bg--even);
}

a {
	text-decoration: none;
	color: var(--color-link-text-dark);
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: var(--color-link-text-dark--visited);
}

.lightlink {
	text-decoration: none;
	color: var(--color-link-text-light);
}

.lightlink:hover {
	text-decoration: underline;
}

.lightlink:visited {
	text-decoration: none;
	color: var(--color-link-text-light--visited);
}

#cwd {
	padding-bottom: 0.5rem;
}

#linksrow {
	padding-bottom: 0.5rem;
	display: flex;
}

.linkrow {
	padding-right: 2rem;
}

.img-wrap {
	vertical-align: middle;
	display: inline-block;
	margin-right: 0.5rem;
	width: 1rem; 
	height: 1rem;
}

.img-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.img-wrap + a {
	display: inline-block;
	vertical-align: middle;
}

.hidden {
	display: none;
}

.attributions {
	font-size: 0.8rem;
	text-align: right;
	padding: 0.8rem;
}

#page-header {
	display: flex;
	align-items: center;
	margin-left: 0.625rem;
	margin-right: 0.625rem;
}

#search {
	display: inline;
	float: right;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	line-height: 1.25;
	color: var(--color-search-text);
	background-color: var(--color-search-bg);
	background-image: none;
	background-clip: padding-box;
	border: 0.15rem solid var(--color-search-border);
	border-radius: 0.25rem;
	margin-left: 1rem;
	-webkit-appearance: textfield;
}

#search:focus {
	border-color: var(--color-search-border--focus);
	outline: 0;
}

.pointyhand:hover {
	cursor: pointer;
}

/* Hide extra columns so they don't squash file names */
@media (max-width: 600px) {
	.indexcollastmod, .indexcoldesc, .indexcolsize {
		display: none;
	}

	h1 {
		font-size: 1.5rem;
	}

	#page-header {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		margin-bottom: 1rem
	}

	#search {
		margin-left: 0;
	}

	#lakkaflower {
		width: 3rem;
		height: 3rem;
	}
}

@media (max-width: 400px) {
	h1 {
		font-size: 1.375em;
	}
	#lakkaflower {
		width: 2rem;
		height: 2rem;
	}
}
