/* ----------------------------------------------
    frame
------------------------------------------------*/
nav {
    /*! max-width: 1920px; */
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    width: 100%;
    height: 53px;
    padding: 0;

/*    background-color: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);*/

background: url(https://www.bwt.com.tw/public/Img/header/top_06.gif) bottom repeat;


    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav .menu-top {
    margin: 0 auto;
    /*! max-width: 1024px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    flex-wrap: nowrap;
}

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


    nav .menu-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

}



/*-----------------------------------------------
    icon
-----------------------------------------------*/

.menu-icon {
    position: absolute;
    left: 0;
    top: 0;
}

.menu-icon a {
    display: flex;
}

.game-name {
    font-size: 1.1rem;

    display: flex;
    flex-direction: column;
    margin: -2% 10px 0;
}

.game-name span {
    margin: 1em 0 -0.5em 0;
    font-size: .7rem;
    color: #555;
}

.menu-icon img {
    /*! width: 5em; */
    /*! height: 5em; */
}




/*-----------------------------------------------
    list
-----------------------------------------------*/
.menu-list  {
    position:absolute;
    right: 0;
    top: 0;
}
.menu-list ul {
    display: flex;
    justify-content: end;
}


.menu-list ul li a {
    padding: 0 1em;
    height: 4rem;
    line-height: 4rem;
    color: #000;
    /*! font-size: var(--font-size); */
    text-align: center;
    letter-spacing: .03em;
    display: inline-block;
}


.menu-list ul>li>a:hover {
    color: #dc3545;
}

@media screen and (max-width:768px) {
    .menu-list {
        position: absolute;
        top: -100vh;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 100vh;
        background: rgba(250, 250, 250, 0.9);

    }

    .menu-list ul {
        z-index: 1;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .menu-list ul li a {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
    }

    .menu-list ul li:nth-child(1) a {
        border-top: 0px solid #555;
    }

    .menu-list ul li a:hover {
        width: 100%;
        color: #dc3545;

        text-align: center;
    }

    /*! open & close */
    .menu-list-open {
        top: 0;
        transition: all .5s ease;
    }

    .menu-list-close {
        top: -100vh;
        transition: all .8s ease;
    }


}



/*-----------------------------------------------
    menu-btn - m
-----------------------------------------------*/
.menu-btn {
    display: none;
}

@media screen and (max-width:768px) {
    .menu-btn {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 99;
        width: 40px;
        height: 40px;
        cursor: pointer;
        border: 0;
        transition: all .5s ease-in-out;
        background: transparent;
        align-items: center;
        justify-content: center;
    }

    .menu-btn_burger {
        position: relative;
        width: 22px;
        height: 3px;
        border-radius: 5px;
        transition: all .5s ease-in-out;
        background: #000;
        box-shadow: 0 2px 5px rgba(255, 101, 47, .2);
    }

    .menu-btn_burger::before,
    .menu-btn_burger::after {
        position: absolute;
        left: 0;
        width: 22px;
        height: 3px;
        border-radius: 5px;
        content: '';
        transition: all .5s ease-in-out;
        background: #000;
        box-shadow: 0 2px 5px rgba(255, 101, 47, .2);
    }

    .menu-btn_burger::before {
        transform: translateY(-7px);
    }

    .menu-btn_burger::after {
        transform: translateY(7px);
    }

    /* ANIMATION */
    .menu-btn.open .menu-btn_burger {
        transform: translateX(-20px);
        background: transparent;
        box-shadow: none;
    }

    .menu-btn.open .menu-btn_burger::before {
        transform: rotate(45deg) translate(15px, -15px);
    }

    .menu-btn.open .menu-btn_burger::after {
        transform: rotate(-45deg) translate(15px, 15px);
    }
}




/*-----------------------------------------------
    social-link
-----------------------------------------------*/

.social-link {
  position: absolute;
  left: 10%;
  top: 10%;
  transform: scale(0.4);
  z-index: 10;
}

.social-link ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-link ul li {
  margin: 0 2%;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.social-link ul li:hover {
  transform: scale(1.3);
}

.social-link ul li a {
  width: 100px;
  height: 100px;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  background-image: url(../images/social-link.png);
  background-size: 100px auto;
  background-repeat: no-repeat;
}

.btn-fb       { background-position: center   0px; }
.btn-yt       { background-position: center -200px; }
.btn-ig       { background-position: center -400px; }
.btn-home     { background-position: center -600px; }
.btn-x        { background-position: center -800px; }
.btn-threads  { background-position: center -1000px; }
.btn-baha     { background-position: center -1200px; }
.btn-qoo      { background-position: center -1400px; }
.btn-money    { background-position: center -1600px; }

@media screen and (max-width: 1440px) {
  .social-link {
    transform: scale(0.3);
  }
}

@media screen and (max-width: 768px) {
  .social-link ul {
    flex-direction: column;
  }

  .social-link ul li {
    margin: 10% 0;
  }
}



/*-----------------------------------------------
    download
-----------------------------------------------*/
.download {
  position: absolute;
  /*bottom: 5vh;*/
  top:80vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.download ul {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.download li {
  width: 9vw;
  max-width: 190px;
  aspect-ratio: 3 / 1;
  margin: 0 0.2vw;
  border: 1px solid #d2d2d229;
  border-radius: 6px;
  transform: scale(1);
  transition: transform 0.3s ease, margin 0.3s ease;
}

.download li:hover {
  transform: scale(1.1);
  margin: 0 0.4vw;
}

.download li a {
  display: block;
  height: 100%;
  border-radius: 5px;
  text-align: center;
  line-height: 80px;
  background-color: #000;
  background-image: url(../images/download.jpg);
  background-repeat: no-repeat;
  background-size: 600%;
  transition: all 0.3s ease;
  text-indent: -9999px;
}

.and a     { background-position: -0.5% center; }
.ios a     { background-position: 19% center; }
.apk a     { background-position: 39% center; }
.pc_ a     { background-position: 59% center; }

/* 跑光效果 */
.run-effect {
  position: relative;
  overflow: hidden;
}

.run-effect::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -200%;
  width: 50%;
  height: 120%;
  background: #fff;
  opacity: 0.2;
  transform: skewX(40deg);
  animation: run 3.5s ease infinite both;
  filter: brightness(0.5);
  pointer-events: none;
}

.run-delay1::after { animation-delay: 0s; }
.run-delay2::after { animation-delay: 0.2s; }
.run-delay3::after { animation-delay: 0.4s; }

@keyframes run {
  0%   { right: -200%; filter: brightness(1); }
  50%  { right: 300%;  filter: brightness(1.5); }
  100% { right: -200%; filter: brightness(1); }
}

@media screen and (min-width:1921px) {
.download {
  bottom: 5vh;
  top:initial;
}
}

@media screen and (max-width: 1400px) {
    .download {
  bottom: 5vh;
  top:initial;
}
  .download li {
    width: 12vw;
    margin: 0.2vw;
  }
}

@media screen and (max-width: 768px) {
  .download li {
    width: 29vw;
    margin: 0.6vw;
  }

  .pc_ {
    display: none;
  }
}




/*-----------------------------------------------
    menu-bottom
-----------------------------------------------*/

.menu-bottom {
    position: absolute;
    right: 15vw;
    bottom: 23%;
    width: 15%;
    z-index: 10;
    border-radius: 5px;
}

.menu-bottom ul li:after {
    content: '';
    background: rgb(162, 28, 30);
    width: 4px;
    height: 4px;
    position: absolute;
    top: 37%;
    right: -13px;

}

.menu-bottom ul {
    display: flex;
    width: 98%;
    padding: 0;
    margin: auto;
    flex-direction: column;
    height: 100%;
}

.menu-bottom ul li {
    padding: 0;
    list-style: none;
    flex: 1;
}

.menu-bottom a {
    font-size: 0.7rem;
    width: 100%;
    height: 100%;
    text-align: right;
    color: #555;
    line-height: 25px;
    font-weight: 500;
    letter-spacing: 0.02rem;
    transition: all .3s ease;
}

.menu-bottom a:hover {
    color: rgba(0, 139, 193, 0.6);
    transition: all .3s ease;

}

.menu-bottom a:before {
    content: '';
    width: 0%;
    height: 1px;
    background: rgba(0, 139, 193, 0.3);
    position: absolute;
    bottom: 0;
    transition: all .5s ease;
    margin: auto;
    right: 0;
}


.menu-bottom a:hover:before {
    width: 45%;
    transition: all .5s ease;
    right: 0;
    bottom: 0;
}

@media screen and (max-width:1600px) {
    .menu-bottom {
        transform: scale(0.75) translate(7%, 0%);
        width: 25%;
    }
}


@media screen and (max-width:768px) {
    .menu-bottom ul li:after {
        content: '';
        background: rgb(162, 28, 30);
        width: 5px;
        height: 5px;
        position: absolute;
        top: 40%;
        left: -11px;

    }

    .menu-bottom ul {
        flex-direction: initial;
    }

    .menu-bottom ul li:nth-child(1) {
        flex: 0.9;
    }

    .menu-bottom ul li:nth-child(2) {
        flex: 1.5;
    }

    .menu-bottom ul li:nth-child(3) {
        flex: 1.3;
    }

    .menu-bottom {
        transform: scale(0.9) translate(0%, 0%);
        top: 2%;
        right: 0;
        left: 5%;
        margin: auto;
        width: 95%;
        bottom: inherit;
    }

    .menu-bottom a {

        text-align: left;

        padding: 1px 0;
    }

    .menu-bottom a:hover:before {
        content: '';
        width: 50%;
        left: 0;
        right: 0;
        margin: auto;
    }

    .menu-bottom a:before {
        content: '';


        left: 0;
        right: 0;
    }

}