/* 字體 */
@import url('https://fonts.googleapis.com/css2?family=Oooh+Baby&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400&display=swap');
@font-face {
    font-family:font1 ;
    src: url("/style/jf-openhuninn-2.0.ttf");
}
@font-face {
    font-family:font2;
    src:url("/style/HuiFontP29.ttf")
}

/* 總設定 */
html {
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    background: #f3dcdc;
    font-family: font1;
}

img {
  pointer-events: none;
}


/* Scroll */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #ffbbbb; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #AB788E;
}
/* loading */
#indexLoad {
  z-index:9999;
  padding:0;
  margin:0;
  width:100vw;
  height:100vh;
  background:#000000;
}
#loading{
  padding:0;
  margin:0;
  width:100vw;
  height:100vh;
  z-index:999;
  background:#f59696; 
}

/* LOAD ANIMAtion */

.wrapper{
  width:200px;
  height:60px;
  position: absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
}
.circle{
  width:20px;
  height:20px;
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  left:15%;
  transform-origin: 50%;
  animation: circle .5s alternate infinite ease;
}

@keyframes circle{
  0%{
      top:60px;
      height:5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
  }
  40%{
      height:20px;
      border-radius: 50%;
      transform: scaleX(1);
  }
  100%{
      top:0%;
  }
}
.circle:nth-child(2){
  left:45%;
  animation-delay: .2s;
}
.circle:nth-child(3){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.shadow{
  width:20px;
  height:4px;
  border-radius: 50%;
  background-color: rgba(0,0,0,.5);
  position: absolute;
  top:62px;
  transform-origin: 50%;
  z-index: -1;
  left:15%;
  filter: blur(1px);
  animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
  0%{
      transform: scaleX(1.5);
  }
  40%{
      transform: scaleX(1);
      opacity: .7;
  }
  100%{
      transform: scaleX(.2);
      opacity: .4;
  }
}
.shadow:nth-child(4){
  left: 45%;
  animation-delay: .2s
}
.shadow:nth-child(5){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.wrapper span{
  position: absolute;
  top:75px;
  font-family: font1;
  font-size: 20px;
  letter-spacing: 12px;
  color: #fff;
  left:15%;
}

/* 製作團隊動畫 */

.logoAnimation {
  width: 400px;
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}

.logoAnimation svg .cls-2{
  fill:none;
  stroke: #fff;
  stroke-dasharray:10000 ;
  stroke-dashoffset:10000;
  animation: 3s ease-in forwards 0.5s logoAnimation;
}
@keyframes logoAnimation {
        from {
          stroke-dashoffset:10000;
        }
        to {
          stroke-dashoffset:0;
          fill:#fff;
        }
}
@keyframes loadAnimation {
  from {
    stroke-dashoffset:1000;
  }
  to {
    stroke-dashoffset:0;
    fill:#fff;
  }
}

/* 轉場 */
#trans {
  background: #000;
  animation-name: trans;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}
@keyframes trans {
from{
  transform: translateX(-100%);
}
to {
  transform: translateX(100%);
}
  
}
#black {
  background: #f3dcdc;
  z-index:9;
}



/* 點擊頁面 */

.bgImg {
  position: absolute;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background-image:url("/img/main2.jpg") ;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
 }


#clickToStart > .logo {
  top:10vh;
  left: 50%;
  transform: rotate(-3deg) translateX(-50%);
  
}


#clickToStart > .madeBy {

  display: inline-block;
  width: 300px;
  position: absolute;
  bottom:1px;
  left:5px;
  font-size: 16px;
  font-family:Arial, Helvetica, sans-serif;
  font-weight: bolder;
  color:#AB788E;
}


#clickToStart > .copyRight {
  font-weight: bolder;
  display: inline-block;
  width: 300px;
  position: absolute;
  bottom:1px;
  right:5px;
  text-align: end;
  font-size: 16px;
  color:#AB788E;
}


#clickToStart > .flowText {
  position: absolute;
  bottom:5px;
  left:50vw;
  width: 500px;
  height: 300px;
  text-shadow: #AB788E 0px 2px 0px;
  transform: translateX(-50%);
  text-align: center;
  
  
}

#clickToStart > .flowText span {
  position: relative;
  font-size: 30px;
  top:50%;
  animation-name: flow;
  animation-duration: 3s;
  animation-delay: 0;
  animation-timing-function:linear;
  animation-direction:normal;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}


