* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted",
    "Segoe UI", "Liberation Sans", sans-serif;
  margin: 0;
}

/* Hide the app until it's ready */
#app:not([data-v-app]) {
  display: none;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
}

.file-list > li {
  width: 33.33%;
}

@media only screen and (max-width: 768px) {
  .file-list > li {
    width: 100%;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

input[type="search"] {
  background-color: whitesmoke;
  border: none;
  border-radius: 16px;
  width: 100%;
  padding: 8px 12px;
}

.file-item {
  height: 64px;
  padding: 8px 0;
  transition: background-color 0.2s ease-in-out;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.file-item:hover {
  background-color: #f5f5f5;
}

.file-item > div {
  min-width: 0;
}

.file-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-name,
.contextmenu-filename {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.file-attr {
  margin-top: 4px;
  color: dimgray;
  font-size: 0.8em;
}

.file-attr > span + span {
  margin-left: 8px;
}

progress {
  position: fixed;
  bottom: 0;
  width: 100%;
}

button.circle {
  border-radius: 50%;
}

.upload-button,
.create-folder-button {
  position: fixed;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(243, 128, 32);
  cursor: pointer;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
}

.upload-button {
  right: 16px;
  bottom: 16px;
}

.create-folder-button {
  right: 16px;
  bottom: 80px;
}

.contextmenu-filename {
  padding: 12px;
  min-width: 256px;
}

.contextmenu-list > li > * {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: left;
  transition: background-color 0.2s ease-in-out;
  font-size: inherit;
}

.contextmenu-list > li > *:hover {
  background-color: whitesmoke;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.fade-enter-to,
.fade-leave-from {
  opacity: 1;
}

.slide-up-enter-active {
  transition: transform 0.2s ease-out;
}

.slide-up-leave-active {
  transition: transform 0.2s ease-in;
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(100%);
}
