html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #222;
  font-family: arial;
  color: #ccc;
  font-size: 32px;
  position: relative;
}

a {
  color: #ccc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;

}

.buttons {
  padding: 0.25em;
  height: 1.5em;
  padding-bottom: 0.5em;
  border-bottom: 0.25em solid #666;
}

.button {
  display: inline-block;
  padding: 0.25em;
  border-radius: 0.25em;
  background-color: #444;
  outline: none;
  cursor: pointer;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.button:hover, .button:focus {
  background-color: #666;
  color: #afc;
}

.button.delete:hover {
  background-color: #c00;
  color: #fdc;
}

.container {
  overflow-y: scroll;
  max-height: calc(100% - 3em);
  padding: 0.25em;
  padding-top: 0.125em;
}

.dropzone {
  margin-top: 0.25em;
  cursor: default;
  padding: 0.5em;
  font-weight: bold;
  border: 0.25em dashed #999;
  background-color: #333;
  color: #666;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.dropzone:hover {
  background-color: #444;
  color: #afc;
  border-color: #afc;
}

#mainroot svg {
  width: 1em;
  height: 1em;
}

.fs-entry {
  margin-top: 0.25em;
}

.fs-entry .xtree {
  padding-left: 1.5em;
}

.hidden, .cb-toggle,
.cb-toggle:not(:checked) + .fs-entry > .xtree, 
.cb-toggle:not(:checked) + .fs-entry > .fs-labels > label:nth-child(2) > svg:first-child, 
.cb-toggle:checked + .fs-entry > .fs-labels > label:nth-child(2) > svg:nth-child(2),
.cb-toggle:not(:checked) + .fs-labels > label:first-child > svg > use
{
  display: none;
}

.cb-toggle:checked ~ .xtree .fs-labels > label:first-child {
  background-color: #666;
}

.fs-labels > label {
  /*cursor: pointer;*/
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.fs-labels > label:first-child {
  border: 0.125em solid #ccc;
  width: 1em;
  height: 1em;
  display: inline-block;
  margin-right: 0.125em;
  float: left;
}

.fs-labels > label:last-child {
  display: block;
  width: auto;
  margin-left: 1.25em;
  height: 1.25em;
}

.fs-labels > label > span {
  padding-left: 0.125em;
}

.fs-labels:hover > label:first-child {
  border-color: #afc;
}

.fs-labels:hover > label > span,
.fs-labels:hover > label > a {
  color: #afc;
}

.fs-labels:hover > label:last-child {
  background-color: #444;
}



/*------------*/

.dialog {
  padding: 0.75em;
  background-color: #333;
  border-radius: 0.25em;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1.5em;
}

.dialog p:first-child {
  margin-top: 0;
}

input[type="text"], input[type="password"] {
  font-size: 1em;
  height: 1.5em;
  background: none;
  border: none;
  border-bottom: 0.125em solid #666;
  color: #ccc;
  outline: none;
}

input[type="text"]:hover, input[type="password"]:hover {
  background-color: #444;
  border-color: #999;
}

input[type="text"]:focus, input[type="password"]:focus {
  color: #afc;
  border-color: #afc;
}
