* {
  0 0 0 2px
  padding: 0;
  box-sizing: border-box;
}
html{
	height:100%;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  margin:0px;
  height:100%;
}

.recording{
    transform: scale(0.64);
    transform-origin: 0 0;
}

.wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-size: 2rem;
  text-align: center;
  font-weight: normal;
  padding: 0.5rem 0 0 0;
}

.main-controls {
  padding: 0.5rem 0;    
}

canvas {
  width: 100%;
  height: 20px;
  display: block;
  margin-bottom: 0.5rem;
}

#buttons {
	/*display: flex;
	flex-direction: row;
	justify-content: space-between;*/
	display: block;
	text-align: center;
}

#buttons button {
	font-size: 1rem;
	width: calc(50% - 0.25rem);
	font-size: 1rem;
	width: calc(40% - 0.35rem);
	margin-right: 10px;
	margin-left: 10px;
}

button {
	font-size: 1rem;
	text-align: center;
	border: none;
	transition: all 0.2s;
	padding: 0.5rem;
	background: #fff;
	color: #7f512b;
	font-weight: bold;
	border-radius: 6px;
	box-shadow: 2px 2px 2px 1px #202020;
	outline:none;
}

button:hover, button:focus {
}

button:active {
 box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 1);
  background: #fff;
  transform: translate(2px,2px);
  outline:none;
}

/* 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;
  overflow-x: hidden;
  overflow-y:scroll;
 /* padding: 5px 4px 0 0;*/  
}
/******Scroll Function****************/
.sound-clips::-webkit-scrollbar { 
	width: 0.7em;
	background: #ffffff;
	border-radius: 24px;
}


.sound-clips::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
.sound-clips::-webkit-scrollbar-thumb {
	background: #8a8a8a;
    border-radius: 24px;
    /* outline: 1px solid #5a5a5a; */
    cursor: pointer;
}
 
-webkit-scrollbar-thumb::hover {
	background: #a52222;
	border-radius: 24px;
    outline: 1px solid slategrey;
	cursor:pointer;
}

/*---------MOZ-----------*/

.sound-clips::-moz-scrollbar { 
	width: 0.7em;
	background: #ffffff;
	border-radius: 24px;
}


.sound-clips::-moz-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
.sound-clips::-moz-scrollbar-thumb {
	background: #8a8a8a;
    border-radius: 24px;
    /* outline: 1px solid #5a5a5a; */
    cursor: pointer;
}
 
-moz-scrollbar-thumb::hover {
	background: #a52222;
	border-radius: 24px;
    outline: 1px solid slategrey;
	cursor:pointer;
}

/*---------MOZ ENDS-----------*/


section, article {
  display: block;
}

.clip {
  padding-bottom: 1rem;
  background-color: #366184;
  margin-bottom: 5px;
}

audio {
  width: 300px;
  display: block;
}

.clip p {
  cursor: pointer;
  color: #fff;	
  display: inline-block;
  font-size: 1rem;
  margin: 10px 0 0 15px;
}

.clip button {
  font-size: 1rem;
  float: right;
}

button.delete {
    background: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin: 8px 5px 0 0;
    font-weight: bold;
}

/* 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 */

audio::-webkit-media-controls-timeline,audio::-webkit-media-controls-volume-slider-container{
	visibility:hidden;
	}

audio::-webkit-media-controls-time-remaining-display{
	visibility:hidden;
	}


/* 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;
  }
}