@keyframes flow {
  0% {
    top:50%;
  }
  33% {
    top:53%;
  }
  66% {
    top:47%;
  }
  100% {
    top:50%
  }
  
}


/* 標題畫面選擇 */


.mainLogo {
  top:30px;
  right: 3%;
  transform: rotate(-5deg);

}


#menuBar {
    /* background: #f3dcdca8; */
    position: absolute;
    bottom: 20vh;
    right:0;    
    transform: translate(0%,50%);
    
}

#menuBar  a {
    display: block;
    font-size:50px;
    padding: 10px;
    margin-bottom:10px;
    text-decoration: none;
    color:#dbb2c3;
    text-shadow: #000000 0px 0px 10px ;
    position: relative;
    font-weight: bolder;
}
ul.gnavi{
    flex-wrap: wrap;
    margin:0 0 50px 0;
    list-style: none;
}
#menuBar a::after {
    content: '';
	position: absolute;
	z-index: -1;
	bottom: 0;
	left: 0;
	width: 0;
	height:100%;
	background:#AB788E;
	transition:all .5s;
	opacity: 0;
}
#menuBar a:hover {
    color:#fff;
    -webkit-text-stroke: transparent;
    text-shadow: none;
}
#menuBar a:hover::after {
    width: 100%;
	opacity: 1;
}

/* 首頁關閉按鈕 */
.closeBtn {
  width: 60px;
  height: 60px;
  background: #a69d9d;
  position: absolute;
  right:10px;
  top:5px;
  border-radius: 10px;
  box-shadow: gray 3px 3px;
  cursor: pointer;
}

.closeBtn:hover {
background: rgb(243, 134, 152); 
}

.closeBtn:active {
top: 8px;
right: 7px;
box-shadow:none;
}

.closeBtn > span {
  display: block;
  position:relative;
  width: 60px;
  height: 5px;
  background: #fff;
}

.closeBtn span:nth-child(1) {
  
  transform: rotate(-45deg);
  top:28px;
  left:1px;
}

.closeBtn span:nth-child(2) {
  transform: rotate(45deg);
  top:23px;
  left:1px;
}

/* 設定頁面 */


.silderSet {
  display: inline-block;
  width: 80px;
}
#muteBgm {
  cursor: pointer;
}

#muteGame {
  cursor: pointer;
}

.settingBar {
  width: 90vw;
  position: absolute;
  top:50vh;
  left: 50vw;

  transform: translate(-50%,-50%);
  text-align: center;
}

.setBarInline{
  margin: 25px 0;
}
.eachSetting .hint {

  color:#818181;
  padding-top:10px;
  padding-left:20px;
  font-size: 18px;

}
.eachSetting {
  width: 370px;
  margin: 10px 20px;
  font-size: 25px;
  padding-top: 12px;
  padding-bottom: 12px;
  display: inline-block;
  color:#333 !important;
}



.setBarBtn {
  border: 2px solid black;
  background:rgb(243, 134, 152);
  position: relative;
  
}

.setBarBtn.eachSetting:hover{
  box-shadow: 0px 3px black;	
  background:rgb(244, 153, 168);
  top: -3px;
}

.setBarBtn.eachSetting:active{
  position: relative;
  background:rgb(243, 134, 152);
  box-shadow:none;
  top: 3px;
}




.slider {
  -webkit-appearance: none;  
  appearance: none;
  height: 25px; 
  background: #d3d3d3; 
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s; 
  transition: opacity .2s;
}

.Ban::-webkit-slider-thumb {
  background: black
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px; 
  background: rgb(243, 134, 152);
  cursor: pointer; 
}

.textTest {
    position: absolute;
    bottom: 3vh;
    left:50%;
    transform: translateX(-50%);
    border:2px solid black;
    border-radius: 30px;
    padding:20px;
    width: auto;
    background: rgb(251, 184, 195);
    box-shadow: 5px 5px #AB788E;
    width: 600px;
    height: 80px;
    font-size: 20px;
}




/* CONFIG 按鈕 */

.configBtn {
  position: absolute;
  top: 10px;
  right:10px;
  transition: all 1s;
  z-index: 20;
  cursor: pointer;
}

.configBtn.active {
  transform: rotate(-45deg);
}

/* 遊戲顯示 */
.displayArea {
  z-index:1;
  width: 100vw;
  height: 28vh;
  background:rgba(255, 192, 203, 0.774);
  position:fixed;
  bottom:0px;
}

