@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,600);
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
[class*="fontawesome-"]:before {
  font-family: 'FontAwesome', sans-serif;
}

*, *:before, *:after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #333;
}

body {
  background: white;
}
#infoBox{
  width: 700px;
  height: 700px;
  left: calc(45% - 20px);
  background: black;
  margin: 0 auto;
  border-radius: 25px;
  position: absolute;
  top: 272px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
  font-size:12px;
}


#phone {
  width: 400px;
  height: 700px;
  left: calc(-30% - 20px);
  background: black;
  margin: 0 auto;
  border-radius: 25px;
  position: relative;
  top: 0px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#phone:before, #phone:after {
  content: '';
  display: block;
  position: absolute;
  background: #d3d3d3;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(255, 255, 255, 0.25);
}
#phone:after {
  left: calc(50% - 20px);
  bottom: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
#phone:before {
  left: calc(50% - 20px);
  top: 30px;
  height: 10px;
  width: 50px;
  border-radius: 10px;
}

#app {
  overflow: hidden;
  background: #FFF;
  width: 90%;
  height: 550px;
  position: absolute;
  top: calc(50% - 290px);
  left: calc(5%);
}

#app .header {
  height: 50px;
  margin-bottom: 10px;
  background: #f6f6f6;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  text-align: center;
  font: 18px "Open Sans";
  line-height: 30px;
  font-weight: 300;
  color: #ddd;
}
#app .header .top {
  height: 16px;
  position: relatqive;
  font-family: "Open Sans";
  font-size: 8px;
  line-height: 16px;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}
#app .header .top .left {
  position: absolute;
  top: 0;
  left: 5px;
}
#app .header .top .center {
  text-align: center;
  font-size: 10px;
}
#app .header .top .right {
  position: absolute;
  top: 0;
  right: 5px;
}
#app .header #battery {
  border: 1px solid #999;
  border-radius: 2px;
  height: 10px;
  width: 20px;
  position: relative;
  display: inline-block;
  margin-left: 2px;
  margin-right: 2px;
  right: 0;
  top: 2px;
}
#app .header #battery:before {
  content: '';
  display: block;
  width: 75%;
  height: 100%;
  background: #4d4;
  border: 1px solid transparent;
}

#people, .person {
  width: 300px;
  height: 400px;
}

#people {
  position: relative;
  margin: 0 auto;
}

.person {
  position: absolute;
  background-color: transparent;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: all .1s linear;
  font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
}
.person:nth-child(1) {
  z-index: 5;
}
.person:nth-child(2) {
  z-index: 4;
  top: 7px;
  transform: scale(0.98);
}
.person:nth-child(3) {
  z-index: 3;
  top: 14px;
  transform: scale(0.96);
}
.person:nth-child(n+4) {
  z-index: 2;
  transform: scale(0.7);
}
.person:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  content: '';
}

.person img {
  width: 100%;
  height: 90%;
  background: white;
}

.person span {
  position: absolute;
  bottom: 0;
  left: 0;
  background: white;
  width: 100%;
  padding: 5px;
  font: 16px "Open Sans";
  line-height: 30px;
  color: #555;
}

.person span strong {
  font-weight: 600;
  color: #000;
}

@keyframes yes {
  0% {
    transform: scale(1) rotateZ(0deg);
    left: 0;
  }
  30% {
    transform: scale(1.05) rotateZ(0deg);
    left: 0;
  }
  100% {
    transform: rotateZ(45deg);
    left: 400px;
  }
}
.animateYes {
  animation-fill-mode: both;
  animation: yes 0.6s linear;
}
.animateYes:before {
  transform: rotateZ(-35deg);
  background: url(http://i.imgur.com/Zkwj970.png) no-repeat center 10px;
}

@keyframes no {
  0% {
    transform: rotateZ(360deg);
    right: 0;
  }
  30% {
    transform: scale(1.05) rotateZ(360deg);
    right: 0;
  }
  100% {
    transform: rotateZ(315deg);
    right: 400px;
  }
}
.animateNo {
  animation-fill-mode: both;
  animation: no 0.6s linear;
}
.animateNo:before {
  transform: rotateZ(35deg);
  background: url(http://i.imgur.com/XqQZ4KR.png) no-repeat center 10px;
}

#control {
  position: relative;
  margin: 15px auto 0;
  width: 250px;
}
#control .button {
  width: 65px;
  height: 65px;
  background: #eee;
  position: absolute;
  top: 5px;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
#control .button .trigger {
  background: white;
  display: block;
  border-radius: 50%;
  width: 75%;
  height: 75%;
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  transition: all .1s;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
#control .button .trigger:active {
  transform: translateY(-50%) scale(0.75);
  transition: all .05s linear;
}
#control .button .trigger:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  font-family: 'FontAwesome';
}
#control .no {
  left: 38px;
}
#control .no .trigger:before {
  content: "\f00d";
  font-size: 28px;
  color: #c33;
}
#control .yes {
  right: 38px;
}
#control .yes .trigger:before {
  content: "\f004";
  font-size: 22px;
  color: #3b7;
}
#control .info {
  left: calc(50% - 23px);
  top: 17px;
  height: 46px;
  width: 46px;
}
#control .info .trigger {
  width: 65%;
  height: 65%;
}
#control .info .trigger:before {
  content: "\f05a";
  font-size: 16px;
  color: #3498db;
}

#copy {
  font: 12px "Open Sans";
  color: #ccc;
  position: fixed;
  top: 5px;
  left: 5px;
}
#copy a {
  color: #aaa;
}

.main-nav {
    background-color: #fff;
    border: 0;
    border-top: 5px solid #DC4D17;
}

nav a {
    text-decoration: none;
    text-align: center;
    float: right;
    display: inline-block;
    padding: 3%;
    font-weight: bold;
    color: black;
    margin: 0 5px 0 0;
    background-color: #eee;
}

nav ul {
    list-style-type: none;
    margin: 0;
    margin-left: 20px;
    padding: 0;
}

nav li {
	text-transform: uppercase;
	font-family: Chalet-NewYorkNineteenSeventy;
}

a:link, a:visited {
    border-radius: 0 0 8px 8px;
    padding: 0 15px;
}

a:hover {
	background-color: #DC4D17;
	color: black;
	padding-bottom: 0px;
	font-family: Chalet-NewYorkNineteenSeventy;
}
