body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 14px;
  line-height: 1.5;
  color: #24292e;
  padding: 0;
  margin: 0;
}

a, a:visited, a:active {
  color: inherit;
}

html, body, #stage {
  height: 100%;
  overflow: hidden;
}

.button {
  border: 0;
  border-radius: 0.5em;
  padding: 0.5em;
  color: #eee;
  background-color: #236499;
  font-size: inherit;
  cursor: pointer;
  font-weight: bold;
}

  .button:disabled {
    background-color: #ccc;
  }

.auth {
  font-size: 3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 75%;
}

  .auth__input {
    font-size: inherit;
    text-align: center;
  }

  .auth__submit {
    font-size: inherit;
  }

  .auth__error {
    color: #990000;
    font-size: 0.5em;
  }

.album {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.options {
  background-color: #f2f2f2;
  flex: 0 10em;
  padding: 1em;

  display: flex;
  flex-direction: column;
}

  .options__upload {
    font-size: 1.25em;
    flex: 0 0 auto;
  }

  .options__filter {
    display: flex;
    flex-direction: column;
  }

  .options__uploaders {
    list-style: none;
    padding-left: 1em;
    margin: 0;
    border-left: 1px solid #236499;
    overflow: auto;
  }

  .options__uploader {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 0.5em;
    padding: 0.5em;
    outline: none;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    margin: 0.2em;
  }

  .options__uploader--active {
    background-color: #236499;
    color: #fff;
  }

.upload-collection {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-y: auto;
}

.upload-tile {
  width: 250px;
  height: 250px;
  margin: 20px;
}

  .upload-tile__link {
    width: 100%;
    height: 100%;
    background-color: #eee;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .upload-tile__image {
    max-width: 100%;
    max-height: 100%;
  }

  .upload-tile__video {
    font-size: 2em;
    letter-spacing: 2px;
  }

  .upload-tile__uploader {
    font-size: 0.85em;
    padding: 0.5em;
    color: #777;
    text-align: center;
  }

.gallery {
  position: absolute;
  left: 0px;
  top: 0px;
  background-color: rgba(0,0,0,.85);
  width: 100%;
  height: 100%;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

  .gallery__controls {
    flex: 0 0 auto;

    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .gallery__display {
    flex: 1 1;
    display: flex;
    flex-direction: row;
  }

  .gallery__button {
    padding: 0.5em;
    background: none;
    color: #fff;
    border: none;
    font-size: 3em;
    cursor: pointer;
    font-weight: bold;
    outline: none;
  }

    .gallery__button:disabled {
      color: #666;
      cursor: default;
    }

  .gallery__prev, .gallery__next {
    flex: 1;
  }

  .gallery__upload {
    flex: 8;

    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
  }

.gallery-upload {
  flex: 1;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

  .gallery-upload__link {
    flex: 1;

    display: flex;
  }

  .gallery-upload__image {
    flex: 1;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .gallery-upload__video {
    flex: 1;
    font-size: 4em;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gallery-upload__uploader {
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 1em;
  }

.uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

  .uploader__back {
    font-size: 1.5em;
    margin: 10px;
  }

  .uploader__name-label {
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .uploader__name-input {
    text-align: center;
  }

  .uploader__active-uploads {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .uploader__form {
    margin: 10px;
    flex-grow: 1;

    display: flex;
    flex-direction: column;
  }

  .uploader__file-label {
    flex-grow: 1;
    cursor: pointer;
    width: 75vw;
    border: 3px dashed;
    border-radius: 1em;
    margin: 0.25em;
    padding: 1em;
    font-size: 2em;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .uploader__file-label--dropping {
    border: 3px dashed #a0a0a0;
    color: #a0a0a0;
  }

  .uploader__file-input {
    width: 0.1px;
    height: 0.1px;
    position: absolute;
    z-index: -100;
    overflow: hidden;
  }

  .uploader__submit {
    font-size: 2em;
    margin: 0.25em;
    background-color: #22dd66;
  }

.error-list {
  padding: 0;
  margin: 1em 0;
  list-style: none;
  width: 75%;
}

  .error-list__item {
    display: flex;

    background-color: rgb(255,200,200);
    padding: 0.2em;
    margin: 0.2em;
    border: 0.1em solid rgb(255, 100, 100);
    border-radius: 0.5em;
  }

  .error-list__item-message {
    flex: auto;
  }

  .error-list__item-button {
    flex: none;
  }

.progress {
  width: 50vw;
  margin: 0.2em;
  border: 0.2em solid black;
  border-radius: 0.6em;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

  .progress__background {
    transition: width 1s ease-out;
    width: 0;
    height: 100%;
    position: absolute;
    z-index: -1;
    width: 40%;
  }

    .progress__background--blue {
      background-color: rgba(0, 100, 200, 0.6);
    }

    .progress__background--green {
      background-color: rgba(0, 200, 100, 0.6);
    }

  .progress__label {
    margin: 0.4em;
    text-align: center;
  }

@media (max-width: 600px) {
  .album {
    flex-direction: column;
  }

  .options {
    flex-direction: row;
  }

  .options__upload {
    flex: 0 0 20%;
    margin-right: 1em;
  }

  .options__uploaders {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
}
