*,
*:focus {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

html,
body {
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-weight: 400;
  box-sizing: border-box;
  /* padding: 0.5em; */
  margin: 0;
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  /* overflow: hidden; */
  background: rgba(0, 0, 0, 0.9);
  flex-grow: 1;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

#container {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: end;
  padding: 3em;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 10;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

#container::-webkit-scrollbar {
  display: none;
}

header {
  box-sizing: border-box;
  position: relative;
  max-width: 360px;
  width: 100%;
  padding: 1em;
  font-weight: 700;
  font-size: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  /* margin-bottom: 1em; */
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

header:hover {
  color: rgba(255, 255, 255, 1);
}

header .title {
  font-size: 1.6em;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

header .title:hover {
  text-decoration: underline;
}

header .title img {
  width: 100px;
  transition-duration: 0.2s;
  transition-property: transform;
  transform: scale(0.95);
}

header .title:hover img {
  transition-duration: 0.2s;
  transition-property: transform;
  transform: scale(1);
}

header .subtitle {
  font-size: 0.9em;
  font-weight: 400;
}

main {
  box-sizing: border-box;
  position: relative;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  border-radius: 2em;
  padding: 1em 2em;
  z-index: 10;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

main:hover {
  border-color: rgba(255, 255, 255, 1);
}

article {
  box-sizing: border-box;
  position: relative;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  border-radius: 2em;
  padding: 2em;
  z-index: 10;
  color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
}

#prefooter {
  margin-top: 1em;
}

footer {
  box-sizing: border-box;
  position: relative;
  max-width: 360px;
  font-weight: 400;
  width: 100%;
  padding: 3em 2em;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0.7em;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

footer.dark {
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 1.7em;
}

footer .service {
  font-size: 1em;
  margin-bottom: 1em;
}

footer .title {
  font-size: 0.9em;
  font-weight: 400;
  text-decoration: none;
  color: inherit;
}

footer .title:hover {
  text-decoration: underline;
}

#dropping-files {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 40;
  color: white;
}

#illustration {
  --rotate-y: 0deg;
  --left: center;
  --top: center;
  --translate-left: -50px;
  --translate-top: 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: var(--left) var(--top);
  animation: grow infinite alternate ease-in-out 20s;
  z-index: 0;
  filter: grayscale(1) contrast(1.5);
  /* filter: hue-rotate(-20deg) contrast(0.9) saturate(0.85) brightness(1.2); */
}

#illustration[dropping] {
  filter: sepia(1);
  z-index: 30;
}

#frame {
  box-sizing: border-box;
  pointer-events: all;
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw + 3em);
  height: calc(100vh + 3em);
  margin: -1.5em;
  border: 3em solid rgba(10, 10, 10);
  border-radius: 4.7em;
  z-index: 5;
}

#frame-top {
  content: '';
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 1.51em;
  background: rgba(10, 10, 10);
  z-index: 100;
}

#frame-bottom {
  content: '';
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 1.51em;
  background: rgba(10, 10, 10);
  z-index: 100;
}

main #dropping {
  display: block;
  color: white;
  font-size: 1em;
}

#files {
  background-color: white;
  box-sizing: border-box;
  position: relative;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  border-radius: 1.7em;
  padding: 0;
  z-index: 10;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.03) 0px 1px 2px, rgba(0, 0, 0, 0.03) 0px 2px 4px,
    rgba(0, 0, 0, 0.03) 0px 4px 8px, rgba(0, 0, 0, 0.03) 0px 8px 16px,
    rgba(0, 0, 0, 0.03) 0px 16px 32px, rgba(0, 0, 0, 0.03) 0px 32px 64px;
}

#files-form {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
}

#files-form .field {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  border-top: 1px solid rgba(99, 99, 99, 0.2);
}

#files-form label {
  font-size: 0.8em;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 1.8em;
  left: 2.4em;
  transition-property: top, left, font-size;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  cursor: text;
}

