html {
  height: 100%;
  font-family: "Noto Sans TC", sans-serif !important;
  background-color: rgb(245, 241, 230) !important;
}

body {
  height: 100%;
  font-family: "Noto Sans TC", sans-serif !important;
  background-color: rgb(245, 241, 230) !important;
  overflow-y: auto;
  overflow-x: auto;

  min-width: 1080px;
  min-height: 720px;
}

/* +++ [Start] Universal CSS +++ */
.L1-display-panel {
  width: 100%;
  height: 100%;
  min-width: 1000px !important;
  min-height: 600px !important;
  /*border: 10px black solid;*/
  position: relative;
}

.no-display {
  display: none;
}

/*@media screen and (orientation: portrait) {*/

/*    html {*/
/*        transform: rotate(90deg);*/
/*    }*/
/*}*/

/* --- [ End ] Universal CSS --- */

/* +++ [Start] Instruction CSS +++ */

/* --- [ End ] Instruction CSS --- */
#instruction-panel {
  display: none;
  background-color: rgba(226, 214, 197, 60%);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 50;

  min-width: 1080px;
  min-height: 720px;
  justify-content: center;
  align-items: center;
}

#instruction-panel.show {
  display: flex;
}

#text-frame {
  background-image: url("../img/general/00_home_frame.svg");
  background-repeat: no-repeat;
  position: relative;
  height: 25em;
  aspect-ratio: 1126/460;
  min-height: 200px;
  padding: 3em 5em;
}

#text-frame h1 {
  font-weight: bold;
  width: 84%;
  font-size: 3em;
}

#text-frame p {
  margin-top: 5%;
  height: 60%;
  font-size: 2em;
  line-height: 1.8em;
  letter-spacing: 1px;
  overflow-y: hidden;
}

#view1-credits-btn {
  background-image: url("../img/general/00_Logo.svg");
  display: block;
  background-repeat: no-repeat;
  aspect-ratio: 1;
  position: absolute;
  bottom: 7%;
  right: 3%;
  height: 15%;
  border: none;
  cursor: pointer;
}

#view2 {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

#view2.show {
  display: flex;
}

#view2-guide-frame {
  position: relative;
  background-image: url("../img/general/00_animation_1.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-bottom: 5%;
  width: 85%;
  aspect-ratio: 1615/830;
  max-height: 90%;
}

#view2-left-arrow {
  display: none;
  background-image: url("../img/general/00_page_1.svg");
  background-repeat: no-repeat;
  position: absolute;
  height: 7%;
  aspect-ratio: 1;
  bottom: 3%;
  left: 42%;
  cursor: pointer;
}

#view2-left-arrow.show {
  display: block;
}

#view2-left-arrow.disable {
  opacity: 50%;
  cursor: default;
}

#view2-right-arrow {
  display: none;
  background-image: url("../img/general/00_page_2.svg");
  background-repeat: no-repeat;
  position: absolute;
  height: 7%;
  aspect-ratio: 1;
  bottom: 3%;
  right: 42%;
  cursor: pointer;
}

#view2-right-arrow.show {
  display: block;
}

#view2-right-arrow.disable {
  opacity: 50%;
  cursor: default;
}

#view2-cross-btn {
  background-image: url("../img/general/00_close.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: absolute;
  aspect-ratio: 1;
  height: 5%;
  top: 5%;
  right: 5%;
  cursor: pointer;
}

#view2-cross-btn:hover {
  background-image: url("../img/general/00_close_active.png");
}

.instruct-elem {
  display: none;
}

.instruct-elem.show {
  display: block;
}
.view2-guide-img {
  border-radius: 15px;
  position: absolute;
  top: 12%;
  left: 2%;
  width: 96%;
  height: 84%;
}

/* +++ [Start] Page 2 CSS +++ */
#--page-type-2 {
  display: none;
}

#--page-type-2.show {
  display: block;
}

#page-2-display {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  color: black;
  font-weight: bold;
  font-size: 32px;
}
#page-2-display.danger {
  color: red;
}

#page-2-msg-box {
  /*border: 1px black solid;*/
  position: absolute;
  top: 13%;
  left: 10%;
  width: 80%;
  display: flex;
  opacity: 1;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: hidden;
}

#page-2-msg-box.hidden {
  opacity: 0;
  transition: ease 0.3s;
}

#page-2-msg-box > #display-text {
  width: fit-content;
  max-width: 100%;
  background-color: #665036;
  font-size: 26px;
  color: white;
  font-weight: bold;
  padding: 2px 20px;
  margin: 0;
  border-radius: 20px;
  white-space: nowrap;
}

