@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300;500&display=swap');
* {
  font-size: 13px;
  color: #fff;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
body, #contents{
  font-family: 'Kiwi Maru', serif !important;
  font-size: 13px;
  color: #fff;
  margin: 0;
  padding: 0;
  background-color: #0A1029;
}
img, #contents img{
  vertical-align:top;
}
.hidden {
  display: none !important;
}
.inactive{
  opacity: 0.5;
  pointer-events: none;
}

#contents{
  height: 100%;
}

.round-btnA,
.round-btnB{
  display: grid;
  place-items: center;
  align-content: center;
  height: 3.5em;
  border-radius: 9999px;
  overflow-wrap: anywhere;
  position: relative;
  font-weight: 500;
  font-size: 16px;
}
.round-btnA{
  background: #4B4F61;
  border: none;
}
.round-btnB{
  background: rgba(0,0,0,0);
  border: 1px solid #fff;
  top: 0%;
  background-image: url('./assets/ui/next-icon.png');
  background-repeat: no-repeat;
  background-size: 2em;
  background-position: right 20px top 50%;
}
.round-btnA>span,
.round-btnB>span{
  margin: 0 20px;
  font-size: 1.5em;
}
.story-show-btn {
  width: 80vw;
  height: 10vh;
  position: absolute;
  left: 10vw;
  right: 10vw;
  bottom: 10vh;
}
.story-show-btn.ending{
  bottom: 0;
  z-index: 901;
}
.story-show-btn.ending span{
  height: 1em;
  font-size: 0.7em;
}
.next-btn span{
  font-size: 1em;
}


#markers{
  width: 100vw;
  height: 11vh;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3vw;
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: self-end;
}
#markers>img{
  max-height: 100%;
  max-width: 18%;
  border-radius: 50%;
}


#first-header,
#ending-footer{
  width: 100%;
  height: 8vh;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  padding: 1vh 1vw;
  justify-content: center;
}
#first-header{
  position: absolute;
  top: 0;
}
#first-header .returnlink,
#ending-footer .returnlink{
  background-image: url(./assets/ui/link-icon.png);
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
  z-index: 150;
}
#first-header .returnlink{
  width: 60vw;
}
#ending-footer .returnlink{
  width: 100%;
  text-align: center;
}
#first-header .returnlink a,
#ending-footer .returnlink a{
  font-weight: 500;
  display: block;
}
#first-header .returnlink a{
  padding-left: 0;
}
#lang{
  width: 40vw;
  text-align: end;
}
#lang span{
  margin: 0 0.4em;
  color: rgba(255, 255, 255, 0.5);
}
#lang span.selected {
  color: #fff;
}

#ending-footer{
  position: absolute;
  bottom: 0;
  background-color: #0A1029;
}

#first-panel,
#guide-panel,
#story-panel,
#ending-panel {
  position: absolute;
  z-index: 100;
  background-color: rgba(0,0,0,0.8);
  border-radius: 8px;
  text-align: center;
  left: 3vw;
  right: 3vw;
}
#first-panel {
  top: 8vh;
  bottom: 2vh;
}
#story-panel,
#guide-panel {
  top: 2vh;
  bottom: 11vh;
}
#ending-panel{
  top: 2vh;
  bottom: 10vh;
}

.s-top
{
  height: 15%;
  padding: 0 2em;
}
#guide-panel .s-top{
  height: 0;
  padding: 0 ;
}
.s-top .s-title{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-bottom: solid 1px #fff;
  font-weight: 500;
  font-size: 16px;
}
.s-top .s-title>img{
  height: 60%;
}
.s-middle{
  height: 73%;
  padding: 2em 1em;
}
#guide-panel .s-middle{
  height: 88%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#ending-panel .s-middle{
  height: 85%;
  background-image: url(./assets/ui/ending.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}
.s-middle .s-text{
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}
.s-middle .s-text::-webkit-scrollbar {
  width: 12px;
}
.s-middle .s-text::-webkit-scrollbar-track {
  background-color: #0303036d;
  border-radius: 100px;
}
.s-middle .s-text::-webkit-scrollbar-thumb {
  background-color: #858585;
  border-radius: 100px;
}

.s-middle>p{
  line-height: 1.9em;
}
.s-text>p{
  line-height: 1.9em;
  margin: 0 0 1.9em 0;
}
.s-text>img{
  width: 80%;
}
.s-middle>img{
  margin: 0.5em;
  width: 60%;
}
#guide-panel .s-middle img{
  width: 90%;
}
.s-bottom{
  height: 12%;
  padding: 0 8%;
}

#first-panel .s-middle{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

#guide{
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-weight: 500;
}
#guide>p{
  position: absolute;
  top: 10vh;
  width: 100%;
  text-align: center;
}
#guide-marker{
  position: absolute;
  width: 70vw;
  height: 70vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  display: flex;
  justify-content: center;
  align-items: center;
}
#guide-marker img{
  width: 70vw;
  opacity: 0.5;
}



.anim-popup {
  animation: popup 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes popup {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.0);
  }
  80%, 100% {
    opacity: 1;
  }
}

.anim-fadein{
  animation: fadein 0.2s forwards;
  opacity:0;
}  
@keyframes fadein{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*add style 2023-10-22*/
body #l-header {
	display: none!important;
}
body .l-footer {
	display: none!important;
}
/*add style 2023-10-22*/