html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
  max-height: 100vh;
  max-height: calc(var(--vh, 1vh) * 100);
  /* height: 100vh; */
  /* Fallback for browsers that do not support Custom Properties */
  /* height: calc(var(--vh, 1vh) * 100); */
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
  background-color: #f5f5f5;
/*  overflow-y: scroll;*/
}

img {
  max-width: 100%;
  /*不使用width:100% 是因避免圖片解析度不好，隨父元素被放大時會糊掉*/
  height: auto;
}

.carousel-item-img {
  width: 100%;
  /*不使用width:100% 是因避免圖片解析度不好，隨父元素被放大時會糊掉*/
  height: 460px;
  z-index: 99;
}



/* 頁首 */
.header {
  background-color: #FFC209;
  z-index: 999;
  width: 100%;
  height: 60px;
  transition: top 1s ease;
}

.header-content-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #111111;
  color: #cbcbcb;
  margin: auto;
  height: 22px;
}

header.fixed {
  position: fixed;
  top: 0;
}

/* .carousel-content {
  padding-top: 55px;
} */

.carousel-content>.swiper-slide>.carousel-item-img {
  display: flex;
  position: relative !important;
  margin: 0 auto !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  object-fit: cover !important;
}

.activeMenuColor {
  color: #ffffff !important;
  font-weight: 400 !important;

}

/* 頁首內容 */
.header-content {
  display: flex;
  max-width: 915px;
  margin: auto;
  height: 60px;
  position: relative;
}

/* logo */
.logo {
  width: 100%;
  display: flex;
  height: 100%;
  position: absolute;
  margin: auto;  
}

.logo-img {
  display: block;
  margin: auto;
  padding: 5px;
}

/* 輸入框與語系 */
.language-input-content {
  display: flex;
  position: relative;
  justify-content: end;
  /* width: 100%; */
}

.language-input-div {
  display: flex;
  flex-direction: row;
  height: 100%;
  /* padding-left: 5px; */
  /* align-items: center; */
}

/* 輸入框 */
.input-content {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: flex-end;
  color: #ffffff;
  position: relative;
  height: 35px;
  /* width: 100%; */
  align-items: center;
}

.dev, .demo {
  display: flex;
  padding-right: 6px;
  position: relative;
  /* bottom: 2px; */
  align-items: center;
  font-size: 24px;
  /* margin: 0 0 auto; */
}

#pid {
  background: #da9c3100;
  height: 35px;
  width: 6em;
  border: 0;
  padding-right: 5px;
  border-radius: 0;
  border-bottom: 1px solid #ffffff;
  margin: 0 0 auto;
  outline: none;
  color: #ffffff;
}

#pid:focus {
  outline: none;
}

#pid:focus-visible {
  border-bottom: 1px solid #548F8D;
}