.displayArea .speakName {
  display:inline-flex;
  padding:10px 15px;
  border: gray solid 1px;
  background:rgb(243, 134, 152);
  border-radius: 10px;
  color:#000;
  font-size: 25px;
  position: relative;
  left: 6vw;
  transform: translateY(-50%);
}
.displayArea .content {
  text-align: left;
  position: relative;
  left:50%;
  transform: translateX(-50%);
  font-size: 26px;
  width: 60%;
}

.displayArea .nextIcon {
  display:block;
  width: 95vw;
  margin-right: 10px;
  text-align: end;
}
.charImg {
  position: absolute;
  left:50vw;
  transform: translateX(-50%);
}
.charImg .charector {
  z-index:0;
  width: auto;
  filter: drop-shadow(10px 10px 10px #222);
}


.settingBtn {
  position: absolute;
  bottom:2vh;
  right:10vw;
  z-index:3;
}

.settingBtn > span {
  border: .5px gray solid;
  font-size:22px;
  
  padding:5px;
  background: #fc8296;
  box-shadow: 0px 3px 5px #000;
}
.settingBtn > span:hover {
  background: #f86980;
}

.settingBtn > .active {
  color:white;
  background-color: #e25169;
  box-shadow: unset;
  box-shadow: 0px 0px 5px #000;
}


/* 存檔 */
.loadStoreBar {
  width:600px;
  height:450px;
  position: absolute;
  overflow-y: auto;
  
  top:50vh;
  left: 50vw;
  transform: translate(-49%,-50%);
}
.loadStoreBar .eachLoad {
  
  border:1px solid rgb(109, 2, 2);
  box-shadow: 3px 3px rgb(134, 2, 2);;
  background-color:#f5cedf;
  border-radius: 10px;
  width: 95%;
  height: 100px;
  margin:10px 0px ;
}


.eachLoad:hover{

  background-color:#efbbd1;
}

.eachLoad:active{
  position: relative;
  top:3px;
  left:3px;
  box-shadow:none;
 
}

.eachLoad .loadTime{
  width: 100%;
  text-align: center;
  color:rgb(134, 2, 2);
  font-size: 20px;
}

.eachLoad .loadDetail{
  width: 100%;
}
.eachLoad .loadDetail div{
  display: inline-block;
  width: min 50px; ;
}

.loadDetail .loadName{
  font-size: 30px;
  padding: 0px 10px;
}

.loadDetail .loadLevel{
  color:rgb(79, 79, 79);
  font-size: 25px;
  text-align: center;
}
.eachLoad .loadContent{
  font-size: 20px;
  color:#818181;
  padding-top: 10px;
  width: 95%;
  text-align: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Loading頁面 */
.loadingPage {
  text-align:center;
}
#loadingLine {
  position: absolute;
	top: 50%;
	left: 50%;
  z-index: 9999;
	width: 100%;
	transform: translate(-50%, -50%);
}

/* 共用 */


/* 提醒 */
.modalMain {
  top:50px;
  left:50vw;
  transform: translateX(-50%);
  z-index:9999;
  position: absolute;
  width: 500px;
  height: 300px; 
  color:black;
  background:rgb(255, 155, 155);
  border-radius: 10px;
}
.modal .modalBg {
  z-index:9000;
  position: absolute;
  width: 100vw;
  height: 100vh; 
  background: #000; 
  opacity: 0.3;
}
.modalMain .modalHead {
  padding-top: 10px;
  padding-left: 10px; 
  height: 30px;
  font-size: 25px;
  border-radius: 10px;
}

.modalHead .close {
  display: inline-block;
  color:gray;
  font-weight: bolder;
}
.modalBody {
    background-color: #fff;
    height:219px;
    border-radius: 10px;
    padding: 20px;
    font-size: 20px;
}

.modalFoot {
  position: absolute;
  bottom:10px;
  right:10px;
}


.modalBtn {
  display: inline-block;
  height: 30px;
  width: 100px;
  border: solid 1px black;
  text-align: center;
  padding-top: 10px;
  margin:0px 4px;
  border-radius: 10px;
}

.comfirm {
  background: transparent;
  border: solid 1px #198754;
  color:#198754;
}

.comfirm:hover {
  background:  #198754;
  border: solid 1px transparent;
  color:white;
}
.comfirm:active {
  background:  #125e3b;
  border: solid 1px transparent;
  color:#b8b8b8;
}





.cancel {
  background: #dc3545;
  border: solid 1px transparent;
  color:white
}
.cancel:hover {
  background: #bc2e3c;
}
.cancel:active {
  background: white;
  border:solid 1px  #dc3545;
  color: #dc3545;
}

.logo {
  width: 750px;
  position: absolute;
}

.pageTitle {
    text-align: center;
    margin-top:50px ;
    font-size:60px;
}

.bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: #f3dcdc;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index:-3;
}