#page-2-game-panel {
  /*border: 1px black solid;*/
  position: absolute;
  left: 13%;
  top: 20%;
  width: 74%;
  height: 75%;
}

#page-2-canvas {
  width: 100%;
  height: 100%;
}

/* Page 2 Button */

#page-2-start-btn {
  background-image: url("../img/general/00_go.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /*border: 1px black solid;*/
  position: absolute;
  display: none;
  left: 1%;
  top: 40%;
  height: 15%;
  aspect-ratio: 1;
  cursor: pointer;
}

#page-2-start-btn.show {
  display: block;
}

#page-2-top-left-btn {
  background-image: url("../img/general/00_tutorial.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /*border: 1px black solid;*/
  position: absolute;
  left: 20px;
  top: 20px;
  height: 10%;
  aspect-ratio: 1;
  cursor: pointer;
}

#page-2-top-right-btn {
  background-image: url("../img/general/00_fullscreen.png");
  background-size: 50% 50%;
  background-position: center;
  background-repeat: no-repeat;
  /*border: 1px black solid;*/
  position: absolute;
  right: 20px;
  top: 20px;
  height: 10%;
  aspect-ratio: 1;
  cursor: pointer;
}

#page-2-top-right-btn.windowed {
  background-image: url("../img/general/00_fullscreen_2.svg");
  background-repeat: no-repeat;
  background-size: 50% 50%;
  cursor: pointer;
}

#page-2-top-right-btn.floating {
  z-index: 60;
}

#page-2-bottom-left-btn {
  background-image: url("../img/general/00_undo.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /*border: 1px black solid;*/
  position: absolute;
  left: 20px;
  bottom: 20px;
  height: 10%;
  aspect-ratio: 1;
  cursor: pointer;
}

#page-2-bottom-left-btn.disable {
  opacity: 0.5;
  cursor: not-allowed;
}

#page-2-bottom-right-btn {
  background-image: url("../img/general/00_restart.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /*border: 1px black solid;*/
  position: absolute;
  right: 20px;
  bottom: 20px;
  height: 10%;
  aspect-ratio: 1;
  cursor: pointer;
}

#page-2-bottom-right-btn.home {
  background-image: url("../img/general/00_home.svg");
}

/* --- [ End ] Page 2 CSS --- */

/* +++ [Start] Member panel CSS +++ */

#--cover-panel {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(66, 53, 42, 90%);
  justify-content: center;
}

#--cover-panel.show {
  display: block;
}

#--cover-panel .middle {
  width: 100%;
  height: 100%;
  display: inherit;
  justify-content: inherit;
}

#--cover-panel .middle.hidden {
  display: none;
}

#--cover-panel .close {
  position: absolute;
  top: 7%;
  right: 5%;
  background-image: url("../img/general/00_close.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 4%;
  aspect-ratio: 1;
  cursor: pointer;
  z-index: 10;
}

#--cover-panel .close:hover {
  background-image: url("../img/general/00_close_active.png");
}

#credits #member-list {
  color: white;
  position: absolute;
  top: 5%;
  left: 10vw;
  width: 80vw;
  min-width: 800px;
  height: 95%;
  text-align: center;
  overflow-y: hidden;
}

#credits #member-list::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

#credits #member-list::-webkit-scrollbar-button {
  display: none !important;
}

#credits #member-list::-webkit-scrollbar-track {
  display: none !important;
}

#credits #member-list::-webkit-scrollbar-thumb {
  display: none !important;
}

#credits h1 {
  letter-spacing: 10px;
  font-size: 54px;
}

#credits .split-content:nth-last-child(2) {
  margin-bottom: 26px;
}

#credits .member-content {
  height: 60%;
  margin-top: 7%;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#credits .flex-row {
  margin-bottom: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  height: fit-content;
}

#credits .flex-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 33%;
  height: fit-content;
}
#credits .flex-items h5 {
  font-size: 30px;
  letter-spacing: 2px;
}

#credits .flex-items p {
  font-size: 26px;
}

#credits .split-content {
  width: 100%;
  align-items: stretch;
  position: relative;
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
}

#credits .copyright {
  height: min-content;
  width: 100%;
  font-size: 22px;
}

#credits .copyright .suggest {
  margin-bottom: 0;
  margin-top: 0;
}

/* media mode */
#media-panel {
  background-image: url("../img/general/00_CTbackground.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 80%;
  aspect-ratio: 7/4;
  position: relative;
  top: 10%;
}

#media-panel video {
  position: absolute;
  top: 9%;
  left: 8%;
  width: 82%;
  aspect-ratio: 1.77;
}

/* --- [ End ] Member panel CSS --- */

/* +++ [Start] Hint CSS +++ */

/* --- [ End ] Hint CSS --- */
