html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #222;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.app-header {
  width: 100%;
  background: #1976d2;
  color: #fff;
  padding: 1.2em 0 1em 0;
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.app-container {
  width: 100%;
  max-width: 420px;
  margin: 2em auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
  padding: 2em 1.5em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  display: none;
}

button {
  margin: 1em 0.5em 1em 0;
  padding: 0.8em 2em;
  font-size: 1.1em;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
  font-weight: 500;
  letter-spacing: 0.5px;
  touch-action: manipulation;
}
button:active {
  background: #1560b0;
}
button:disabled {
  background: #aaa;
  cursor: not-allowed;
}
#result {
  margin-top: 1.5em;
  font-size: 1.2em;
  min-height: 2em;
  text-align: center;
  background: #f7fafd;
  color: #1976d2;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
  padding: 1.2em 1em;
  transition: box-shadow 0.2s, background 0.2s;
  word-break: break-word;
  opacity: 0;
  transform: translateY(20px);
  animation: resultFadeIn 0.5s forwards;
}

@keyframes resultFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#camera, #preview {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.10);
  margin-bottom: 1em;
  background: #eee;
}
@media (max-width: 500px) {
  .app-container {
    padding: 1em 0.5em 1em 0.5em;
    margin: 1em 0 0 0;
  }
  .app-header {
    font-size: 1.1em;
    padding: 1em 0 0.8em 0;
  }
} 