/** {*/
  /*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;*/
/*}*/

#ec-voice-input-form .wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#ec-voice-input-form h1, #ec-voice-input-form h2 {
  font-size: 2rem;
  text-align: center;
  font-weight: normal;
  padding: 0.5rem 0 0 0;
}

#ec-voice-input-form .main-controls {
  padding: 0.5rem 0;
}

#ec-voice-input-form canvas {
  display: block;
  margin-bottom: 0.5rem;
  /*width: 775px;*/
}

#ec-voice-input-form #buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#ec-voice-input-form #buttons button {
  font-size: 1rem;
  padding: 1rem;
  width: calc(50% - 0.25rem);
}

#ec-voice-input-form button {
  font-size: 1rem;
  background: #0088cc;
  text-align: center;
  color: white;
  border: none;
  transition: all 0.2s;
  padding: 0.5rem;
}

#ec-voice-input-form  button:hover, button:focus {
  box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 1);
  background: #0ae;
}

#ec-voice-input-form button:active {
  box-shadow: inset 0px 0px 20px rgba(0,0,0,0.5);
  transform: translateY(2px);
}


/* Make the clips use as much space as possible, and
 * also show a scrollbar when there are too many clips to show
 * in the available space */
#ec-voice-input-form .sound-clips {
  flex: 1;
  overflow: auto;
}

#ec-voice-input-form section, article {
  display: block;
}

#ec-voice-input-form .clip {
  padding-bottom: 1rem;
}

#ec-voice-input-form audio {
  width: 100%;
  display: block;
  margin: 1rem auto 0.5rem;
}

#ec-voice-input-form .clip p {
  display: inline-block;
  font-size: 1rem;
}

#ec-voice-input-form .clip button {
  font-size: 1rem;
  float: right;
}

#ec-voice-input-form button.delete {
  background: #f00;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

/* Checkbox hack to control information box display */

#ec-voice-input-form label {
  font-size: 3rem;
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 5;
  cursor: pointer;
}

#ec-voice-input-form input[type=checkbox] {
   position: absolute;
   top: -100px;
}

#ec-voice-input-form aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: 0.3s all ease-out;
  background-color: #efefef;
  padding: 1rem;
}

#ec-voice-input-form aside p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

#ec-voice-input-form aside a {
  color: #666;
}

/* Toggled State of information box */
#ec-voice-input-form input[type=checkbox]:checked ~ aside {
  transform: translateX(0);
}

/* Cursor when clip name is clicked over */

#ec-voice-input-form .clip p {
  cursor: pointer;
}

/* 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 */
  #ec-voice-input-form .wrapper {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }
}