* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  margin: 0;
  font: 1rem "Segoe UI", Arial, sans-serif;
  color: #ddd;
  background: #111;
}

.wrap {
  flex: 1;
  max-width: 80rem;
}

a {
  color: inherit;
  text-decoration: none;
}

#drop-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  font-size: 4rem;
  color: white;
  background: rgba(0,0,0,.5);
  border: .5rem dashed white;
  pointer-events: none;
}

#ctx-menu {
  display: flex;
  position: absolute;
  color: inherit;
  background: #222;
}

#ctx-menu .btn {
  display: block;
  width: 100%;
  padding: .5rem 1rem;
  font: inherit;
  text-align: left;
  color: inherit;
  background: inherit;
  border: none;
  cursor: pointer;
}
#ctx-menu .btn:hover,
#ctx-menu .btn:focus {
  background: #333;
}
#ctx-menu .btn:active {
  font: inherit;
  color: inherit;
  background: #444;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#file-list {
  display: flex;
  flex-wrap: wrap;
  line-height: 1em;
}

#file-list > li {
  display: flex;
  width: 100%;
}

#file-list a {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  padding: .75rem .75rem .75rem 4.25rem;
  background: #181818 no-repeat .75rem center / 3rem;
}
#file-list a:hover,
#file-list a:focus {
  background-color: #222;
}
#file-list a:active {
  background-color: #333;
}

#file-list span {
  margin: .25rem;
}

.file-size {
  color: #888;
}

.disconnect {
  display: inline-block;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}


@media (min-width: 40rem) {
  #file-list > li {
    width: 50%;
  }
}

@media (min-width: 60rem) {
  #file-list > li {
    width: 33.3333%;
  }
}
