* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
}

h1,
h2 {
  font-size: 1.6rem;
  font-weight: normal;
}

h3 {
  font-size: 1.2rem;
  font-weight: normal;
  padding: 0.5rem 0 0 0;
}

button:active svg {
  transform: scale(0.9);
}

.demo__nav {
  display: flex;
  justify-content: left;
  margin-bottom: 25px;
}

.demo__logo {
  display: flex;
  width: 180px;
  height: 30px;
}

.vgroup-0 {
  display: flex;
  flex-direction: row;
}

.hgroup-0 {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin: 0rem !important;
}

.vgroup-0-section-h {
  display: flex;
  flex-direction: row;
  flex-basis: 50%;
  align-items: flex-end;
}

.vgroup-0-section-v {
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
  align-items: flex-start;
}

.vgroup-0-section-div {
  display: flex;
  flex-direction: column;
}

.flexpand {
  flex: auto;
}

.vgroup-0-section-div * {
  margin: 0.3em 0;
}

.section-title {
  margin-right: 0.5em;
}

.recorder {
  padding: 0.5rem 0;
}

section {
  border: 0.01rem solid #cccccc;
}

canvas {
  display: block;
  margin-bottom: 0.5rem;
}

audio {
  width: 100%;
  display: block;
  margin: 1rem auto 0.5rem;
}

.status,
.message {
  flex-basis: 100%;
}

.audioDeviceLabel {
  color: white;
  background-color: darkGray;
  font-weight: bold;
}

.partial-result-list {
  flex-basis: 66%;
  color: gray;
}

.final-result-list {
  flex-basis: 25%;
}

.controls,
.decoding-graph {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alt-prons {
  align-items: flex-start;
}

.pron {
  align-items: flex-start;
}

.btn {
  font-size: 1rem;
  background: #0088cc;
  text-align: center;
  color: white;
  border: none;
  transition: all 0.2s;
  padding: 0.5rem;
  min-width: 14rem;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 1);
  background: #0ae;
}

.btn:active {
  box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(2px);
}

.btn:disabled {
  box-shadow: unset;
  transition: unset;
  transform: unset;
  background: #cccccc;
  cursor: unset;
}

.refresh-btn {
  padding: unset;
  min-width: unset;
  background: unset;
  color: black;
  font-size: 2em;
  max-width: 1em;
  max-height: 1em;
  width: 1em;
  height: 1em;
}

.refresh-btn:active,
.refresh-btn:hover,
.refresh-btn:focus,
.refresh-btn:disabled {
  box-shadow: unset !important;
  transition: unset !important;
  transform: unset !important;
  padding: unset;
  min-width: unset;
  background: unset;
  color: black;
}

.refresh-btn:disabled {
  color: lightGray;
}

.recordings,
.response {
  flex: 1;
  padding: 4rem;
}

.clip {
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.clip p {
  font-size: 1rem;
}

.clip .btn {
  font-size: 1rem;
  float: left;
  /* default */
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.btn.delete {
  background: #f00;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.btn.save {
  background: #0b0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
}
.btn.aecEnabled {
  background: #0b0;
}

/* Adjustments for wider screens */
@media all and (min-width: 800px) {
  /* Don't take all the space as readability is lost when line length
     goes past a certain size */
  .wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
  }
}

.error-status {
  color: red;
}

.counter {
  margin: 0.54rem 1rem;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spinner {
  to {
    -webkit-transform: rotate(360deg);
  }
}

.spinner:after {
  content: 'Loading…';
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.2rem;
}

.spinner:not(:required):after {
  content: '';
  border-radius: 50%;
  border: 1px solid #ccc;
  border-top-color: #c33;
  animation: spinner 0.6s linear infinite;
  -webkit-animation: spinner 0.6s linear infinite;
}

.spinner {
  position: relative;
}
