/* stagit styles - matches hunterirving.com color scheme */

html {
	scrollbar-color: grey black;
	overflow-y: scroll;
	overscroll-behavior: none;
}

body {
	color: #ffffff;
	background-color: #000000;
	font-family: monospace;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1em;
}

h1 {
	font-family: sans-serif;
	margin-bottom: 0.2em;
}

.desc {
	color: #aaa;
	font-family: sans-serif;
	font-size: 1.2rem;
	margin-bottom: 0.6em;
}

.clone {
	margin-bottom: 0.8em;
	font-size: 1.2rem;
	font-family: sans-serif;
}

img, h1, h2 {
	vertical-align: middle;
}

img {
	border: 0;
	max-width: 100%;
	margin-bottom: 1rem;
}

a {
	color: #FF0000;
}

a:target {
	background-color: #222;
}

a.d,
a.h,
a.i,
a.line {
	text-decoration: none;
	user-select: none;
}

#blob a {
	color: #555;
}

#blob a:target {
	color: #eee;
}

#blob a:hover {
	color: #FF0000;
	text-decoration: none;
}

table {
	border-collapse: collapse;
	font-size: 1.05rem;
	line-height: 1.5;
}

table thead td {
	font-weight: bold;
}

table td {
	padding: 0 0.4em;
	border: none;
}

#content table td {
	vertical-align: top;
	white-space: nowrap;
}

#content > p {
	font-size: 1.2rem;
}

#content table {
	width: 100%;
	table-layout: auto;
}

#branches tbody tr:hover td,
#tags tbody tr:hover td,
#index tbody tr:hover td,
#log tbody tr:hover td,
#files tbody tr:not(.dir-row):hover td {
	background-color: #111;
}

#index tr td:nth-child(2),
#tags tr td:nth-child(3),
#branches tr td:nth-child(3) {
	white-space: normal;
}

td.num {
	text-align: right;
}

hr {
	border: 0;
	border-top: 1px solid #222;
	height: 1px;
}

pre {
	font-family: monospace;
	font-size: 1.05rem;
	line-height: 1.5;
	tab-size: 2;
	overflow-x: auto;
	overflow-y: visible;
	overscroll-behavior-x: none;
}

#readme {
	font-family: sans-serif;
	line-height: 1.6;
}

#readme p,
#readme li,
#readme td,
#readme blockquote,
#readme dd,
#readme dt {
	font-size: 1.2rem;
}

#readme pre,
#readme code {
	font-family: monospace;
}

#readme :not(pre) > code {
	background-color: #333;
	padding: 0.1em 0.3em;
	border-radius: 3px;
	font-size: 0.85em;
}

/* nav links */
.nav-links {
	font-family: sans-serif;
	font-size: 1.2rem;
	margin-top: 2.7rem;
}

.nav-links a {
	color: #FF0000;
}

.nav-links .current-page {
	color: #ffffff;
	cursor: default;
	text-decoration: underline;
}

.clone-action {
	color: #FF0000;
	cursor: pointer;
	text-decoration: underline;
}

.clone-hint {
	font-family: sans-serif;
	color: #ffffff;
}

pre a.h {
	color: #00cdcd;
}

.A,
span.i,
pre a.i {
	color: chartreuse;
}

.D,
span.d,
pre a.d {
	color: #FF0000;
}

pre a.h:hover,
pre a.i:hover,
pre a.d:hover {
	text-decoration: none;
}

/* expandable directory rows */
.dir-row td {
	padding: 0 !important;
}

.dir-row details {
	margin: 0;
}

.dir-row details summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	cursor: pointer;
	padding: 0 0.4em;
	line-height: 1.5;
}

.dir-row details summary::-webkit-details-marker {
	display: none;
}

.dir-row details summary::marker {
	display: none;
	content: "";
}

.dir-row details summary:hover {
	background-color: #111;
}

.dir-name {
	color: #FF0000;
}

.dir-size {
	text-align: right;
	color: #ffffff;
}

.nested-files {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.05rem;
	line-height: 1.5;
}

.nested-files td {
	padding: 0 0.4em;
	border: none;
	white-space: nowrap;
}


.nested-files .num {
	text-align: right;
}

.nested-files tbody tr:hover td {
	background-color: #111;
}

/* index page: #content is first child, so add top padding to match repo pages */
body > #content:first-child {
	padding-top: 2em;
}

/* clickable table rows */
.log-row {
	cursor: pointer;
}

.log-row td {
	padding: 0;
}

.log-row td a {
	display: block;
	padding: 0 0.4em;
}

.log-link {
	color: inherit;
	text-decoration: none;
}

::selection {
	background: red;
	color: white;
}

#log tr td:first-child {
	white-space: normal;
}

@media (prefers-color-scheme: light) {
	html {
		scrollbar-color: grey white;
	}
	body {
		background-color: #ffffff;
		color: #000000;
	}
	hr {
		border-color: #ccc;
	}
	a {
		color: #370fff;
	}
	a:target {
		background-color: #ccc;
	}
	.desc {
		color: #555;
	}
	#blob a {
		color: #555;
	}
	#blob a:target {
		color: #000;
	}
	#blob a:hover {
		color: #370fff;
	}
	.clone-hint {
		color: #000000;
	}
	pre a.h {
		color: #00a;
	}
	.A,
	span.i,
	pre a.i {
		color: #419450;
	}
	.D,
	span.d,
	pre a.d {
		color: #FF0000;
	}
	#readme :not(pre) > code {
		background-color: #e8e8e8;
		color: #000000;
	}
	.nav-links a {
		color: #370fff;
	}
	.nav-links .current-page {
		color: #000000;
	}
	.clone-action {
		color: #370fff;
	}
	.dir-name {
		color: #370fff;
	}
	#branches tbody tr:hover td,
	#tags tbody tr:hover td,
	#index tbody tr:hover td,
	#log tbody tr:hover td,
	#files tbody tr:not(.dir-row):hover td {
		background-color: #eee;
	}
	.dir-row details summary:hover {
		background-color: #eee;
	}
	.dir-size {
		color: #000000;
	}
	.nested-files tbody tr:hover td {
		background-color: #eee;
	}
}
