html,
body {
  margin: 0;
  padding: 0;
}

/* In order to place the tracking correctly */
canvas.drawing,
canvas.drawingBuffer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

/* Nicer buttons */
button {
  background-color: #4caf50; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  position: absolute;
  bottom: 0px;
  width: 100%;
}

.scanner {
  display: none;
  width: 100vw;
  max-height: 50vh;
  position: absolute;
  overflow: hidden;
}

.scanner.active {
  display: block;
}

.app {
  display: flex;
  flex-direction: column;
}

.scanner video {
  width: 100%;
}

/* The list of books */
#list {
  position: absolute;
  bottom: 50px;
  width: 100%;
  background: white;
  height: 50vh;
  overflow-y: auto;
  border-top: 3px solid #555;
}
.flash {
  position: absolute;
  pointer-events: none;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}
.flash.match {
  animation-name: flash;
  animation-duration: 2000ms;
  animation-iteration-count: 1;
  animation-timing-function: ease;
}

@keyframes flash {
  0% {
    background-color: lightgreen;
  }
  100% {
    background-color: inherit;
  }
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  font-size: 16px;
  padding: 10px;
  font-family: arial sans-serif;
}

li.new {
  background: yellow;
}

.title {
  pointer-events: none;
  font-size: 20px;
}

li.new .title {
  font-weight: bold;
}

.author {
  pointer-events: none;
  color: #444444;
}

.loader {
  position: absolute;
  height: 50vh;
  width: 100%;
  text-align: center;
  font-size: 32px;
  line-height: 50vh;
}

.manual {
  position: absolute;
  z-index: 1;
  text-align: center;
  width: 100%;
  display: none;
  justify-content: center;
}

.manual input {
  padding: 8px 12px;
  border-radius: 0px;
  border: 0;
}
