body {
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin: 0;
  background-color: #dfeaf0;
}

button {
  background-color: #389dd8fe;
  border: none;
  border-radius: 2px;
  color: white;
  font-family: sans-serif;
  font-size: 0.8em;
  margin: 0 0 1em 0;
  padding: 0.6em;
}

.debug-canvas {
  background-color: #ccc;
  max-width: 100%;
  width: 100%;
  display: block;
  margin: 0 0 20px 0;
}

div#video-container {
  margin: 0 auto 0 auto;
  max-width:720px;
}

div#container {
  margin: 0 auto 0 auto;
  max-width: 720px;
  padding: 1em
}

div#highlight {
  background-color: #eee;
  font-size: 1.2em;
  margin: 0 0 50px 0;
  padding: 0.5em 2em;
}

div#links {
  padding: 0.5em 0 0 0;
}

h1 {
  border-bottom: 1px solid #ccc;
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 0.8em 0;
  padding: 0 0 0.2em 0;
}

h2 {
  color: #444;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.2em;
  margin: 0 0 0.8em 0;
}

h3 {
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9em;
  font-weight: 500;
  margin: 20px 0 10px 0;
  padding: 10px 0 0 0;
  white-space: nowrap;
}

html {
  /* avoid annoying page width change
when moving from the home page */
  overflow-y: scroll;
}

.thumb {
  border: none;
  max-width: 100%;
}

img {
  border: none;
  max-width: 100%;
}

input {
  font-family: sans-serif;
}

input[type=radio] {
  position: relative;
  top: -1px;
}

ol {
  padding: 0 0 0 20px;
}

p {
  color: #444;
  font-weight: 300;
  line-height: 1.6em;
}

p#data {
  border-top: 1px dotted #666;
  font-family: Courier New, monospace;
  line-height: 1.3em;
  max-height: 1000px;
  overflow-y: auto;
  padding: 1em 0 0 0;
}

p.borderBelow {
  border-bottom: 1px solid #eee;
  padding: 0 0 20px 0;
}

select {
  margin: 0 1em 1em 0;
  position: relative;
  top: -1px;
}

h1 span {
  white-space: nowrap;
}

strong {
  font-weight: 500;
}

ul {
  padding: 0 0 0 20px;
}

video {
  /* border-radius: 5px; */
  border-top: 2px solid #389dd8fe;
  border-bottom: 2px solid #389dd8fe;
  border-left: 2px solid #389dd8fe;
  border-right: 2px solid #389dd8fe;
  background: #222;
  /* margin: 0 0 20px 0; */
  width: 100%;
  /* margin: 0 12px 20px 0; */
  vertical-align: top;
}

@media (min-width: 550px) {
  body {
    font-size: 16px;
    /* padding: 1em; */
  }

  h1 {
    font-size: 28px;
  }
}

@media (min-width: 750px) {
  h1 {
    font-size: 30px;
  }
}

@media (min-width: 1000px) {
  /* hack! to detect non-touch devices */
  div#links a {
    line-height: 0.8em;
  }
}

@media (min-width: 500px) {
  body {
    /* margin: 140px 30px 30px 30px; */
  }
}


.fab {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
	width:60px;
	height:60px;
	color:#FFF;
	border-radius:50px;
	text-align:center;
}

.take-photo-fab {
	background-color:#389dd8fe;
	position:fixed;
	bottom:30px;
	right:30px;
}

.recompute-fab {
	background-color:#dba134;
	position:fixed;
	bottom:100px;
	right:30px;
}

.loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #70d838fe;
	width:58px;
	height:58px;

  display: none;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

.take-photo-loader {
  border-top: 8px solid #389dd8fe;
  position:fixed;
	bottom:23px;
	right:23px;
}

.recompute-loader {
  border-top: 8px solid #dba134;
	position:fixed;
	bottom:93px;
	right:23px;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


div#settings {
  display: none;
}

div#ocr-section {
  display: none;
}

.hidden {
  display: none;
}

button {
  margin: 0 10px 20px 0;
  border-radius: 5px;
  width: 99px;
}

.logo {
  height: 35px;
  margin: 5px;
}

.login-icon {
  height: 35px;
  margin: 5px;
}

.login-button {
  margin: 0 10px 20px 0;
  border-radius: 5px;
  width: 99px;
  height: 35px;
  margin: 5px;
}

.email-address {
  padding: 10px;
  align-items: center;
  font-size: small;
}

img#photo {
  max-width: 100%;
  width: 100%;
  display: block;
  margin: 0 0 20px 0;
}

div#imagelist {
  overflow: auto;
  white-space: nowrap;
}

input#zoom {
  margin: 0 0 20px 0;
  width: 100%;
}

.borderBelow {
  margin: 0 0 20px 0;
  padding: 0 0 20px 0;
}

@media (max-width: 500px) {
  button {
    font-size: 0.8em;
    width: calc(33% - 5px);
  }
}

@media (max-width: 720px) {
  video {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    width: 100%;
    border-left: 0px solid #4a96c1;
    border-right: 0px solid #4a96c1;
  }
  
  div#video-container {
    margin: 0 0 0 0;
    width: 100%;
    padding: 0 0 0 0;
  }
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #4a96c1;;
  margin-top: 13px;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

.tooltip-left {
    top: -5px;
    bottom: auto;
    right: 105%;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.fader {
  opacity: 1;
  animation: fade 2s linear;
  animation-iteration-count: infinite;
}


@keyframes fade {
  0%,100% { opacity: 0 }
  50% { opacity: 1 }
}