:root {
  --color-bg: #ffffff;
  --color-text: #666666;
  --color-table-bg: #ffffff;
  --color-table-bg--head: #ffffff;
  --color-table-bg--even: #ffffff;
  --color-table-text: #666666;
  --color-link-text: #0000cc;
  --color-link-text--visited: #0000cc;
  --color-search-text: #8e44ad;
  --color-search-bg: #ffffff;
  --color-search-border: rgba(0, 0, 0, .15);
  --color-search-border--focus: #666666;
}

/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #222222;
    --color-text: #bbb;
    --color-table-bg: #222222;
    --color-table-bg--head: #181818;
    --color-table-bg--even: #333;
    --color-table-text: #ccc;
    --color-link-text: #3096d5;
    --color-link-text--visited: #9e4ebf;
    --color-search-text: #9e4ebf;
    --color-search-bg: #181818;
    --color-search-border: rgba(255, 255, 255, .15);
    --color-search-border--focus: #9e4ebf;
  }
}
*/

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: none;
}

h1,
h2 {
    font-family: 'Open Sans', sans-serif;
 	font-weight: 600;
  	font-size: 24px;
  	color: #333333;
  	border: none;
}

#directory_page_h1 {
	margin: 20px 10px 10px 10px;
}

table {
  background: var(--color-table-bg);
  border: none;
  table-layout: auto;
}

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

table tr th,
table tr td {
  font-size: 1em;
  color: var(--color-table-text);
  text-align: left;
  line-height: 1em;
  border: none;
}

#indexlist {
	border: none;
	padding: 0px 10px;
}

th.indexcolicon,
td.indexcolicon {
	padding: 5px 5px 5px 5px;
	max-width: 18px;
	min-width: 18px;
	width: 18px;
	white-space:nowrap;
	vertical-align: middle;
	border: none;
}

th.indexcolname,
td.indexcolname {
	padding: 5px 5px 5px 5px;
	max-width: 735px;
	white-space:nowrap;
	vertical-align: middle;
	border: none;
}

th.indexcolsize,
td.indexcolsize {
	padding: 5px 0px 5px 5px;
	max-width: 100px;
	white-space:nowrap;
	text-align: right;
	vertical-align: middle;
	border: none;
}

th.indexcoldesc,
td.indexcoldesc {
	padding: 5px 0px 5px 10px;
	max-width: 177px;
	white-space:nowrap;
	text-align: left;
	vertical-align: middle;
	border: none;
}

table thead tr th {
  padding: 0;
  font-weight: bold;
  color: #333333;
  border: none;
}

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

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

a:hover {
  text-decoration: none;
}

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

.img-wrap {
  vertical-align: middle;
  display: inline-block;
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.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;
}

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

#search {
  display: block;
  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: 1px 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;
}

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

  #page-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 1em;
    border: none;ß
  }

  #search {
    margin-left: 0;
  }
}