/* 語系 */
.language-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.language-span {
  right: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-span span {
  display: inline-block;
  color: black;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.language-span .lang-now {
  padding: 0 12px;
  color: #ffffff;
}

.language-span-content {
  background-color: #3f3f3f;
  border-radius: 3px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 三角形 */
.triangle {
  display: inline-block;
  border-top: 8px solid #fff;
  border-left: 5px solid rgba(241, 19, 19, 0);
  border-right: 5px solid rgba(4, 29, 250, 0);
  margin-right: 5px;
  margin-top: 4px;
}

.triangle.active {
  display: inline-block;
  border-top: 0;
  border-bottom: 8px solid #fff;
  border-left: 5px solid rgba(241, 19, 19, 0);
  border-right: 5px solid rgba(4, 29, 250, 0);
  margin-right: 5px;
  margin-top: 4px;

}

/* 語系列表 */
.lang-select {
  width: 70px;
  position: absolute;
  background-color: #f1f1f1;
  bottom: 31px;
  text-align: center;
  font-size: 20px;
  border-radius: 5px;
  color: black;
  display: none;
}

.lang-select-new {
  position: relative;
  /* right: 22px; */
  width: 20%;
  justify-content: center;
  display: flex;
  padding: 10px;
  /* padding-bottom: 10px; */
}

.lang-select span {
  display: block;
  padding: 5px 0;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.lang-select span:hover {
  background-color: #f2b51f;
}

.lang-select span:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.lang-select span:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.lang-select .border {
  border-top: 1px solid #c4c4c4;
}

/* 頁尾 */
.footer {
  display: flex;
  justify-content: end;
  background-color: #111111;
  text-align: right;
  padding: 0px 20px;
  position: fixed;
  width: 100%;
  bottom: 0px;
}

.version {
  display: flex;
  line-height: inherit;
  color: #ffffff;
  white-space: nowrap;
}

/* 遊戲內容區塊 */
main {
  display: block;
  width: 100%;
  background-color: #f5f5f5;
}

/* 遊戲列表 */
.game {
  display: block;
  text-align: center;
  margin: auto;
  max-width: 1200px;
  /* padding-top: 5px; */
}

.game-div {
  display: inline-block;
  margin: 7px 5px 7px 5px;
  max-width: 1200px;
}

.game-img {
  display: block;
  cursor: pointer;
  border-radius: 10px;
  border-width: 1px;
  width: 100%;
  height: auto;
}

/* 手機模式調整 */
@media screen and (max-width: 1920px) {
  .carousel-item-img {
    max-width: 100%;
    /*不使用width:100% 是因避免圖片解析度不好，隨父元素被放大時會糊掉*/
    height: auto;
  }
}


/* 手機模式調整 */
@media screen and (max-width: 960px) {

  /* 頁首內容 */
  .header-content {
    max-width: 630px;
  }
}

@media screen and (max-width: 600px) {
  /* 頁首 */

  .header {
    height: 70px;
  }

  .header-content {
    height: 55px;
  }

  .logo-img {
    display: block;
    margin: auto;
    height: 40px !important;
    width: auto;
  }

  .paddingleftandright {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .header-content-menu>ul>li>a {
    font-size: 13px
  }

  .header-content-menu {
    height: 15px;
  }

  .game {
    /* padding-top: 5px; */
    padding-bottom: 5px;
  }

  .game-div {
    width: 40%;
    margin: 0px 3px;
  }


  .carousel-item-img {
    height: 140px;
  }

  .footer {
    height: 35px;
    padding: 0px 10px;
    bottom: 0;
  }

  .footer-content {
    height: 35px !important;
  }

  .dev, .demo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 2px;
    font-size: 16px;
    height: inherit;
    padding-top: 4px;
    width: 25px;
    margin: 0;
    padding-right: 2px;
  }

  #pid {
    height: 30px;
    width: 77px;
    font-size: 12px;
  }

  .language-span-content {
    height: 20px;
  }

  ::placeholder {
    color: #9caaaa;
    font-size: 12px;
  }

  .nav-link {
    padding: 0 9px !important;
  }

}

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

  .nav-link {
    padding: 0 5px !important;
  }
}


@keyframes scaleDraw {

  /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
  0% {
    transform: scale(1);
  }


  50% {
    transform: scale(1.05);
  }


  100% {
    transform: scale(1);
  }
}


.game-div:hover {
  animation-name: scaleDraw;
  animation-duration: 1s;
  -webkit-animation-name: scaleDraw;
  -webkit-animation-duration: 1s;
  -moz-animation-name: scaleDraw;
  -moz-animation-duration: 1s;
  -o-animation-name: scaleDraw;
  -o-animation-duration: 1s;
  -ms-animation-name: scaleDraw;
  -ms-animation-duration: 1;
  animation-fill-mode: forwards;
}


.nav-link.notactive {
  color: #1b716e !important;
}

.empty-contaior {
  width: 20%
}

.footer-content {
  display: flex;
  align-items: center;
  height: 50px;
  background-color: #111111;
  text-align: center;
  width: 100%;
  bottom: 0px;
  position: relative;
  justify-content: space-between;
}

.paddingleftandright {
  padding-left: 9px;
  padding-right: 9px;
}

::placeholder {
  color: #9caaaa;
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100%;
}

.swiper-section {
  overflow: hidden;
}

.nav-item {
  font-size: 16px;
}

.elementor a,  .elementor a:hover {
  color: #cbcbcb;
}

.elementor-section.elementor-section-boxed > .game {
  max-width: 1140px;
}

.game-div:hover {
  transform:scale(1.1);
}

.triangle-account {
  margin-right: 20px;
  display: flex;
  align-items: center;
  border-top: 8px solid #ffffff;
  border-left: 5px solid rgba(241, 19, 19, 0);
  border-right: 5px solid rgba(4, 29, 250, 0);
  cursor: pointer;
}

.triangle-account.active {
  display: flex;
  align-items: center;
  border-top: 0;
  border-bottom: 8px solid #ffffff;
  border-left: 5px solid rgba(241, 19, 19, 0);
  border-right: 5px solid rgba(4, 29, 250, 0);
  margin-right: 20px;
}

.account-select {
  width: 125px;
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  bottom: 45px;
  left: 10px;
  text-align: center;
  font-size: 20px;
  border-radius: 5px;
  overflow: auto;
  height: 250px;
  z-index: 99;
}

.account-select span:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.account-select span {
  display: block;
  padding: 6px 0;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
  color: black;
}

.account-select span:hover {
  background-color: #f2b51f;
}

.slots-title {
  margin: 7px 0 0 0;
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

.turbo-title {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

@media screen and (max-width: 600px) {
  .slots-title {
    margin: 5px 0;
    font-size: 18px;
  }
  
  .turbo-title {
    margin: 5px 0;
    font-size: 18px;
  }

}