*,
*::before,
*::after{
  box-sizing: border-box;
  font-family: 'Noto Sans TC', sans-serif;
}

body{
  background: black;
  display: flex;
  justify-content: center;
  background-image: url(../images/bg.jpg);
}

.container{
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#start{
  width: 100%;
  height: 100%;
  background: rgba(0,80,80,0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

#start img{
  width: 200px;
  position: absolute;
  top: -120px;
  right: -130px;
  animation: tada 2s;
}

#start img:hover{
  animation: shakeY 1s infinite;
}

#description{
  width: 500px;
  height: 300px;
  font-size: 1rem;
  font-weight: bold;
  color: rgb(0, 50, 100);
  background: #f1eee1;
  border: 15px solid #65c5c2;
  border-radius: 1rem;
  padding: 2rem;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%);
}

#btn-start{
  width: 150px;
  font-size: 30px;
  font-weight: 500;
  color: rgb(0, 50, 100);
  background: #65c5c2;
  border: 0;
  border-radius: 2rem;
  position: absolute;
  bottom: 10%;
  left: 35%;
  animation: pulse 1s infinite;
}

#btn-start:disabled{
  width: 150px;
  font-size: 30px;
  color: rgb(255, 255, 255);
  background: rgb(0, 50, 100);
  border: 0;
  border-radius: 2rem;
  position: absolute;
  bottom: 10%;
  left: 35%;
  animation: pulse 1s infinite;
}

.bg{
  width: 95%;
  position: relative;
  top: 1%;
  left: 2%;
  border-radius: 3rem;
  border: 1px solid black;
}

#pond{
  position: absolute;
  width: 85.4%;
  height: 77.7%;
  border-radius: 3rem;
  top: 0.8%;
  left: 6.8%;
}

#frog-name{
  position: absolute;
  width: 80%;
  height: 17%;
  background: rgba(0,0,0,0.5);
  border: 1px solid grey;
  border-radius: 1rem;
  bottom: 2%;
  left: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pond .card {
  width: 150px;
  height: 210px;
  position: absolute;
  /* 設定子元素在 3D 空間內 */
  transform-style: preserve-3d;
  margin: 5px 20px;
  transition: transform 1s;
  animation: tada 2s;
}

.frog-card-back:hover{
  animation: heartBeat 1s infinite;
}

.name-card-back:hover{
  animation: heartBeat 1s infinite;
}

#frog-name .card {
  width: 100px;
  height: 140px;
  border-radius: 5px;
  position: relative;
  /* 設定子元素在 3D 空間內 */
  transform-style: preserve-3d;
  margin: 5px 20px;
  transition: transform 1s;
  animation: tada 2s;
}

.frog-card-front {
  width: 100%;
  height: 100%;
  background-image: url(../images/frog_card_1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  /* 把花色翻轉到下面 */
  transform: rotateY(180deg);
}

.name-card-front {
  width: 100%;
  height: 100%;
  background-image: url(../images/name_card_1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  /* 把花色翻轉到下面 */
  transform: rotateY(180deg);
}

.frog-card-back {
  width: 100%;
  height: 100%;
  background-image: url(../images/frog_card-back.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  /* 翻過來後隱藏另一面 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.name-card-back {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-image: url(../images/card-back.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  /* 翻過來後隱藏另一面 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-open {
  transform: rotateY(180deg);
}

#end{
  width: 100%;
  height: 100%;
  background: rgba(0,80,80,0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

a{
  width: 250px;
  padding: 1rem;
  color: rgb(0, 50, 100);
  background: #f1eee1;
  font-size: 3rem;
  font-weight: bold;
  text-decoration:none;
  text-align: center;
  position: absolute;
  top: 35%;
  border: 0;
  border-radius: 2rem;
  left: 42%;
  animation: pulse 1s infinite;
  z-index: 100;
}