#map {
  background: url(../image/royal_mbg1.jpg) no-repeat center center;
}

#map2 {
  background: url(../image/royal_mbg2.jpg) no-repeat center center;
}

#map3 {
  background: url(../image/royal_mbg3.jpg) no-repeat center center;
}

#map4 {
  background: url(../image/royal_mbg4.jpg) no-repeat center center;
}

#map .map p {
  color: white;
}

#map .map h4 {
  color: #ffd52b;
}

#map4 .map>div:nth-of-type(3) {
  margin-bottom: 4%;
}

#job,
#job2 {
  background: url(../image/royal_bg3.jpg) no-repeat center center;
  position: relative;
  overflow: hidden;
}

#fight {
  background: url(../image/royal_bg4.jpg) no-repeat center center;
  position: relative;
  overflow: hidden;
}

#story {
  background: url(../image/royal_bg5.jpg) no-repeat center center;
  text-align: center;
}

#boss,
#boss2,
#boss3 {
  background: url(../image/royal_bg6.jpg) no-repeat center center;
}

#monster {
  background: url(../image/royal_bg7.jpg) no-repeat center center;
}

#npc,
#npc2,
#npc3 {
  background: url(../image/royal_bg8.jpg) no-repeat center center;
  position: relative;
  overflow: hidden;
}

#story,
#map,
#map2,
#map3,
#map4,
#boss,
#boss2,
#boss3,
#monster,
#npc,
#npc2,
#npc3,
#fight,
#job,
#job2 {
  background-size: cover !important;
  padding-top: 90px;
  padding-bottom: 10%;
  min-height: 100vh;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.introduce-menu {
  position: fixed;
  bottom: 10%;
  left: 6%;
  z-index: 999;
}

.introduce-menu::before {
  content: "";
  background: url(https://landing.mangot5.com/template/la/event/nav/images/top.png) transparent;
  width: 138px;
  height: 31px;
}

.introduce-menu::after {
  content: "";
  background: url(https://landing.mangot5.com/template/la/event/nav/images/bottom.png) transparent;
  width: 138px;
  height: 31px;
}

.introduce-menu .nav {
  background-color: #fff;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
  padding: 10% 0 10% 50px;
}

.introduce-menu .nav-item {
  position: relative;
  display: list-item;
  list-style: disc;
  color: #848484;
  line-height: 40px;
}

.introduce-menu .nav li span,
.introduce-menu .nav li a {
  display: inline-block;
  padding: 0;
  color: #848484;
}

.introduce-menu .nav>li>span {
  width: 25px;
  position: absolute;
  left: -46%;
  border-right: solid 1px black;
}

.introduce-menu .nav .nav-item.active>a,
.introduce-menu .nav .nav-item a:hover {
  color: black;
  background: none;
}

.introduce-menu .nav-item.active::marker {
  color: #455ecd;
}

.introduce-menu .nav .nav-item.active>span {
  border-right-color: #455ecd;
  color: #455ecd;
}

.introduce-btn {
  position: fixed;
  z-index: 999;
  top: 20%;
  right: 10px;
  width: 60px;
  height: 60px;
  display: none;
}

.introduce-btn a {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, .7);
  text-indent: -10000em;
  transition: .6s all;
}

.introduce-btn a:before,
.introduce-btn a:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  overflow: hidden;
  background: #fff;
  content: "";
}

.introduce-btn a.active {
  -webkit-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
}

.introduce-btn a:before {
  width: 25px;
  height: 2px;
}

.introduce-btn a:after {
  width: 2px;
  height: 25px;
}

.content {
  position: relative;
  padding: 1% 0 10% 0;
}

.content>div {
  position: absolute;
  color: white;
  top: 20%;
  max-width: 420px;
  text-align: center;
  font-size: 0.08rem;
  line-height: 0.12rem;
  left: 50%;
  transform: translateX(-50%);
}

.content2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.map h4,
.job {
  margin: 0 0 4% 0;
}

.map {
  max-width: 1014px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.map .pic-modal {
  width: 100%;
  position: relative;
}

.map>div {
  width: 48%;
  margin-bottom: 6%;
}

#monster h2 span:first-of-type,
#npc h2 span:first-of-type,
#npc2 h2 span:first-of-type,
#npc3 h2 span:first-of-type,
#boss h2 span:first-of-type,
#boss2 h2 span:first-of-type,
#boss3 h2 span:first-of-type,
#job h2 span:first-of-type,
#job2 h2 span:first-of-type {
  background: black;
}

#monster h2 span:last-of-type,
#npc h2 span:last-of-type,
#npc2 h2 span:last-of-type,
#npc3 h2 span:last-of-type,
#boss h2 span:last-of-type,
#boss2 h2 span:last-of-type,
#boss3 h2 span:last-of-type,
#job h2 span:last-of-type,
#job2 h2 span:last-of-type {
  color: black;
  border: solid 1px black;
}

.boss,
.monster,
.npc {
  width: 20%;
}

