* {
    box-sizing: border-box;
  }

  
  html, body {
    position: relative;
    height: 100%;
    width: 100%;
  }
  body {
    margin: 0;
    padding: 0;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    background-color:rgba(0, 0, 0, 0.9);

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
  }

  

.bg, .game-container{
  /*
  height: 100%;
  width: 100%;
  */
  position: absolute;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
}
.bg-color1{background-color: #c9bc9c;}
.bg-color2{background-color: #f1d680;}
.bg-color3{background-color: #c9caca;}
.bg-color4{background-color: #fff;}
.bg-color5{background-color: #9cc5b7;}
  #myVideo {
    position: static;
    right: 0;
    top: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0.7;
  }

  .content {
    position: absolute;
    top: 80px;
    bottom: 80px;
    left: 20%;
    /*background: rgba(0, 0, 0, 0.5);*/
    color: #f1f1f1;
    width: 60%;
    height: auto;
    padding: 20px;
  }

 .content .btn-con{
    margin-top: 200px;
  }
  .btn-g1 {
    display: inline-block;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2rem;
    min-width: 300px;
    color: #f1d680; 
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;

    text-shadow: -1px 0 3px rgb(0 0 0 / 60%);
    margin-top: 15px;
    padding: .375rem 2rem;
    line-height: 1.5;
    border-radius: 3.45rem;

    background-color: #204050;
    border: .75rem solid #fff;
}
.btn-g1:hover {
  background-color: #f1d680;
  color: #204050;
}
.btn-g2 {
  display: inline-block;
  font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2rem;
    min-width: 300px;
  color: #204050; 
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;

  text-shadow: -1px 0 3px rgb(0 0 0 / 60%);
  margin-top: 15px;
  padding: .375rem 2rem;
  line-height: 1.5;
  border-radius: 3.45rem;

  background-color: #9fcabc;
  border: .75rem solid #fff;
}
.btn-g2:hover {
background-color: #f1d680;
color: #204050;
}
.btn-g3 {
  display: inline-block;
  font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2rem;
    min-width: 300px;
  color: #204050; 
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;

  text-shadow: -1px 0 3px rgb(0 0 0 / 60%);
  margin-top: 15px;
  padding: .375rem 2rem;
  line-height: 1.5;
  border-radius: 3.45rem;

  background-color: #f3cb1e;
  border: .75rem solid #fff;
}
.btn-g3:hover {
  background-color: #204050;
  color: #f1d680;
}


.language-con2{
  position: absolute;
  left: 1190PX;
  top: -25px;
  width: 300px;
  padding: 5px 0px;
  text-align: right;

}
#btn-lg0>img {
  width: 200px;
  height: auto;
}
.language-con2 .btn-lg2 {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: #204050;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  text-shadow: -1px 0 3px rgb(0 0 0 / 60%);
  padding: .375rem;
  line-height: 1.5;
  background-color: #f1d680;
  border-radius: 3.45rem;
  border: .75rem solid #fff;
  width: 280px;
  margin-bottom: 10px;
}

.language-con2 .btn-lg-on {
  color: #9bc5b7;
  background-color:#447a93;
}
.language-con2 .btn-lg2:hover {
  color: #fff;
  background-color:#204050;
}
.lg-list{
  display: none;
}
.lg-list>a:nth-of-type(1) {

	animation: fade-in5  0.4s ease 0.3s 1 both;
	-webkit-animation: fade-in5  0.4s ease 0.3s 1 both;
}

.lg-list>a:nth-of-type(2) {

	animation: fade-in5  0.4s ease 0.6s 1 both;
	-webkit-animation: fade-in5  0.4s ease 0.6s 1 both;
}

.lg-list>a:nth-of-type(3) {

	animation: fade-in5  0.4s ease 0.9s 1 both;
	-webkit-animation: fade-in5  0.4s ease 0.9s 1 both;
}

.lg-list>a:nth-of-type(4) {

	animation: fade-in5  0.4s ease 1.2s 1 both;
	-webkit-animation: fade-in5  0.4s ease 1.2s 1 both;
}

.language-con{
  position: absolute;
  left: 1100PX;
  top: -30px;
  width: 370px;
  padding: 5px 0px;
  border-radius: 3.45rem;
background-color: #FFF;
}
.btn-lg {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #f1d680;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  text-shadow: -1px 0 3px rgb(0 0 0 / 60%);
  padding: .575rem;
  line-height: 1.5;
  background-color: #204050;
  border: .25rem solid #fff;
}
.btn-lg:hover{
  color: #204050;
  background-color:#f1d680;
}
.btn-lg-on {
  color: #204050;
  background-color:#f1d680;
  font-size: 1.6rem;
}
.btn-lg-on:hover {
  color: #fff;
  background-color:#204050;
}

.box-shadow{
  box-shadow: .575rem .575rem 1.275rem rgba(41, 38, 38, 0.9);
}

.cards-list{
  margin-top: 60px;
}
.cards-list ul {  list-style: none;}
.cards-list ul li { float: left;  width: 160px; height: auto; text-align: center;}
.cards-list ul li img{ width: 150px; height: auto;}

.tips{ color: #204050; font-size: 1.8rem; line-height: 150%; margin:40px auto; width:900px; height:460px; border:20px solid #FFFFFF; background:#9fcabc; padding:20px; border-radius:50px; -moz-border-radius:50px; -o-border-radius:50px; }
.tips h2 {
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 0.4rem;
  line-height: 1.5;
}
.tips ol {list-style-type:none;counter-reset:sectioncounter; color: #FFF; font-size: 2.8rem; font-weight: bold;}
.tips ol li:before {
  content:counter(sectioncounter) " "; 
  counter-increment:sectioncounter;
}
.step2 ol li{
  text-indent: -0.9em;
  padding-left: 0.9em;
  margin-bottom: 10px;
}
.tips ol li span {color: #204050; font-size: 2rem; line-height: 1.3; font-weight: normal; }

.step1 .title2>h2{
  color: #6a3906; 
  font-size: 2.8rem; 
  line-height: 1.2;
  font-weight:600;
}
.step1 .title3>img {
  max-width: 1050px;
}
.step3 .content, .step4 .content{
  width: 1550px;
  height: 853px;
  top: 30px;
  bottom: 30px;
  left: 8%;
}
.step3 .title1, .step4 .title1, .step5 .title1{
  width: 330px;
  height: 187px;
  margin: 0 auto;
  padding-top: 60px;
  background: url('../img/g1/title_bg1.png') center center no-repeat;
  background-size: 90%;
}
.step4 .title1,.step5 .title1{ padding-top: 58px;}
.step3 .title1 img, .step4 .title1 img, .step5 .title1 img{ width: 190px; height: auto; }
.msg-content {
  margin: 20px auto 0 auto;
  background-color: #f3cb1e;
  background-image: url('../img/g1/content_bg1-1.png');
	background-size: 100%;
  color: #6a3906;
  width: 1500px;
  min-height: 650px;
  padding: 20px;
  border-radius: 3.45rem;
  font-size: 1.8rem;

  opacity: 0;
  animation: puffIn 1s ease 2s 1 both;
  -webkit-animation: puffIn 1s ease 2s 1 both;
}
.msg-content > .msg-content1 {padding: 40px 60px 20px 60px; text-align: justify; min-height: 600px; max-height: 600px; overflow:auto;}
.msg-content > .msg-content1 h1{ font-size: 2.2rem; font-weight: bold; text-align: center; line-height: 140%;}
.msg-content > .msg-content1 p{text-indent:0;}
.step3 .btn-con{
  margin-top: 15px;
}
.step5 .content{
  width: 1550px;
  height: 1080px;
  top: 0;
  bottom: 0;
  left: 8%;
  padding: 5px 20px;
}
.game-container2{
  position: relative;
    width:664px; 
    height:659px; 
    margin:0px auto 0px auto;
    background: url('../img/g1/content_bg2.png') center center no-repeat;
  
}
.board .masking{ display:none; width:1400px; height:820px; margin-top: -810px; margin-left: 250px; background-color: #FFFFFF; opacity: 0.7; border-radius:20px; -moz-border-radius:20px; -o-border-radius:20px; -webkit-border-radius:20px;}
#game1 {
  width: 568px;
  height: 568px;
  padding: 1px 1px;
  position:absolute;
  left: 48px;
  top: 45px;
}
.wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.wrap canvas {
  width: 33.3333%;
  height: 33.3333%;
  border: 1px solid red;
  box-sizing: border-box;
}

.process2{
  position: relative;
   margin: -10px auto 0 auto;
   width: 400px;
   height: 112px;
}
.progress {
  position: absolute;
  margin-top: 22px;
  margin-left: 85px;
  font-size: 1.2em;
  width: 320px;
  height: 60px;
  background: rgb(181, 181, 182, 0.9);
  border-radius:0 50px 50px 0;
  border: 0.5rem solid rgba(255, 255, 255, 0.9);
  background-color:#b5b5b6;
  
}
.process2 > .timer-img{
  position: absolute;
  text-align: left;
}
.progress--active .progress__bar {
  opacity: 1;
}
.progress__text {
  width: 20em;
  padding: 0 0.9em;
  position: absolute;
}
.progress__text em {
  font-style: normal;
}
.progress__bar {

  color: white;
  font-size: 1rem;
  font-weight: normal;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  line-height: 19px;
  display: block;
  position: relative;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  opacity: 1;
  border: 1px solid;
  border-radius: 2px 0 0 2px;
  
  background-size: 100px 30px, 130px 30px, 130px 30px;
  background-position: -20% center, right center, left center;
  background-repeat: no-repeat, no-repeat, no-repeat;
/*
  -webkit-transition: opacity 0.2s ease, width 0.8s ease-out, background-color 1s ease, border-color 0.3s ease, box-shadow 1s ease;
          transition: opacity 0.2s ease, width 0.8s ease-out, background-color 1s ease, border-color 0.3s ease, box-shadow 1s ease;
  -webkit-animation: pulse 2s ease-out infinite;
          animation: pulse 2s ease-out infinite; */
         
          background-color: rgba(232, 158, 0, 0.95);
          background-image: -webkit-linear-gradient(0deg, rgba(255, 174, 2, 0) 10%, rgba(255, 183, 28, 0.8) 30%, #ffbf36 70%, rgba(255, 183, 28, 0.8) 80%, rgba(255, 174, 2, 0) 90%), -webkit-linear-gradient(left, rgba(255, 191, 54, 0) 0%, #ffbf36 100%), -webkit-linear-gradient(right, rgba(255, 191, 54, 0) 0%, #ffbf36 100%);
          background-image: linear-gradient(90deg, rgba(255, 174, 2, 0) 10%, rgba(255, 183, 28, 0.8) 30%, #ffbf36 70%, rgba(255, 183, 28, 0.8) 80%, rgba(255, 174, 2, 0) 90%), linear-gradient(to right, rgba(255, 191, 54, 0) 0%, #ffbf36 100%), linear-gradient(to left, rgba(255, 191, 54, 0) 0%, #ffbf36 100%);
          border-color: #ffc74f;
          box-shadow: 0 0 0.6em #ffb71c inset, 0 0 0.4em #ffae02 inset, 0 0 0.5em rgba(232, 158, 0, 0.5), 0 0 0.1em rgba(255, 248, 232, 0.5);
}


.progress__bar--yellow {
  background-color: rgba(232, 158, 0, 0.95);
  background-image: -webkit-linear-gradient(0deg, rgba(255, 174, 2, 0) 10%, rgba(255, 183, 28, 0.8) 30%, #ffbf36 70%, rgba(255, 183, 28, 0.8) 80%, rgba(255, 174, 2, 0) 90%), -webkit-linear-gradient(left, rgba(255, 191, 54, 0) 0%, #ffbf36 100%), -webkit-linear-gradient(right, rgba(255, 191, 54, 0) 0%, #ffbf36 100%);
  background-image: linear-gradient(90deg, rgba(255, 174, 2, 0) 10%, rgba(255, 183, 28, 0.8) 30%, #ffbf36 70%, rgba(255, 183, 28, 0.8) 80%, rgba(255, 174, 2, 0) 90%), linear-gradient(to right, rgba(255, 191, 54, 0) 0%, #ffbf36 100%), linear-gradient(to left, rgba(255, 191, 54, 0) 0%, #ffbf36 100%);
  border-color: #ffc74f;
  box-shadow: 0 0 0.6em #ffb71c inset, 0 0 0.4em #ffae02 inset, 0 0 0.5em rgba(232, 158, 0, 0.5), 0 0 0.1em rgba(255, 248, 232, 0.5);
}

  #myBtn {
    width: 200px;
    font-size: 18px;
    padding: 10px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  #myBtn:hover {
    background: #ddd;
    color: black;    
  }

  /* Navigation Bar */
  .navbar { 
    padding-right: 200px;
    padding-left: 200px;
    z-index: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
  }

  .navbar-brand {   
    margin-right: 25px;
    margin-left: 25px;
    font-size: 15px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 20px;
    /* opacity:0.6; */
    color: white;

/*   Use three below code for text stroke with transparent text
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: yellow; */
  
  }

  .navbar-brand:hover {    
    transition: .5s;
    background-color: white;
    color: black;
  }

.bg-animation{
  opacity: 0;
  animation: fade-in 1s linear 0.5s;
	-webkit-animation: fade-in 1s linear 0.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}
.title1{
  opacity: 0;
  /*
  animation: fade-in 1s linear 1s;
	-webkit-animation: fade-in 1s linear 1s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
  */
  animation: puffIn 1s ease 1s 1 both;
	-webkit-animation: puffIn 1s ease 1s 1 both;
}
.title1-out{
  animation: fade-out2 1s linear 1s;
	-webkit-animation: fade-out2 1s linear 1s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}
.title2 {
  margin-top: 50px;
	opacity: 0;
	animation: fade-in3 0.5s linear 2s;
	-webkit-animation: fade-in3 0.5s linear 2s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}

.title3 {
	opacity: 0;
	animation: fade-in3 0.5s linear 2.5s;
	-webkit-animation: fade-in3 0.5s linear 2.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}

.cards-list>ul>li:nth-of-type(1) {

	animation: bounceIn 0.6s ease 3.5s 1 both;
	-webkit-animation: bounceIn 0.6s ease 3.5s 1 both;
}

.cards-list>ul>li:nth-of-type(2) {

	animation: bounceIn 0.6s ease 4.2s 1 both;
	-webkit-animation: bounceIn 0.6s ease 4.2s 1 both;
}

.cards-list>ul>li:nth-of-type(3) {

	animation: bounceIn 0.6s ease 4.4s 1 both;
	-webkit-animation: bounceIn 0.6s ease 4.4s 1 both;
}

.cards-list>ul>li:nth-of-type(4) {

	animation: bounceIn 0.6s ease 4.6s 1 both;
	-webkit-animation: bounceIn 1s ease 4.6s 1 both;
}

.cards-list>ul>li:nth-of-type(5) {

	animation: bounceIn 0.6s ease 4.8s 1 both;
	-webkit-animation: bounceIn 1s ease 4.8s 1 both;
}

.cards-list>ul>li:nth-of-type(6) {

	animation: bounceIn 0.6s ease 5s 1 both;
	-webkit-animation: bounceIn 0.6s ease 5s 1 both;
}
.btn-a{
  opacity: 0;
  /*
	animation: puffIn 1s ease 5s 1 both;
	-webkit-animation: puffIn 1s ease 5s 1 both;
  */
  animation: fade-in4 0.5s linear 3.5s;
	-webkit-animation: fade-in4 0.5s linear 3.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}
.btn-a2{
  opacity: 0;
  animation: fade-in4 0.5s linear 3s;
	-webkit-animation: fade-in4 0.5s linear 3s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}
.tips{
  opacity: 0;
	animation: puffIn 1s ease 2s 1 both;
	-webkit-animation: puffIn 1s ease 2s 1 both;
}

.step2 .cards-list>ul>li:nth-of-type(1) {

	animation: bounceIn 0.6s ease 2s 1 both;
	-webkit-animation: bounceIn 0.6s ease 2s 1 both;
}

.step2 .cards-list>ul>li:nth-of-type(2) {

	animation: bounceIn 0.6s ease 2.2s 1 both;
	-webkit-animation: bounceIn 0.6s ease 2.2s 1 both;
}

.step2 .cards-list>ul>li:nth-of-type(3) {

	animation: bounceIn 0.6s ease 2.4s 1 both;
	-webkit-animation: bounceIn 0.6s ease 2.4s 1 both;
}

.step2 .cards-list>ul>li:nth-of-type(4) {

	animation: bounceIn 0.6s ease 2.6s 1 both;
	-webkit-animation: bounceIn 1s ease 2.6s 1 both;
}

.step2 .cards-list>ul>li:nth-of-type(5) {

	animation: bounceIn 0.6s ease 2.8s 1 both;
	-webkit-animation: bounceIn 1s ease 2.8s 1 both;
}

.step2 .cards-list>ul>li:nth-of-type(6) {

	animation: bounceIn 0.6s ease 3s 1 both;
	-webkit-animation: bounceIn 0.6s ease 3s 1 both;
}

.board .topplane{
  opacity: 0;
  animation: fade-in3 0.5s linear 1.5s;
	-webkit-animation: fade-in3 0.5s linear 1.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}

#message2 .part1 .role1 .mycard{
  animation: bounceIn 0.6s ease 1s 1 both;
	-webkit-animation: bounceIn 0.6s ease 1s 1 both;
}
#message2 .part1 .role1 .text{
  opacity: 0;
  animation: fade-in3 0.5s linear 1.5s;
	-webkit-animation: fade-in3 0.5s linear 1.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}
#message2 .part1 .relations .text{
  opacity: 0;
  animation: fade-in3 0.5s linear 2.5s;
	-webkit-animation: fade-in3 0.5s linear 2.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
  
}

#process{
  opacity: 0;
  animation: fade-in4 0.5s linear 1.5s 1 forwards;
	-webkit-animation: fade-in4 0.5s linear 1.5s  1 forwards;
}
.game-container2{
  opacity: 0;
  animation: fade-in4 0.5s linear 2s 1 forwards;
	-webkit-animation: fade-in4 0.5s linear 2s 1 forwards;
}

.win-con{ position: relative;width: 880px; height: 875px; margin: -100px auto 0 auto;}
.win-con img{
  width: 880px;
  height: auto;
}
.win-con>.part1, .win-con>.part2, .win-con>.part3, .win-con>.part4, .win-con>.part5, .win-con>.part6, .win-con>.part7, .win-con>.part8{
  position: absolute;
}
.step4 .content .btn-con, .step5 .content .btn-con{
  position: relative;
  margin-top: 5px;
  opacity: 0;
  animation: fade-in4 0.5s linear 2.5s;
	-webkit-animation: fade-in4 0.5s linear 2.5s;
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
}

#btn-reset{
  display:inline-block;
  width: 115px;
  height: 115px;
}
#btn-reset:hover {
  border-radius: 50%;
  background-color: #f1d680;
}
.step5 .content .btn-con img{
  width: 110px;
  height: auto;
}
.win-con {

	animation: puffIn 1s ease 1s 1 both;
	-webkit-animation: puffIn 1s ease 1s 1 both;
}
.win-con>.part1{
  animation: revolve 30s linear 3s infinite, revolve2 5s linear 1s infinite;
	-webkit-animation:  revolve 30s linear 3s infinite, revolve2 5s linear 1s infinite;
}


.lose-con{ position: relative;width: 880px; height: 875px; margin: -100px auto 0 auto;}
.lose-con >.part1 >img, .lose-con >.part2 >img{
  width: 880px;
  height: auto;
}
.lose-con>.part1, .lose-con>.part2, .lose-con>.part3, .lose-con>.part4, .lose-con>.part5, .lose-con>.part6, .lose-con>.part7, .lose-con>.part8{
  position: absolute;
}
.lose-con>.part3{
  top: 165px;
  left: 165px;
}
.lose-con>.part3>img{ width: 560px; height: auto;}
.lose-con>.part4{
  top: 385px;
  left: 332px;
}
.lose-con>.part4>img{ width: 196px; height: auto;}
.lose-con>.part5{
  top: 545px;
  left: 178px;
  width: 620px;
  height: 260px;
  background-image: url('../img/g2/lose_p5.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.lose-con>.part5>img{ width: 620px; height: auto;}
.lose-con {

	animation: puffIn 1s ease 1s 1 both;
	-webkit-animation: puffIn 1s ease 1s 1 both;
}
.lose-con>.part1{
  animation: revolve 30s linear 3s infinite, revolve2 5s linear 1s infinite;
	-webkit-animation:  revolve 30s linear 3s infinite, revolve2 5s linear 1s infinite;
}
/*
.lose-con>.part2{
    animation: revolve 20s linear 1s infinite;
    -webkit-animation: revolve 20s linear 1s infinite;
  }
  */
  .lose-con>.part5{
    animation: shake 4s ease 3s infinite both;
  }
  .step6 .content .btn-con, .step7 .content .btn-con {
    margin-top: 10px;
}
#btn-next2{
  margin-right: 50px;
}

