* { padding: 0; margin: 0 }

body {
  background: #eee;
  font-family: 'Lekton', monospace;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* IE/Edge */
  user-select: none;           /* non-prefixed version, currently not supported by any browser */
}

#app-container {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 50%;
  left: 50%;
}

#app {
  position: absolute;
  top: -160px;
  left: -150px;
  width: 300px;
  height: 320px;
  background: white;
  overflow: hidden;
  background: url(/css/ps_neutral_@2X.png);
  background-size: 16px 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#age {
  position: absolute;
  top: 20px;
  width: 100%;
  font-size: 28px;
  font-style: italic;
  color: #555;
  text-align: center;
}

#readout {
  color: #333;
  font-style: normal;
  border: none;
  font-size: inherit;
  font-family: 'Lekton', monospace;
  font-weight: bold;
  width: 42px;
  display: inline-block;
  text-align: center;
  background: transparent;
  /*margin-right: -30px;*/
}

#readout:active {

}

#mix {
  position: absolute;
  bottom: 63px;
  left: 0;
  width: 100%;
  height: 47px;
}

.slider {
  bottom: 35px;
  left: 40px;
  width: 220px;
  position: absolute;
  display: block;
}

canvas {
  transform: scale(0.5,0.5);
  transform-origin: top left;
  -ms-transform: scale(0.5,0.5);
  -ms-transform-origin: top left;
  -moz-transform: scale(0.5,0.5);
  -moz-transform-origin: top left;
  -webkit-transform: scale(0.5,0.5);
  -webkit-transform-origin: top left;
}

canvas.viz {
  background: transparent;
  position: absolute;
  top: 60px;
  left: -2px;
  border-bottom: 1px solid #eee;
}

.labels {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 130px;
  background: transparent;
}

.label {
  position: absolute;
  font-size: 11px;
  font-weight: bold;
  color: #777;
  /*background: rgba(245,245,245,0.8);*/
  /*padding: 2px 2px 1px 2px;*/
  /*border-radius: 2px;*/
}

.label small {
  font-weight: normal;
  display: inline-block;
  margin-left: 1px;
  color: #aaa;
}

#top {
  position: absolute;
  top: 0;
  left: 0;
  height: 189px;
  background: rgba(255,255,255,0.3);
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

#buttons {
  height: 54px;
  padding-top: 7px;
  padding-bottom: 1px;
  width: 100%;
  position: absolute;
  bottom: 20px;
  left: 0;
  background: rgba(225,225,225,0.8);
  border-top: 1px solid rgb(215,215,215);
}

#buttons-inner {
  width: 94%;
  margin-left: 14px;
}

.btn-outer {
  float: left;
  width: 24%;
}

.btn {
  border-radius: 50%;
  background: #eee;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  display: block;
  margin: auto auto;
  font-size: 24px;
  text-align: right;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.btn span {
  position: absolute;
  top: 7px;
  left: 10px;
}

.btn.audible {
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
  background: mediumseagreen;
  color: white;
  border-color: rgba(255,255,255,0.3);
  opacity: 1.0;
}

.btn img {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 5px;
  left: 3px;
}

#loading {
  width: 100%;
  height: 300px;
  background-color: rgba(255,255,255,0.7);
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
}

.start {
  position: absolute;
  top: 130px;
  height: 40px;
  width: 100px;
  margin: 0 auto;
  background: mediumseagreen;
  left: 100px;
  text-align: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.start-text {
  color: white;
  display: inline-block;
  font-weight: bold;
  margin-top: 14px;
}

#loading .support {
  display: none;
  position: absolute;
  top: 90px;
  /*height: 80px;*/
  background: whitesmoke;
  left: 20px;
  width: 260px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border: 1px solid white;
  z-index: 200;
}

#loading .support-text {
  padding: 10px;
  color: #333;
  font-style: italic;
  /*text-align: center;*/
}

#loading .support-text a {
  color: royalblue;
  text-decoration: none;
}

#colophon {
  position: absolute;
  width: 100%;
  height: 20px;
  bottom: 0;
  left: 0;
  background: rgb(155,155,155);
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
  border-top: 1px solid#eee;
  font-size: 10px;
  text-align: center;
}

#colophon-inner {
  padding: 5px;
  color: white;
}

#colophon-inner a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  font-style: italic;
}

#record {
  position: absolute;
  background: rgba(255,245,245,0.5);
  height: 160px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid white;
}

#upload {
  position: absolute;
  bottom: 0;
  background: rgba(245,255,245,0.5);
  height: 160px;
  width: 100%;
}

#wavedisplay {
  background: transparent;
  position: absolute;
  top: 0;
  left: -1px;
}

#analyser {
  background: transparent;
  position: absolute;
  top: 0;
  left: -1px;
}

#record .start {
  background: firebrick;
  border: 1px solid white;
  top: 58px;
  left: 51px;
  width: 200px;
  font-style: italic;
}

.actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: none;
}

.actions button {
  font-family: Lekton, monospace;
  font-size: 14px;
  padding: 6px 10px 4px;
  /*display: block;*/
  margin: 0 0 0 0;
  border: 1px solid white;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  background-color: rgba(225,42,70,0.7);
  color: white;
  cursor: pointer;
}

#dolby {
  height: 40px;
  position: absolute;
  bottom: 30px;
  right: 14px;
  z-index: 10000;
}

.spinner {
  position: absolute;
  top: 131px;
  left: 133px;
  width: 34px;
  height: 37px;
  font-size: 34px;
  background: transparent;
  text-align: center;
  z-index: 100;
  -webkit-animation-name: spin;
  -webkit-animation-duration: 4000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 4000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 4000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 4000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  display: none;
}
@-ms-keyframes spin {
  from { -ms-transform: rotate(0deg); }
  to { -ms-transform: rotate(360deg); }
}
@-moz-keyframes spin {
  from { -moz-transform: rotate(0deg); }
  to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
  from {
    transform:rotate(0deg);
  }
  to {
    transform:rotate(360deg);
  }
}