.fullPage {
    width: 100vw;
    height: 100vh;
    background: rgb(226, 207, 207);
    position: absolute;
    z-index: 10;
}

.hidden {
    visibility: hidden;
}


/*myCodeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee*/

#name{
  
  background-image: url("/img/exam paper.png");
  background-size:cover;
  background-repeat: none;
}
#name .nameInputs {
  position: absolute;
  top:100px;
  right:10px;
  font-size: 25px;
}
.inputName.error {
  border-bottom: red 1px solid;
}
.inputName {

  background-color: #ffffff00;
  border: none;
  border-bottom: #000 1px solid;
  width: 200px;
  outline: none;
  padding: 6px;
  font-size: 25px;
}
.inputName:focus{
 background:rgba(170, 170, 170, 0.696); 
}

#nameInputBtn {
  position: relative;
  border:2px solid red;
  color:red;
  border-radius: 3px;
  
}
#nameInputBtn:hover {
  border:2px solid #960202;
  color:#960202;
}

.chooseArea {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 35%;
  left: 50%;
  width: 60%;
  height: 60%;
  z-index:3;
}

.chooseArea .option {
  width: 100%;
  height: 20%;
  background-color: rgba(243, 134, 152,0.9);
  border: 1px solid black;
  border-radius: 20px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
  font-size: 32px;
  display: grid;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.option:hover {
  box-shadow: #000 0px 5px;
  top:-5px;
}
.option:active {
  box-shadow: none;
  top:0px;
}

.leftArrow {
  position: absolute;
  transform: translate(0%, -50%);
  top: 50%;
  left: 30px;
  cursor: pointer;
  z-index:3;
}

.arrowImg {
  width: 75px;
  height: 75px;
}

.rightArrow {
  position: absolute;
  transform: translate(0%, -50%);
  top: 50%;
  right:30px;
  cursor: pointer;
  z-index:3;
}

.graph {
  transform: translate(-50%, -50%);
  top: 54%;
  left: 50%;
  background-color: rgb(226, 207, 207);
  width: 800px;
  height: 650px;
  z-index: 4;
}


#chartMain {
  position: absolute;
  left:50%;
  top:50%;
  width: 60vw;
  height: 60vh;
  transform: translate(-50%,-50%);

  z-index:3;
}
/* endroll */
.endrollOuter {
  background: #2b2b2b;
  color:white;
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index:1000;
}

.endroll.hidden {
  animation-name: none;
}

.endroll {
  width: 100vw;
  height: auto;
  position: absolute;
  z-index:1000;
  left:50%;
  text-align: center;
  transform: translateX(-50%);
  animation-name: endroll;
  animation-duration:65s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
 

}

@keyframes endroll {
  from {
     transform: translateY(11%) translateX(-50%);
  }
  to {
      transform: translateY(-90%) translateX(-50%);
  }
}
.obj {
  margin-bottom: 50vh;
}
.obj .job {
  font-size: 50px;
  margin-bottom: 30px;
}
.obj .name {
  margin-top: 10px;
  font-size:55px;
}
.obj .web {
  color:#b9b9b9;
  padding-top: 5px;
  font-size: 25px;
}
.obj  .jobSmall {
  font-size:37px;
  margin-top:100px;
}
.obj .rowName {
  margin-top: 10px;
  
}
.obj .rowName .eachName {
  display:inline;
  padding: 10px 20px;
  font-size: 50px;
}
.endroll .copyright {
  position: absolute;
  left:5px;
}
.endroll .author {
  position: absolute;
  right:5px;
}


.rpg {
  text-align: center;
  background-image:  url(/img/main2.jpg);
  background-position: center ;
  background-repeat: no-repeat;
  background-size: full;
  overflow: hidden;
  z-index:4;
}


.blur {
  padding: 0;
  margin:0;
  width: 100vw;
  height: 100vh;
  top:0;
  left: 0;
  position: absolute;
  background-color: #252525b6;

}
.canvas {
  top:20vh;
  border: 2px solid black;
  position: relative;
  transform: scale(1.0);
}

#talkBox {
  height: 20px;
  color: brown;
  font-size: 45px;
  font-weight: bold;
  
}

