* {
  box-sizing: border-box;
}
html {
  font-size: 10px;
}
#iphone {
  position: relative;
  margin: 5rem auto;
  width: 37.1rem;
  height: 78.85rem;
  background-color: #000;
  box-shadow: 0 0 0 .5rem #000;
  border: solid 0.2rem #515663;
  border-radius: 5.6rem;
  overflow: hidden;
}
#iphone #glass {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 5.6rem;
  box-shadow: inset 0 0 0 0.4rem rgba(255, 255, 255, 0.2);
}
#iphone #camera {
  position: absolute;
  z-index: 10;
  top: 3.2rem;
  left: 18.2rem;
  width: .9rem;
  height: .9rem;
  border-radius: 100%;
  background-color: #52215b;
  border: solid 0.2rem #434141;
  box-shadow: 0 0 0 .4rem #2A2A2A;
  overflow: hidden;
}
#iphone #camera:after {
  content: "";
  display: block;
  margin: .15rem auto;
  width: .5rem;
  height: .2rem;
  transform: rotate(-30deg);
  border-left: solid 0.2rem #6b7fbc;
  border-right: solid 0.1rem #6b7fbc;
  background-color: rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
#iphone #speaker {
  position: absolute;
  top: 6.2rem;
  left: 14.95rem;
  width: 6.8rem;
  height: .8rem;
  border-radius: 1rem;
  border: #000000 0.4rem solid;
  border-bottom-color: #212121;
  border-right-color: #333;
  box-shadow: inset #000 0px 0px 7px;
}
#iphone #screen {
  position: absolute;
  width: 32rem;
  height: 56.8rem;
  top: 10.2rem;
  left: 2.35rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.12);
}
#iphone #button {
  position: absolute;
  left: 15rem;
  bottom: 2.4rem;
  width: 7.1rem;
  height: 7.1rem;
  border-radius: 100%;
  box-shadow: 0px -1px 0 #373838;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.3) 75%, rgba(255, 255, 255, 0.5) 100%);
}
#iphone #button:before {
  content: "";
  display: block;
  position: relative;
  z-index: 20;
  margin: 2.2rem auto 0;
  width: 2.4rem;
  height: 2.5rem;
  border-radius: .7rem;
  border: solid 0.2rem #999b9d;
}
#iphone #button:after {
  content: "";
  display: block;
  position: absolute;
  z-index: 10;
  top: 0;
  margin-left: -0.1rem;
  width: 7.3rem;
  height: 4rem;
  background-color: #000;
  border-radius: 0 0 100px 100px / 0 0 25px 25px;
}
