html,
body {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  color: grey;
  text-align: left;
  font-family: 'Roboto', Helvetica, sans-serif;
  background-color: white;
}

p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

a {
  color: #c3749d;
  white-space: nowrap;
}

a:hover {
  text-decoration: none;
}

ul {
  padding-left: 2rem;
  list-style: none;
}

ul li::before {
  content: "\2022";
  color: #c3749d;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.demo-mode .info {
  display: none;
}

.demo-mode.image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100vh;
  overflow: hidden;
  margin-top: 1rem;
  padding: 0 1rem;
}

.canvas {
  position: relative;
  max-width: 46rem;
  width: 100%;
  display: block;
  height: auto;
  margin-top: 2rem;
  margin-right: auto;
  margin-left: auto;
  background-color: #7ca2b2;
  backface-visibility: hidden;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.loading-screen {
  opacity: 1;
  visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 40px;
  background-color: white;
  color: #999;
  transform: translateZ(50px);
  transition: 0.25s ease all 0.75s;
}

.loading-screen.hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateZ(0);
}

.version {
  position: absolute;
  bottom: 0;
  left: 0;
}

.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 25px;
  background-color: white;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  transition: 0.15s ease all;
  font-family: sans-serif;
  text-align: center;
  border: 2px solid #c3749d;
  color: #c3749d;
  overflow: hidden;
  text-decoration: none;
}

.button[download] {
  margin: 1rem auto;
}

.allow-motion-button {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 0);
  margin: auto;
  padding: 1rem;
  color: #c3749d;
  background-color: white;
  border: 2px solid #c3749d;
  border-radius: 2rem;
}

.allow-motion-button.visible {
  visibility: visible;
  opacity: 1;
}

.title {
  font-weight: 700;
  color: #c3749d;
}

.only-mobile {
  display: none;
}

@media screen and (max-width: 37rem) {
  body {
    font-size: 0.9rem;
  }

  .title {
    margin-top: 1rem;
  }

  .canvas {
    max-width: 100%;
    height: auto;
  }
}

@media screen and (max-height: 50rem) {
  .canvas {
    width: auto;
    max-height: 50vh;
    margin: 0 auto;
  }
}

@media screen and (max-height: 33rem) {
  .canvas {
    max-width: 88%;
    height: auto;
    margin: 0 auto;
  }

  .button[download] {
    padding: 0.5rem;
  }
}

@media only screen and (hover: none) and (pointer: coarse) {
  .only-mobile {
    display: block;
  }

  .only-desktop {
    display: none;
  }
}

@media (orientation: landscape) {
  .image-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
  }

  .canvas {
    width: 50%;
    max-height: 100%;
    height: auto;
    margin-top: 0;
  }
}
