abbr, address, article, aside, audio, b, blockquote, body, canvas, caption, cite, code, dd, del, details, dfn, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, samp, section, small, span, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, ul, var, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: 0 0;
  line-height: 1.6;
}

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: #141414;
  color: #fff;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body[data-opened='false'] .opened {
  display: none;
}

@keyframes bg-animation {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-50%);
  }
}

.bg {
  position: fixed;
  top: 0px;
  left: 0px;;
  width: 100%;
  height: 100%;
  transform: rotateZ(-15deg) scale(1.3);
}

.bg::before {
  content: '';
  display: block;
  width: 100%;
  height: 200%;
  opacity: 0.15;
  background-image: url(./background/output.jpg);
  background-position: 50% 50%;
  background-size: auto 50%;
  background-repeat: repeat;
  animation: bg-animation linear 120s;
  animation-iteration-count: infinite;
}

.shadow {
  position: fixed;
  top: 0px;
  left: 0px;;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 250px 0px rgba(0,0,0,0.86) inset;
}

main {
  position: relative;
  z-index: 1;
  max-width: 460px;
  padding: 24px 32px;
  margin: 60px auto;
}

.card {
  background: #333;
  border-radius: 6px;
  box-shadow: 0px 7px 8px -4px rgba(0,0,0,0.15), 0px 12px 17px 2px rgba(0,0,0,0.10), 0px 5px 22px 4px rgba(0,0,0,0.06);
}

h1 {
  font-size: 2rem;
  padding-top: 24px;
  padding-bottom: 16px;
  text-align: center;
  font-weight: 400;
}

.description {
  text-align: center;
  color: #bbbbbb;
  font-size: 0.9rem;
  padding-bottom: 24px;
}

.form label {
  color: #d6d6d6;
  font-size: 0.95rem;
}

.form input {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  padding: 8px;
  margin: 4px 0 24px;

  color: #ccc;
  background: #000;
  border: 1px solid #5c5c5c;
  border-radius: 6px;

  transition: border-color 500ms;

  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.form input.error {
  border: 1px solid #f44336;
}

.form input:focus {
  border: 1px solid #2196f3;
}

#error-message {
  text-align: center;
  color: #f44336;
  font-size: 0.9rem;
  padding-bottom: 12px;
}

.actions {
  text-align: center;
}

button {
  margin: 12px;
  min-width: 100px;
  padding: 8px 24px;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: 6px;

  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: wait;
}

button.submit {
  background: #4caf50;
  color: #fff;
}

button.submit:disabled {
  background: #1b5e20;
  color: rgba(255, 255, 255, 0.6);
}

button.download {
  background: #2196f3;
  color: #fff;
}

video {
  margin: 0 auto;
  display: block;
  width: 384px;
  height: 216px;
  background: #000;
  margin-bottom: 24px;
}