body {
  background: #FFEAC9;
  font-family: "微軟雅黑","微軟正黑體","Heiti TC",Arial,sans-serif;
}

	* {
margin: 0;
padding: 0;
}


.logo{
    height: 30px;
    display:block;
    margin:auto;
    margin-top: 15px;
}

h1{
    text-align: center;
    color: #000;
    margin-top: 10px;
}

body header {
  height: 10vh;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
@media screen and (min-width: 37.4375em) {
  body header {
    width: 600px;
  }
}
body header .timer {
  position: absolute;
  top: 14%;
  left: 3%;
  font-size: 23px;
  background: #FFAD29;
  width: 8vh;
  height: 8vh;
  line-height: 8vh;
  border-radius: 4vh;
  text-align: center;
}

.game {
  height: 90vh;
  width: 100%;
  position: relative;
  margin: 0 auto;
}
@media screen and (min-width: 37.4375em) {
  .game {
    width: 600px;
  }
}

.flip-container {
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  perspective: 1000;
  height: 22%;
  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: 100%;
  width: 100%;
  box-shadow: #FFCCA9 0 8px 2px;
}
.flipper .front {
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  -o-transform: rotateY(0deg);
  transform: rotateY(0deg);
  background: #FF2151;
}
.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("https://smartcinematw.neocities.org/pairs_game/img/01.png") no-repeat center;
  background-size: contain;
}

#shoe {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/02.png") no-repeat center;
  background-size: contain;
}

#plane {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/03.png") no-repeat center;
  background-size: contain;
}

#suitcase {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/04.png") no-repeat center;
  background-size: contain;
}

#robot {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/05.png") no-repeat center;
  background-size: contain;
}

#ring {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/06.png") no-repeat center;
  background-size: contain;
}

#palm-tree {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/07.png") no-repeat center;
  background-size: contain;
}

#mp3 {
  background: white url("https://smartcinematw.neocities.org/pairs_game/img/08.png") no-repeat center;
  background-size: contain;
}

.exp{
    text-align: center;
    color: #222;
    margin-top: 10px;
}

.info{
    border:solid 5px #eac34c;
    width: 300px;
    text-align: center;
    border-radius: 5px;
    position: relative;
    display: block;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #FFFDC9;
    box-shadow:0px 0px 5px 2px #fff;
}


h3{
    text-align: center;
    color: #EF710E;
}

ul{
    text-align: center;
    color: #000;
    margin-top: 5px;
    list-style-type: none;
}
li.jackpot{
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 5px;
}
.notify{
    text-align: center;
    color: #222;
    font-size: 10px;
    width: 300px;
    margin: auto;
    margin-bottom: 20px;
}

.modal {
  display: black; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  text-align: center;
  border-radius: 20px;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}