/* Add back the Google Fonts import */
@import url(http://fonts.googleapis.com/css?family=Lobster|Limelight|Wire+One);

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  outline: 0 !important;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  text-align: center;
  font-family: "Helvetica Neue", Arial;
  background: #000000;
  box-shadow: inset 0 -30px 120px 10px rgba(0,0,0, 0.2);
}

.global-radio {
  padding: 20px;
  margin: auto;
}

.case {
  clear: both;
  position: relative;
  z-index: 2;
  width: 720px;
  margin: 0 auto;
  height: auto;
  padding: 12px;
  background: #372314;
  border: 3px solid #21150c;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 4px 5px 1px rgba(0,0,0,.3);
  background-image: -moz-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: -webkit-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
}

.case:before {
  position: absolute;
  height: 50px;
  z-index: -1;
  bottom: 30px;
  left: -40px;
  right: -40px;
  content: "";
  display: block;
  background: transparent;
  box-shadow: 0 70px 30px 0 rgba(0,0,0,.1);
  border-radius: 0 0 100% 100%;
}

.inner-case {
  height: auto;
  overflow: hidden;
  padding: 4px;
  background: rgba(0,0,0,0);
  border: 3px solid rgba(0,0,0,.6);
  border-radius: 2px;
  background-image: -moz-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: -webkit-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.speaker {
  height: 250px;
  background-image: url('../img/weave1.jpg');
}

.front-case {
  height: auto;
  padding: 2px;
  background-color: #cd9552;
  border: 2px solid rgba(0,0,0,.6);
  border-radius: 2px;
  background-image: -moz-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: -webkit-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
  box-shadow: inset 0 1px 0 0px rgba(255,255,255,.3);
}

.panel {
  position: relative;
  height: auto;
  padding: 2px;
  background: #778899;
  border: 2px solid rgba(0,0,0,.6);
  border-radius: 2px;
  background-image: -moz-linear-gradient(top, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: auto 2px;
  box-shadow: inset 0 0 30px 0px rgba(0,0,0,0.5), inset 0 5px 10px -5px rgba(0,0,0,0.7), 0 1px 0 0px rgba(255,255,255,.1);
}

.chrome {
  font-family: 'Lobster', cursive;
  display: block;
  height: auto;
  position: absolute;
  top: 20px;
  right: 10px;
  padding-right: 10px;
  letter-spacing: -.03em;
  text-align: right;
  text-shadow: 2px 2px 2px rgba(0,0,0,.5);
  z-index: 100;
  width: 285px;
}

.chrome h1 {
  position: absolute;
  font-size: 40px;
  font-family: 'Lobster', cursive;
  line-height: 1.3em;
  color: #292929;
  z-index: 100;
}

.chrome h1:before {
  position: absolute;
  content: "Mid-World Radio";
  color: #d6d6d6;
  -webkit-mask-image: -webkit-linear-gradient(271deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,1) 53%, rgba(0,0,0,1) 55%, rgba(0,0,0,0.8) 56%, rgba(0,0,0,0.05) 100%);
  z-index: 120;
}

.power {
  width: 70px;
  float: left;
}

.on-off {
  position: relative;
  background: rgba(0,0,0,.4);
  height: 70px;
  width: 30px;
  float: left;
  border-radius: 30px;
  margin: 10px 20px;
  box-shadow: inset 0 0 10px -5px rgba(0,0,0,0.5), inset 0 1px 0 0 rgba(0,0,0,0.7), 0 1px 0 0 rgba(255,255,255,.3);
}

.on-off > a {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  display: block;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: #cd9552;
  background-image: -moz-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: -webkit-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
  box-shadow: inset 0 1px 0 0px rgba(255,255,255,.4), 0 3px 4px 1px rgba(0,0,0,.5);
}

.on .on-off > a {
  top: auto;
  bottom: -5px;
}

.on-off > a > span {
  display: block;
  height: 30px;
  width: 30px;
  margin: 5px;
  text-indent: 200%;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 50%;
  background-color: #5f3c24;
  background-image: -moz-linear-gradient(top, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: auto 2px;
  box-shadow: inset 0 1px 0 0px rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.2), 0 1px 0 0 rgba(255,255,255,.2);
}

.retina {
  overflow: hidden;
  position: relative;
  float: left;
  width: 410px;
  margin: 10px 10px 10px 10px;
  height: 70px;
  background: #312d28;
  border-radius: 4px;
  box-shadow: inset 0 0 30px 0px rgba(0,0,0,0.5), inset 0 5px 10px -5px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1);
  border: 3px solid rgba(0,0,0,0.3);
  border-bottom-color: rgba(0,0,0,0.2);
  background-image: -webkit-linear-gradient(271deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.08) 49%,rgba(255,255,255,0.03) 50%,rgba(0,0,0,0) 51%,rgba(0,0,0,0.4) 100%);
  background-image: -moz-linear-gradient(271deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.08) 49%,rgba(255,255,255,0.03) 50%,rgba(0,0,0,0) 51%,rgba(0,0,0,0.4) 100%);
  background-image: linear-gradient(179deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.08) 49%,rgba(255,255,255,0.03) 50%,rgba(0,0,0,0) 51%,rgba(0,0,0,0.4) 100%);
}

