@charset "utf-8";

/*reset*/
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}

fieldset,
img {
    border: 0;
}

ol,
ul {
    list-style: none;
}

ul {
    list-style-position: outside;
}

caption,
th {
    text-align: left;
}

q:before,
q:after {
    content: '';
}

abbr,
acronym {
    border: 0;
}

a {
    text-decoration: none;
    transition: all 1s ease;
}

/**-------------------------------**/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    font-family: "Noto Sans TC", sans-serif;

}



html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

  }
  /* 可選：讓 canvas 佔滿整個畫面 */
  canvas {
    display: block;
    width: 100vw;
    height: 100vh;
  }
.popModal {
    display: none;

    top: 0;
    z-index: 10002;
    width: 100%;
    position: fixed;
    font-size: 0.7em;
    cursor: pointer;
    background: rgba(24, 24, 24, 0.87);
    animation-duration: 3s;
    animation-name: slidein;
    animation-direction: alternate;
    height: 100vh;

    align-items: center;
    justify-content: center;
}

.popModal .cover .content{
    position: relative;
    width: 70%;
}

.popModal .close {
    color: #fff;
    width: 5%;
    position: absolute;
    right: 0;
    cursor: pointer;
}

button {
    margin: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.city_row {
    display: flex;
}

.city_row .city_flag {
    width: 10%;
    height: 0;
    padding: 4.5%;
    background-size: cover;
    background-position: center center;
    margin: 4%;
}
.img100{
    max-width: 100%;
    height: auto;
}
.flag_0 {
    background-image: url(../images/no.png);
}

.flag_1 {
    background-image: url(../images/up.png);
}

.flag_2 {
    background-image: url(../images/down.png);
}

/*login btn*/
.loginBtn {
    margin: 10px auto;
    text-align: center;
    cursor: pointer;
}



.aanote {
    font-size: 15pt;
    color: #f00;
    padding: 10px;
    font-weight: bold;
}

.popModal .cover {
    display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
}

#loginModal .button_div {
    display: flex;
        margin: 10% auto 0 auto;
        background: #fff;
        border-radius: 5px;
        padding: 1% 2%;
}
#loginModal .cover .content{

    background-image: url(../images/login-board.png);
    height: 0;
    padding-bottom: 20%;
    background-size: contain;
    background-repeat: no-repeat;
}
#fbLoginBtn, #lineLoginBtn, #googleLoginBtn {
    padding: 0 10px;
}

#loginModal .button_div>div>img {
    max-width: 100%;
}

#loginModal p {
    color: #fff;
    font-size: 2.5em;
    line-height: 2em;
    font-weight: bold;
    letter-spacing: 0.1em;
}
#recordDiv .content{
    height: 60%;
}
#recordDiv .close{
    top: -20%;
}
#recordDiv .record_board{
    background: #222126;
    border-radius: 15px;
    color: #fff;
    padding: 10px;
    font-size: 1.5em;
    height: 100%;
    border: 4px solid #fff;
}
#recordDiv  .logout{
    position: absolute;
    right: 20px;
}
#recordDiv .top,#recordDiv .center{
    display: flex;
        align-items: center;
        justify-content: center;
        padding: 1%;
}
#recordDiv .center .icon{
    cursor: pointer;
    padding: 2px 15px;
    margin: 2px 5px;
    background: #000;
    border-radius: 6px;
}
#recordDiv .center .icon.active{
    background: #d39724;
}
#recordDiv .bottom{
    padding: 15px 0;
    max-height: 65%;
    overflow-y: auto;
}
#recordDiv .username {
    font-size: 1.5em;
    padding-right: 1em;
}
#recordDiv .userscore{
    display: flex;
    align-items: center;
    gap: 10px; 
}
#recordDiv .userscore img{     
     height: 2.5em; 
     vertical-align: middle;
}
#recordDiv .userscore .number{
    font-size: 1.3em;
    vertical-align: middle;
}
.recordTable{
    width: 85%;
    margin: 0 auto;
    border-collapse: collapse;
}
.recordTable td,.recordTable th{
    text-align: center;
}
.recordTable tr{
    border-bottom: 1px dotted #a6a6a6;
}
/*
.recordTable th:not(:last-child){
    border-right: 1px solid #fff;
}*/
.recordTable th:not(:last-child) {
    position: relative;
  }
  
  .recordTable th:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #fff;
  }

.recordTable th{
    font-size: 1.2em;
    padding: 0.5% 0;
}
.recordTable td{
    padding: 1% 0 0.5% 0;
    font-size: 1.3em;
}

.recordTable tr td:last-child{
    width: 120px;
}
#recordDiv .bottom .tab:not(:first-child){
    display: none;
}
#page1{
    background-image: url(../images/background.jpg?t=1);
    background-size: 100%;    
    z-index: 10;
}
#same{
    position: absolute;
    top: 0;
    left: 0;
}
.total_score{
    position: absolute;
    left: 45.5%;
    top: 76%;
    width: 9.5%;
    text-align: right;
    font-weight: bold;

}
.city_boards{
    position: absolute;
    left: 29%;
    top: 83%;
    width: 29%;
    display: flex;
    flex-wrap: wrap;
}
.city_row{
    width: 50%;
    height: 0;
    padding-bottom: 11%;
}
#recordBtn{
    position: absolute;
    left: 76%;
    top: 19%;
    width: 11%;
    cursor: pointer;
}
#startGameBtn{
    position: absolute;
    left: 74.8%;
    top: 83.1%;
    width: 25%;
    cursor: pointer;
}
#noteBtn{
    position: absolute;
    left: 56.5%;
    top: 75%;
    width: 11%;
    cursor: pointer;
}
#noteModal .close{
    right: 1.5%;
    top: 3%;
}
#noteModal .popup-buttons{
    position: absolute;
    top: 45%;
    width: 100%;
}
#noteModal .popup-buttons > div {
    width: 7%;
}
#noteModal .popup-buttons .prevBtn{
    left: -1%;
    position: absolute;
}
#noteModal .popup-buttons .nextBtn{
    right: -4.5%;
    position: absolute;
}

@media screen and (max-width: 950px) {
    #recordDiv .record_board{
        font-size: 1.1em;
    }

}