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

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  justify-content: space-between;
}

.wrapper {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow-y: scroll;
  padding: 1em;
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-size: 3rem;
  text-align: center;
  font-weight: bold;
  padding: 0.5rem 0 0 0;
}

p {
  font-size: 2rem;
  text-align: center;
}

.instructions {
  font-size: 1.2rem;
  margin: 0 34% 0;
  border: 1px solid gray;
  border-radius: 10px;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}

.instructions h2 {
  margin-bottom: 1.2rem;
}

.instructions ol {
  margin: 0 0 1rem 1.4rem;
}

.instructions li {
  margin-bottom: 0.5rem;
}

.main-controls {
  padding: 0.5rem 0;
}

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

#buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

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

button, .record {
  font-size: 1rem;
  background: #0088cc;
  text-align: center;
  color: white;
  border: none;
  transition: all 0.2s;
  padding: 0.5rem;
}

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

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

.visualizer {
  height: 0;
  margin: 2rem auto 0;
  transition: .3s;
}

.visualizer.active {
  height: 60px;
}

.current-microphone {
  display: block;
  position: relative;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.quote {
  margin-top: 1rem;
  display: block;
  font-size: 1.5rem;
  text-align: center;
}



/* 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 */
/*.sound-clips {*/
  /*flex: 1;*/
  /*overflow: auto;*/
/*}*/

section, article {
  display: block;
}

.clip {
  padding-bottom: 1rem;
}

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

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

.clip button {
  font-size: 1rem;
  float: right;
}

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

/* Checkbox hack to control information box display */

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

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

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;
}

aside p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

aside a {
  color: #666;
}

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

/* Cursor when clip name is clicked over */

.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 */
  .wrapper {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    overflow-y: auto;
  }
}


@media (max-width: 700px) {
  header p {
    font-size: 1.4rem;
  }
  .instructions {
    margin: 0 2rem;
  }
  .wrapper {
    padding: 1rem;
  }
}


.source-code {
  width: 100%;
  bottom: 0;
  background: #eeeeee;
  padding: .5rem 0;
  flex-shrink: 0;
}

.repo-link {
  display: flex;
  align-items: center;
  color: #333333;
}

.github-logo {
  max-width: 50px;
  margin-right: 10px;
}