#files-form input,
#files-form textarea {
  padding: 2.4em 1.5em 1.7em;
  border: none;
  background: transparent;
  resize: none;
  font-size: 1em;
  line-height: 1.2;
  font-family: inherit;
}

#files-form input:placeholder-shown + label,
#files-form textarea:placeholder-shown + label {
  font-size: 0.8;
  top: 1.8em;
  left: 2.4em;
}

#files-form input:focus + label,
#files-form textarea:focus + label,
#files-form input:not(:placeholder-shown) + label,
#files-form textarea:not(:placeholder-shown) + label {
  font-size: 0.7em;
  top: 1.3em;
  left: 2em;
}

#files-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  padding: 1.5em 2em;
  border-top: 1px solid rgba(99, 99, 99, 0.2);
}

#files-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 0 1em 0.5em;
  color: black;
}

#files-loader {
  position: relative;
  margin-top: 1em;
  height: 1.8em;
  font-size: 1em;
  font-weight: 500;
  color: rgba(0, 0, 0, 1);
  /* background: rgba(255, 255, 255, 1); */
  border: 3px solid rgba(255, 255, 255, 1);
  border-radius: 0.6em;
  /* cursor: pointer; */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

#files-loader-bar {
  width: 100%;
  height: 100%;
  color: white;
  font-size: 0.9em;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0 0.6em;
  /* background: white; */
}

#files-loader-icon {
  position: absolute;
  right: 0.2em;
  top: 0.2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

#files-loader-icon img {
  color: white;
  height: 1.4em;
  width: 1.4em;
  animation-name: spin;
  animation-duration: 2000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

section {
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  max-width: 360px;
  width: 100%;
  padding: 1em;
  margin-top: 1em;
}

.grouped-btn {
  border-radius: 0.8em;
  overflow: hidden;
  display: flex;
}

.grouped-btn > * {
  font-size: 0.8em;
  padding: 1em 1.6em 1em;
  color: white;
  background-color: rgba(0, 0, 0, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.grouped-btn > *:hover {
  background-color: rgba(0, 0, 0, 1);
}

.grouped-btn > *:last-child {
  border-right: none;
}

.grouped-btn > *[disabled] {
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(50, 50, 50, 1);
  cursor: not-allowed;
}

.btn {
  font-size: 1.05em;
  font-weight: 500;
  color: white;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 1.2em;
  padding: 1.2em 0.8em 1.2em;
  cursor: pointer;
  transition-duration: 0.2s;
  transform: scale(1);
  text-decoration: none;
}

.btn:hover {
  background: rgba(0, 0, 0, 1);
}

.btn[off] {
  color: rgba(0, 0, 0, 0.5);
  background: rgb(242 242 242);
}

.btn[off]:hover {
  color: rgba(0, 0, 0, 0.6);
  background: rgb(235 235 235);
}

/* .btn.animated {
  background: transparent;
  background-image: url('./img/bg-fill-white.png');
  background-repeat: repeat-x;
  background-position: 0 -100%;
  transition: 1.5s ease;
}

.btn.animated:hover {
  background-position: 500% 100%;
} */

.link {
  opacity: 1;
  font-size: 1em;
  color: white;
  word-break: break-word;
  white-space: normal;
  cursor: pointer;
  text-decoration: underline;
}

.link:hover {
  opacity: 0.8;
}

.link.dotted {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
}

.spaced {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: -0.5em;
}

.spaced > * {
  margin: 0.5em;
}

.headline {
  font-size: 2em;
  font-weight: 700;
}

.tablet {
  display: none;
}

*[hide] {
  display: none !important;
}

#share-qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
  background: white;
  padding: 2em;
  border-radius: 0.75em;
}

.signature {
  width: 130px;
  margin: 1em auto;
  display: block;
}

@keyframes grow {
  0% {
    /* filter: blur(10px); */
    transform: scale(1);
  }
  100% {
    /* filter: blur(10px); */
    transform: scale(1.1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

*[mobile] {
  display: flex;
}

*[tablet] {
  display: none;
}

.dotted {
  border-bottom: 2px dotted rgba(79, 79, 79, 0.7);
}
