body,
html,
#window {
  width: 100%;
  height: 100%;
}
#window.loading {
  cursor: progress;
}
#overlays #blue-selection {
  display: none;
  position: fixed;
  background: rgba(0, 95, 179, 0.18);
  border: 1px solid #005fb3;
  pointer-events: none;
}
#overlays #nav-min-width {
  display: none;
  width: 3em;
}
#overlays #overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}
#overlays #dialog-rename {
  white-space: nowrap;
  position: fixed;
  margin: 1em;
}
#overlays #dialog-rename.gtk-hidden {
  margin-top: 0;
}
#overlays #dialog-newFolder {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#overlays #dialog-message {
  top: 3em;
}
#overlays #dialog-upload {
  top: 3em;
}
#window {
  display: grid;
  grid-template-areas: "head head head" "nav resize content";
  grid-template-columns: auto 5px 1fr;
  grid-template-rows: auto 1fr;
}
#head {
  grid-area: head;
}
#head .gtk-group {
  flex-shrink: 0;
}
#head #address-buttons {
  margin: .5em;
  margin-top: 0;
  margin-bottom: 0;
  overflow: auto;
  white-space: nowrap;
  height: 2em;
  flex-shrink: 1;
}
#head #address-buttons button {
  float: none;
  overflow: auto;
  padding: 1em;
  padding-top: 0;
  padding-bottom: 0;
}
#nav {
  height: 100%;
  grid-area: nav;
  background: whitesmoke;
  border-right: 1px solid #9e9e9e;
  width: 10em;
}
#nav button {
  width: 100%;
  margin: 0.2em;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  display: flex;
  align-items: center;
  font-size: 1em;
}
#nav button:hover {
  background: #eaeaea;
}
#nav .gtk-icon {
  margin: 1em;
  flex-shrink: 0;
}
#nav .text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#pane-resize {
  grid-area: resize;
  cursor: ew-resize;
}
#content {
  grid-area: content;
  overflow: auto;
}
#content #elements {
  user-select: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, 8em);
  text-align: center;
  justify-content: space-around;
  align-content: flex-start;
}
#content #elements .element {
  margin-top: 1em;
  width: 8em;
  height: 10em;
  font-size: .9em;
}
#content #elements .element img {
  height: 6em;
}
#content #elements .element .text {
  width: 100%;
  padding: .2em;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}
#content #elements .element.selected .text {
  background: #3096ff;
  color: white;
  border-radius: .4em;
}
