body {
	background-image:url(../bg.png);
	background-repeat:no-repeat;
  color: white;
  font-family: arial;
  width:320px;
}
body header {
  height: 40px;
  width: 320px;
  margin: 0;
  position: relative;
}
@media screen and (min-width: 37.4375em) {
  body header {
    width: 300px;
  }
}
body header .timer {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 23px;
  background: #004e89;
  width: 8vh;
  height: 8vh;
  line-height: 8vh;
  border-radius: 0;
  text-align: center;
  color:#f6e222;
}

.game {
  height: 480px;
  width: 309px;
  position: relative;
  margin: 131px 0 0 0;
}
@media screen and (min-width: 37.4375em) {
  .game {
    width: 309px;
  }
}

.flip-container {
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  perspective: 1000;
  height: 66px;
  margin: 1%;
  cursor: pointer;
}

.flip-container.flip .flipper {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.flip-container, .front, .back {
  width: 23%;
  float: left;
  border-radius: 12px;
}

.flipper {
  -webkit-transition: 0.6s;
  -moz-transition: 0.6s;
  transition: 0.6s;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
  height: 100%;
  position: relative;
}
.flipper .front, .flipper .back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -ms-backface-visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  height: 68px;
  width: 68px;
}
.flipper .front {
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  -o-transform: rotateY(0deg);
  transform: rotateY(0deg);
  background: #2874f0;
}
.flipper .back {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  border: 1px solid #E8E8E8;
}

#piggy-bank {
  background: white url("../p1.png") no-repeat center;
  background-size: contain;
}

#shoe {
  background: white url("../p2.png") no-repeat center;
  background-size: contain;
}

#plane {
  background: white url("../p3.png") no-repeat center;
  background-size: contain;
}

#suitcase {
  background: white url("../p4.png") no-repeat center;
  background-size: contain;
}

#robot {
  background: white url("../p5.png") no-repeat center;
  background-size: contain;
}

#ring {
  background: white url("../p6.png") no-repeat center;
  background-size: contain;
}

#palm-tree {
  background: white url("../p7.png") no-repeat center;
  background-size: contain;
}

#mp3 {
  background: white url("../p8.png") no-repeat center;
  background-size: contain;
}

#winning-popup{
display: none;
    width: 284px;
    height: 51px;
    position: absolute;
    background: #5d8d00;
    top: 290px;
    left: 160px;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.54);
    color: #fff;
    font-size: 24px;
    text-align: center;
    padding: 30px 3px;

}

#losing-popup{
display: none;
    width: 284px;
    height: 51px;
    position: absolute;
    background:#000;
    top: 290px;
    left: 160px;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.54);
    color: #fff;
    font-size: 24px;
    text-align: center;
    padding: 30px 3px;
}
