/* ============================================================
  RESET
============================================================ */

* {
	padding: 0;
	margin: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin-block-end: 0;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

input[type=button], input[type=submit], button[type=submit] {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

textarea:not([rows]) {
    min-height: 10em;
}

table {
	border-collapse: collapse;
}

a, a img {
	outline: none;
	border: none;
	text-decoration: none;
}

img, picture, video, canvas, svg {
    max-width: 100%;
    display: block;
}

p {
	margin-top: 0px;
	margin-bottom: 20px;
}

ul, ol {
	list-style-position: inside;
	margin-bottom: 20px;
}

:target {
    scroll-margin-block: 5ex;
}

.hidden {
    display: none !important;
}

/* ============================================================
  MAIN
============================================================ */

body {
    padding: 20px;
    background: #f7f7f7;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    height: calc( 100vh - 40px );
    overflow: hidden;
}

h1 {
    font-size: 64px;
    text-align: center;
    margin-bottom: 40px;
}

input[type="file"] {
    display: none;
}

#file-parent {
    position: relative;
}

#custom-file-upload {
    border: 1px dashed #333;
    display: block;
    padding: 50px 20px;
    cursor: pointer;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
}

#spinner {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: #f7f7f7;
}

#privacy {
    text-align: center;
}

#privacy p {
    margin-bottom: 5px;
}

#result {
    height: calc( 100vh - 40px );
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#result img {
    height: 100%;
    cursor: zoom-in;
    image-rendering: pixelated;
}

#result img:fullscreen {
    cursor: zoom-out;
}

#footer {
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 5px;
    background: #f7f7f7;
}

/* ============================================================
  SPINNER
============================================================ */

.lds-spinner,
.lds-spinner div,
.lds-spinner div:after {
  box-sizing: border-box;
}
.lds-spinner {
  color: currentColor;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3.2px;
  left: 36.8px;
  width: 6.4px;
  height: 17.6px;
  border-radius: 20%;
  background: currentColor;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}