.live {
  position: absolute;
  left: 15px;
  top: 15px;
  opacity: .2;
  display: inline-block;
  width: 100px;
  font-family: 'Lobster', cursive;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: #000;
  line-height: 1em;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
}

.on .live {
  opacity: .9;
  color: #f5f1e0;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5), 0 0 40px rgba(245,241,224,.6), 0 0 20px rgba(255,255,255,.7);
}

.stereo:before {
  content: " ";
  display: block;
  margin: 0 auto 8px;
  height: 5px;
  width: 5px;
  background: #000;
  border-radius: 50%;
}

.on .stereo:before {
  background: #c10d16;
  box-shadow: 0 0 10px 3px #c10d16;
}

.frequencies {
  position: absolute;
  top: -24px;
  left: -11px;
  width: 400px;
  text-align: left;
}

.frequencies > div {
  display: block;
  float: left;
  color: rgba(255, 255, 255, .3);
  font-size: 16px;
  letter-spacing: 1px;
  font-family: 'Lobster', cursive;
  text-align: center;
  width: 25px;
}

.stereo {
  opacity: .9;
  position: absolute;
  top: 30px;
  right: 8px;
  display: block;
  height: auto;
  text-transform: uppercase;
  color: #6a604f;
  font-size: 8px;
  line-height: 1em;
}

.progress {
  position: absolute;
  top: 40px;
  left: 130px;
  width: 230px;
  opacity: .6;
  height: 12px;
  background-image: -moz-linear-gradient(left, rgba(255,255,255,1) 1px, transparent 1px), -moz-linear-gradient(left, rgba(255,255,255,.3) 1px, transparent 1px);
  background-image: -webkit-linear-gradient(left, rgba(255,255,255,1) 1px, transparent 1px), -webkit-linear-gradient(left, rgba(255,255,255,.3) 1px, transparent 1px);
  background-image: linear-gradient(to right, rgba(130,130,130,1) 1px, transparent 1px), linear-gradient(to right, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 25px 50px, 5px 5px;
  background-position: 0 bottom;
  background-repeat: repeat-x;
}

.pointer {
  position: absolute;
  top: -50px;
  left: 0;
  width: 2px;
  height: 80px;
  background: #981015;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 0px rgba(255,255,255,.4), 1px 2px 3px 0 rgba(0,0,0,.5);
}

.pointer > span {
  display: block;
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  margin-top: -5px;
  width: 6px;
  height: 20px;
  background: #981015;
}

.tuner, .volume {
  position: relative;
  z-index: 2;
  width: 60px;
  float: left;
  margin: 15px 10px 10px 10px;
}

.controllerCont {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: -o-grab;
  cursor: grab;
  position: absolute;
  top: 0;
  z-index: 2;
  display: block;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  box-shadow: inset 0 0 1px 3px rgba(0,0,0,.2), inset 0 1px 0 0px rgba(255,255,255,.4), 0 3px 4px 1px rgba(0,0,0,.5);
  background-image: -moz-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: -webkit-linear-gradient(top, transparent 40%, rgba(0,0,0,.4));
  background-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
}

.controllerCont:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: -o-grabbing;
  cursor: grabbing;
}

.controller {
  position: relative;
  z-index: 2;
  display: block;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  background-color: #cd9552;
}

.controller > span {
  display: block;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10px;
  margin-top: -3px;
  box-shadow: 0 -1px 0 0 rgba(255,255,255,.2);
  height: 5px;
  width: 5px;
  background: #372314;
  border-radius: 50%;
  -moz-transform: rotate(90deg);
  -moz-transform-origin: 20px;
  -webkit-transform: rotate(90deg);
  -webkit-transform-origin: 20px;
  transform: rotate(90deg);
  transform-origin: 20px;
}

.tuner > div, .volume > div {
  position: absolute;
  z-index: 0;
  box-shadow: 100px 0 10px 16px rgba(0,0,0,.25);
  width: 50%;
  height: 25px;
  bottom: 5px;
  right: 114px;
  border-radius: 0 0 50% 50%;
}

.volume > .controller {
  height: 60px;
  width: 60px;
}

.volume > .controllerCont {
  height: 60px;
  width: 60px;
}

.volume > .controller > span {
  -moz-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.volume .label {
  display: block;
  position: absolute;
  z-index: 1;
  top: 30px;
  left: -12px;
  height: auto;
  font-size: 20px;
  line-height: 1em;
  color: rgba(0,0,0,.4);
  letter-spacing: 32px;
  white-space: nowrap;
}

/* Adjustments for mobile devices */
@media (max-width: 768px) {
  .global-radio {
    width: 100%;
    padding: 10px;
  }

  .case {
    width: 100%;
    max-width: 720px;
  }
}
