@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600);
@import url(//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css);
body, html {
  height: 100%;
  width: 100%;
}

body {
  background: linear-gradient(to bottom, #f2f2f2 40%, #ffffff 40%);
}

.m-container {
  position: relative;
  text-align: center;
  width: 150px;
  margin: 20% auto 0 auto;
  z-index: 1;
}
.m-container .m-stick {
  width: 2px;
  height: 85px;
  background: silver;
  position: absolute;
  top: 11px;
  left: calc(50% - 1px);
  animation: metronome 1.5s ease-in-out infinite;
  transform-origin: 50% 100%;
  background: linear-gradient(to bottom, #929292, #676767);
}
.m-container .m-stick:after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: silver;
  position: absolute;
  left: -4px;
  top: 15px;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
}
.m-container:before {
  content: "METRONOME";
  font-family: sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 7px;
  color: #ccc;
  position: absolute;
  text-align: center;
  top: 140%;
  left: -22px;
}
.m-container:after {
  content: "";
  background: radial-gradient(rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0));
  border-radius: 50%;
  z-index: -1;
  width: 125px;
  display: block;
  height: 15px;
  position: absolute;
  bottom: -9px;
  left: 12px;
  -webkit-filter: blur(5px);
}

.m-body {
  position: relative;
  -webkit-clip-path: polygon(37% 0, 63% 0, 100% 97%, 93% 97%, 91% 100%, 10% 100%, 7% 97%, 0 97%);
  background: linear-gradient(to top, #000000 3%, #6d4721 3%, #714a22 4%, #462e15 25%);
  width: 100px;
  height: 140px;
  margin: 25% auto 0 auto;
}
.m-body .m-base {
  position: absolute;
  width: 90px;
  height: 66%;
  background: #140a00;
  bottom: 30%;
  left: 5px;
  -webkit-clip-path: polygon(40% 0, 60% 0, 88% 100%, 12% 100%);
  background: linear-gradient(to top, #ffd07c, #ffd68b);
  border-bottom: solid 2px #4d2600;
}
.m-body .m-base .m-tempo {
  position: absolute;
  opacity: .2;
  height: 90%;
  box-shadow: 0 1px 0px #333;
  width: 9%;
  background: #000;
  left: 45%;
  top: 5%;
}

@keyframes metronome {
  0%, 100% {
    transform: rotate(35deg);
  }
  50% {
    transform: rotate(-35deg);
  }
}
body {
  background: #f9f8ec;
  font-family: 'Open Sans', sans-serif;
}

input[type="range"] {
  -webkit-appearance: none !important;
  max-height: 3px;
  position: relative;
  top: -3px;
  background: #DDD;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 15px;
  height: 15px;
  position: relative;
  top: -1px;
  background: #222;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label {
  display: inline-block !important;
  height: 15px;
  width: 15px;
  margin: 0px 4px 0px 0px !important;
  padding: 0px;
  position: relative;
  top: 4px;
  background: #FFF;
  cursor: pointer;
}
input[type="checkbox"] + label:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 8px;
  background: #F38630;
  opacity: 0;
  position: relative;
  top: -5px;
  right: -1px;
  transform: skewX(0deg);
  transition: all 0.24s;
}
input[type="checkbox"] + label:after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 15px;
  background: #F38630;
  opacity: 0;
  position: relative;
  top: -5px;
  right: -3px;
  transform: skewX(0deg);
  transition: all 0.24s;
}

input[type="checkbox"]:checked + label:before {
  transform: skewX(30deg);
  opacity: 1;
}
input[type="checkbox"]:checked + label:after {
  transform: skewX(-30deg);
  opacity: 1;
}

.container {
  width: 100%;
}

header {
  height: 65px;
  background: #879BAD;
  color: #2a353e;
  font-size: 36px;
  font-weight: 400;
  text-align: center;
  padding: 5px;
}

.metronome-container {
  width: 75%;
  height: auto;
  position: relative;
  margin: 40px auto;
  background: #2f2f2f;
}
.metronome-container .options-btn {
  color: #FFF;
  font-size: 22px;
  position: absolute;
  top: 20px;
  right: 15px;
  transform: rotateZ(0deg);
  cursor: pointer;
  transition: transform 0.3s;
}
.metronome-container .options-btn:hover {
  transform: rotateZ(60deg);
}
.metronome-container .options-active {
  max-height: 1000px !important;
  padding: 15px;
  overflow: visible !important;
}
.metronome-container .options {
  max-height: 0px;
  background: #FFF;
  color: #333;
  overflow: hidden;
  transition: all 0.25s;
  position: absolute;
  top: 50px;
  right: 15px;
}
.metronome-container .options .up {
  color: #FFF;
  font-size: 22px;
  position: absolute;
  top: -14px;
  right: 3px;
  z-index: 500;
  transform: rotateZ(180deg);
}
.metronome-container .options label {
  display: block;
  margin-top: 10px;
}
.metronome-container .counter {
  width: 100%;
  padding-bottom: 10px;
  background: #404040;
  text-align: center;
}
.metronome-container .counter .dot {
  width: 15px;
  height: 15px;
  display: inline-block;
  margin: 25px 10px 10px 10px;
  background: #FFF;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.metronome-container .counter .active {
  background: #5ec2ff;
}
.metronome-container .controls {
  color: #FFF;
  padding: 20px;
  text-align: center;
}
.metronome-container .controls label {
  display: block;
  margin-bottom: 18px;
}
.metronome-container .controls label span {
  background: #FFF;
  color: #222;
  padding: 5px;
}
.metronome-container .controls label span i {
  cursor: pointer;
  transition: color 0.2s;
}
.metronome-container .controls label span i:hover {
  color: #FA6900;
}
.metronome-container .controls input {
  width: 30px;
  border: 0px solid;
  color: #222;
  text-align: center;
  padding: 4px;
}
.metronome-container .controls select {
  border: 0px;
  color: #222;
}
.metronome-container .controls .play-btn {
  width: 45%;
  background: #D6E26D;
  border: 0px;
  border-radius: 5px;
  padding: 12px;
  color: #3d430d;
  transition: background 0.3s;
}
.metronome-container .controls .play-btn:hover {
  background: #e8efad;
}
.metronome-container .controls .tap-btn {
  width: 45%;
  background: #888;
  border: 0px;
  border-radius: 5px;
  padding: 12px;
  color: #fbfbfb;
  transition: background 0.3s;
}
.metronome-container .controls .tap-btn:hover {
  background: #959595;
}

footer {
  width: 50%;
  height: auto;
  background: #FFF;
  color: #444;
  padding: 10px;
  margin: 50px auto;
}