.fight,
.job {
  width: 80%;
  z-index: 1;
}

.job p {
  width: 40%;
  display: inline-block;
}

#job .job:first-of-type,
#job2 .job:first-of-type {
  margin-bottom: 2%;
}

#job .job:first-of-type h6,
#job2 .job:first-of-type h6 {
  border: none;
  margin-top: 0;
}

.twotype {
  display: inline-block;
}

.twotype .nav {
  display: flex;
}

.twotype .nav a {
  padding: 0;
}

.yticon {
  display: inline-block;
  max-width: 600px;
  text-align: center;
}

.yticon button {
  position: relative;
  border: none;
  margin: 0 8px 10px 0;
  padding: 0;
  border: solid 1px transparent;
}

.yticon button>div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.yticon button:hover {
  border: solid 1px red;
}

.yticon button:hover>div {
  background: url(../image/royal_v4.png) no-repeat center center;
  background-size: contain;
}

.yticon button:hover>div img,
.twotype .nav a:hover img {
  opacity: 0;
}

.monster,
.npc {
  margin: 0 1%;
}

#monster .content2 {
  justify-content: center;
  align-items: center;
}

#npc .content2 {
  justify-content: center;
}

#monster .content2 h2 span,
#npc .content2 h2 span,
#job .content2 h2 span,
#job2 .content2 h2 span {
  margin-bottom: 6px;
}

#monster .content2:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.npc,
.fight img {
  margin-top: 6%;
}

/* popup */
.modal-dialog {
  width: 100%;
  max-width: 1400px;
  position: relative;
  margin: calc(100vh / 3) auto;
}

.modal-dialog .modal-body {
  padding: 0;
}

.look {
  position: absolute;
  right: 2%;
  bottom: 4%;
  cursor: pointer;
  opacity: 0.5;
}

.look:hover {
  opacity: 1;
}

@media (max-width: 2560px) and (min-width: 2000px) {

  .fight img {
    display: block;
  }

  .content>div {
    position: absolute;
    color: white;
    top: 12%;
    max-width: 420px;
    text-align: center;
    font-size: 0.06rem;
    line-height: 0.12rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1440px) {

  .content>div {
    font-size: .1rem;
    line-height: 0.2rem;
  }
}

@media (max-width: 1024px) {

  .boss,
  .monster,
  .npc {
    width: 60%;
  }

  h4,
  .content>div,
  .map>div,
  .boss,
  .monster,
  .npc {
    font-size: .16rem;
    line-height: 0.2rem;
  }

  .map {
    margin-bottom: 20%;
  }
}

@media (max-width: 768px) {

  .introduce-menu .nav-item {
    font-size: 20px;
  }

  .introduce-menu::before,
  .introduce-menu::after {
    width: 172px;
    height: 40px;
    background-size: cover;
  }

  .introduce-menu .nav>li>span {
    width: 29px;
  }

  .job p {
    width: 100%;
    display: inline-block;
    background-color: #ffffffc2;
    padding: 0 1%;
  }

  .map,
  .npc {
    margin-bottom: 40%;
  }

  h4,
  .content>div,
  .map>div,
  .boss,
  .monster,
  .npc {
    font-size: .2rem;
    line-height: 0.24rem;
  }
}

@media (max-width: 480px) {

  #story,
  #map,
  #map2,
  #map3,
  #map4,
  #boss,
  #boss2,
  #monster,
  #npc,
  #job {
    background-size: cover !important;
    padding-top: 110px;
    padding-bottom: 20%;
  }

  .introduce-btn {
    display: block;
  }

  .content {
    margin: 4vh 0 10% 0;
  }

  .content img {
    display: none;
  }

  .content>div {
    position: inherit;
    padding: 4vh 4vw 4vh 4vw;
    background-color: #473939ed;
  }

  h4,
  .content>div,
  .map>div,
  .boss,
  .monster,
  .npc {
    font-size: .4rem;
    line-height: 0.6rem;
  }

  .introduce-menu {
    top: 26%;
    bottom: auto;
    left: auto;
    right: 2%;
  }

  .introduce-menu::before,
  .introduce-menu::after {
    display: none;
  }

  .introduce-menu .nav {
    background-color: #000000b0;
    border: none;
  }

  .introduce-menu .nav-item {
    line-height: 30px;
    font-size: 14px;
  }

  .introduce-menu .nav>li>span {
    left: -10vw;
    border-right: solid 1px #707172;
  }

  .introduce-menu .nav .nav-item.active>a {
    color: white;
  }

  .map>div {
    width: 100%;
    padding: 0 2%;
  }

  .twotype {
    margin-top: 4%;
  }

  .fight,
  .job,
  .boss,
  .monster,
  .npc {
    width: 96%;
    z-index: 1;
  }
}

@media (max-width: 300px) {

  .introduce-menu {
    top: 30%;
    bottom: auto;
    left: auto;
    right: 2%;
  }

  .introduce-menu .nav>li>span {
    left: -15.6vw;
  }
}