/* All--------------------------------------------------------------------------- */

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "微軟正黑體", Nanum Barun Gothic, sans-serif;
  background: #000;
  color: #3e3e3e;
  font-weight: 400;
  line-height: 24px;
}

img {
  max-width: 100%;
  height: auto;
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
  outline: none;
}

header {
  z-index: 999;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-button {
  display: none
}

button {
  background-color: transparent !important;
}

/* landscape----------------------------- */
.landscape {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: auto;
  background: #33313e;
  display: none;
  z-index: 9999;
}

.landscape span {
  position: absolute;
  right: 0;
  top: 50%;
  margin: 0;
  width: 100%;
  text-align: center;
  -webkit-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.landscape span>p {
  color: #ccc;
  margin: 0;
  font-size: 16px;
}

/* landscape-end--------------------- */

/* navbar---------------------------- */
.navbar-inverse .navbar-nav>.open>a,
.navbar-inverse .navbar-nav>.open>a:focus,
.navbar-inverse .navbar-nav>.open>a:hover,
.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover {
  background: none;
}

/* ANIMATED X */
.sideBtn {
  display: none;
}

/*-- section --*/
h1 {
  margin: 6% 0 2% 0;
}

h2 {
  margin: 4% 0 0 0;
}

.s0 {
  position: relative;
  width: 100vw;
  height: 120vh;
  background: url(../images/knossos_bg.jpg) no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.s1 {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url(../images/knossos_bg2.jpg) no-repeat center center;
  background-size: cover;
  overflow: hidden;
  text-align: center;
}

.s0,
.s1 {
  background-size: cover;
}

.role2 {
  width: 944px;
  height: 1833px;
  margin-top: -30%;
  margin-left: -20%;
  background: url(../images/knossos_left2.png)no-repeat center center;
}

.role3 {
  margin-top: 1%;
  margin-left: -14%;
  width: 1086px;
  height: 1490px;
  background: url(../images/knossos_left.png) no-repeat 0 0;
  -webkit-transition-duration: 1s;
  transition-duration: 1s;
}

.role4 {
  margin-top: -14%;
  margin-left: 80%;
  width: 769px;
  height: 1814px;
  background: url(../images/knossos_right2.png) no-repeat center center;
  -webkit-transition-duration: 1.3s;
  transition-duration: 1.3s;
  -webkit-transition-delay: 0.8s;
  transition-delay: 0.8s;
}

.role4b {
  margin-top: 6%;
  margin-left: 54%;
  width: 1346px;
  height: 1391px;
  background: url(../images/knossos_right.png) no-repeat 0 0;
}

.role2,
.role3,
.role4,
.role4b {
  background-size: contain;
}

.logo {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  z-index: 0;
  text-align: center;
}

.list4 {
  display: flex;
  justify-content: center;
  margin-bottom: 10%;
}

.list4 div{
  background-size: contain !important;
}

.list4 div:hover img {
  opacity: 0;
}

/*-- section end -- */

#footer {
  position: relative;
  z-index: 2;
  margin: auto;
  margin-top: -4%;
}

.copyright {
  text-align: center;
}

/* footer-end */

@media (max-width: 1440px) {

  .role1 {
    margin-left: -12%;
  }

  .content>div {
    font-size: .1rem;
    line-height: 0.2rem;
  }

}

@media (max-width: 1024px) {

  /* sidebar */
  .sideBtn {
    position: fixed;
    right: 5px;
    bottom: 10vh;
    z-index: 999;
    display: block;
  }

  .sideBtn ul {
    margin: 0;
    padding: 0;
  }

  .sideBtn ul>li {
    display: block;
  }

  .sideBtn ul>li>a {
    display: inline-block;
    background-color: #00ab38;
    width: 100px;
    height: 50px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    line-height: 50px;
    margin: 4px;
    opacity: .85;
    border-radius: 7px;
    border: 2px solid #45ff82;
  }

  .role2 {
    margin-left: -45%;
  }

  .role3 {
    margin-left: -30%;
  }

  .role4b {
    margin-left: 40%;
  }

  .logo {
    top: auto;
    bottom: 40%;
  }

  .s1 {
    height: auto;
  }

  .list4 {
    flex-wrap: wrap;
  }

  h4,
  .content>div,
  .map>div,
  .boss,
  .monster,
  .npc {
    font-size: .16rem;
    line-height: 0.2rem;
  }

  .map>div {
    width: 100%;
  }

  .boss,
  .monster,
  .npc {
    width: 60%;
  }

  #boss2 .content2>div:nth-of-type(3) {
    width: 50vw;
  }

  #footer {
    margin-top: -8%;
  }

}

@media (min-width: 2560px) {

  .role2 {
    margin-top: -10%;
  }

  .role3 {
    margin-left: 0%;
  }

  .role4b {
    margin-left: 50%;
  }
}

@media (max-width: 768px) {

  .role2 {
    margin-left: -60%;
  }

  .role3 {
    margin-left: -50%;
  }

  .role4 {
    margin-left: 40%;
  }

  .role4b {
    margin-left: 20%;
  }

  h4,
  .content>div,
  .map>div,
  .boss,
  .monster,
  .npc {
    font-size: .2rem;
    line-height: 0.24rem;
  }

}

@media (max-width: 480px) {
  .logo {
    left: auto;
    top: 16%;
    bottom: auto;
    transform: none;
  }

  .role2,
  .role3,
  .role4 {
    width: 120vw;
    height: 100vh;
  }

  .role3 {
    margin-left: -30%;
    margin-top: 100%;
  }

  .role4b {
    width: 160vw;
    height: 100vh;
    margin-left: 20%;
    margin-top: 20%;
  }

  h4, .content>div, .map>div, .boss, .monster, .npc {
    font-size: .4rem;
    line-height: 0.6rem;
  }

  #footer {
    margin-top: -20%;
  }
}

/* 手機橫向 */
/* orientation: landscape and max-device-width: 850px */
@media only screen and (orientation: landscape) and (max-device-width: 850px) {
  .landscape {
    display: block
  }
}

/* media-end */