/* We have to use @import for the font, as you can only specify a single stylesheet */
@import url("//fonts.googleapis.com/css?family=Open+Sans");
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --bg-color: white;
  --text-color: #202020;
  --hover-brightness: 0.95;
  --border-color: #dedede;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #14181e;
    --text-color: #ced6dd;
    --hover-brightness: 1.2;
    --border-color: #202329;
  }
}

html {
  min-height: 100%;
  font-weight: 300;
  font-size: 1em;
  font-family: system, -apple-system, ".SFNSDisplay-Regular", "HelveticaNeue",
    "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  line-height: 2em;
}

body {
  max-width: 900px;
  margin: 0 auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

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

.icons {
  /*margin: 3px 5px 3px 5px;*/
  height: 23px;
  width: 24px;
}

/*------------------------------------*\
    Wrapper
\*------------------------------------*/
.wrapper {
  margin: 0 auto;
  padding-top: 20px;
  max-width: 800px;
}

/*------------------------------------*\
    Demo block
\*------------------------------------*/
h1 {
  font-weight: 200;
  text-align: center;
  font-size: 1.4em;
  line-height: 3em;
  font-family: "Museo Slab", "Open Sans", monospace;
}

a.clear,
a.clear:link,
a.clear:visited {
  padding: 2px 0 2px 0;
  font-weight: 400;
  font-size: 14px;
  margin: 0px 0 0 20px;
  line-height: 14px;
  display: inline-block;
  border-bottom: transparent 1px solid;
  vertical-align: -10px;
  -webkit-transition: all 300ms ease-in;
  -moz-transition: all 300ms ease-in;
  -ms-transition: all 300ms ease-in;
  -o-transition: all 300ms ease-in;
  transition: all 300ms ease-in;
}

a.clear:hover {
  text-decoration: none;
  cursor: pointer;
}

/*------------------------------------*\
    Table (directory listing)
\*------------------------------------*/
table {
  border-collapse: collapse;
  font-size: 0.875em;
  max-width: 100%;
  margin: 20px auto 0px auto;
}

tr {
  outline: 0;
  border: 0;
}

tr:hover td {
  backdrop-filter: brightness(var(--hover-brightness));
}

th {
  text-align: left;
  font-size: 1em;
  padding-right: 20px;
  width: 85%;
}

/* 2nd Column: Filename */
th + th {
  width: 10%;
  padding-left: 0px;
  padding-right: 0px;
  min-width: 100px;
}

/* 3rd Column: Last Modified */
th + th + th {
  width: 20%;
}

/* 4th Column: Size */
th + th + th + th {
  width: 5%;
}

tr td:first-of-type {
  padding-left: 10px;
  padding-right: 10px;
}

th:first-of-type {
  padding-left: 10px;
}

td {
  padding: 3px 0;
  outline: 0;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  text-align: left;
  -webkit-transition: -webkit-backdrop-filter 300ms ease-in;
  -moz-transition: -moz-backdrop-filter 300ms ease-in;
  -ms-transition: -ms-backdrop-filter 300ms ease-in;
  -o-transition: -o-backdrop-filter 300ms ease-in;
  transition: backdrop-filter 300ms ease-in;
}

td:last-child,
th:last-child {
  text-align: right;
  min-width: 150px;
}

th:last-child {
  padding-right: 5px;
}

td:last-child {
  padding-right: 10px;
}

td a {
  display: block;
}

tr.parent a {
  color: var(--text-color);
}

/*------------------------------------*\
    Footer
\*------------------------------------*/
#footer {
  margin-top: 20px;
}

.footer {
  text-align: center;
  font-size: 0.75em;
  margin-top: 50px;
}

.text-center {
  margin-bottom: 20px;
}
