html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#preview {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

#error {
  background: rgb(255, 88, 88);
  color: whitesmoke;
  text-align: center;
  line-height: 42px;
}

/* Other aspect ratios to try:
* 56.25% = 16:9
* 75% = 4:3
* 66.66% = 3:2
* 62.5% = 8:5
*/

#loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: absolute;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.99);
  top: 0;
  left: 0;
  margin: 0;
  cursor: not-allowed;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
}
#loading-overlay #loader {
  width: 100%;
  text-align: center;
  align-items: center;
}

#loading-overlay .hopper {
  display: block;
  width: 100%;
  height: 100px;
  overflow: hidden;
  text-align: center;
}
#loading-overlay .hopper img {
  height: 100%;
}
#loading-overlay .loading-text {
  display: block;
  width: 100%;
}

#netLoader {
  display: none;
  background-color: #111;
  overflow: hidden;
  width: 100%;
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  z-index: 100000;
}

.netLoaderElement {
  height: 3px;
  width: 100%;
  background: #a5d6a7;
}

#netLoader .netLoaderElement:before {
  content: '';
  display: block;
  background-color: #4caf50;
  height: 3px;
  width: 0;
  animation: getWidth 1.8s ease-in infinite;
}

@keyframes getWidth {
  100% {
    width: 100%;
  }
}

#copyright {
  text-align: center;
  color: #828282;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  position: absolute;
  bottom: 0;
  width: 100%;
  font-size: 5px;
  color: #80808030;
}
#copyright a {
  text-decoration: none;
  color: #80808030;
}