.main404 {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.main404 .picture404 {
  width: 800px;
  height: 600px;
}

.return404 {
  position: absolute;
  display: grid;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
  top: 85%;
  left: 50%;
  text-align:center;
  font-size: 25px;
  width: 250px;
  height: 65px;
  border: 2px solid black;
  border-radius: 30px;
  background-color: rgb(243, 134, 152);
}

.return404:hover{
  position: absolute;
  box-shadow: 0px 3px black;	
  background:rgb(244, 153, 168);
  top: 85%;
}

.return404:active{
  position: absolute;
  background:rgb(243, 134, 152);
  box-shadow:none;
  top: 86%;
}

/* 視窗大小設定 */

@media screen and (max-width:947px) {
  #name .nameInputs {
  top:10vw;
  font-size: 20px;
}

.inputName {
  width: 100px;
  padding: 6px;
  font-size: 20px;
}

}

@media screen and (max-width : 800px) {
  #name .nameInputs {
    top:10vw;
    font-size: 20px;
  }
  
  .inputName {
    width: 100px;
    padding: 6px;
    font-size: 20px;
  }


  .leftArrow {
    left:10px;

  }
  .arrowImg {
    width: 50px;
    height: 50px;
  }

  .rightArrow {
    right:10px;
  }
  #chartMain {
    width: 75vw;
  }
  .graph {
    width:480px;
    height:390px;
  }
  
  .logo {
    width:500px ;
  }

  #clickToStart .flowText span {

    font-size: 25px;
  } 
  #clickToStart .madeBy {
    font-size: 14px;
  }
  #clickToStart .copyRight {
    font-size: 14px;
  }

  .modalMain {
    width: 400px;
    height: 250px;
  }
  .modalBody {
    height: 179px;
  }
  

  .setBarInline{
    margin:0;
  }

  .eachSetting {
    margin:3px 5px;

  }
  .loadStoreBar {
    width: 80vw;
  
  }
  .textTest {
    width: 400px;
  }
  .settingBar {
    top:45vh;
  }

}


@media screen and (max-width : 549px) {
  
  .main404 .picture404 {
    width: 500px;
    height: 375px;
  }
  
  #name .nameInputs {
    top:8vw;
    font-size: 18px;
  }
  
  .inputName {
    width: 50px;
    padding: 6px;
    font-size: 18px;
  }
  
  
  .chooseArea .option {
    font-size: 20px;
  }
  
  .leftArrow{
    left:8px;
  }
 .rightArrow {
    right:8px;
  }
  #chartMain {
    width: 80vw;
  }

  .graph {
    width: 350px;
    height: 284px;
  }

  .logo {
    width: 450px;
  } 
  .pageTitle {
    font-size: 50px;
  }
  .settingBar {
    top:45vh;
  }
 
  #clickToStart .flowText span {

    font-size: 23px;
  } 
  #clickToStart .madeBy {
    font-size: 12px;
  }
  #clickToStart .copyRight {
    font-size: 12px;
  }

    .settingBtn {
    right:5vw;
    }
    .settingBar {
      width:100%;
    }

    .configBtn img {
        width: 35px;
    }

    .displayArea .content {
        width: 85vw;
        font-size: 20px;
    }
    #menuBar a {

      font-size: 35px;
    }
    
.logoAnimation {
  width: 280px;
}
.textTest {
  width: 75vw;
  bottom:3vh;
}

}
@media screen and (max-width : 400px) { 

  .return404 {
    width: 185px;
    height: 48.1px;
    font-size: 18px;
  }

  .frontNameClass {
    top: 9%;
    font-size: 12px;
  }

  .backNameClass {
    font-size: 12px;
  }

  .nameInputBtnClass {
    top: 10.5%;
    font-size: 12px;
  }
  
  .graph {
    width: 180px;
    height: 146px;
  }

  .logoAnimation {
    width: 75%;
  }
  .logo {
    width:100vw ;
  }
  .pageTitle {
    font-size: 40px;
  }
  .settingBar {
    top:45vh;
  }
  .silderSet {
    width: 40px;
    font-size: 12px;
    position: relative;
    top:-5px;
  }
  
  .settingBar .hint {
      font-size: 15px;

  }
  .modalMain {
    width: 90vw;
    height: 200px;
  }
  .modalHead {
    font-size: 20px !important;
  }

  .modalBody {
    height: 129px;
  }
  .eachSetting {
    width: 300px;
    font-size:20px;
  }
  #menuBar a {

    font-size: 25px;
  }
  .textTest {
    width: 80vw;
   bottom:-1vh;
  }

}
