@charset "utf-8";
body {
    font-family: 'Microsoft JhengHei', 'sans-serif';
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

ul {
    padding-left: 0;
    list-style-type: none;
}

/*清除*/
/* .form-control:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
} */

/*無障礙*/
.illustrate.header{
    margin-top: 2rem;
}
.illustrate.header h2{
    display: inline-block;
   
}
.jumppoint {
    margin-left: -10px;
    padding-top: 4px;
    color: #f5a51c;
    float: left;
    height: 55px;
}
.jumppoint-small {
    margin-left: -20px;
    padding-top: -10px;
    color: #ffffff !important;
    float: left;
    height: 15px;
}
.number-application{
    border-width: 4px;
    border-style:  solid;
}
.question-box .button-group .button-group-item .btn-mistake:focus,
.question-box .button-group .button-group-item .btn-correct:focus,
.modal-header .btn-close:focus,
#code:focus,
.number-application:focus,
.explorer-btn:focus {
    border: 4px solid #1b1b1b !important;
}
.enter-header{
    width: 710px;
    margin: 0 auto 0 auto;
}
label.code-input{
    font-size: 1.5rem;
    padding: 4px;
    font-weight: bolder;
}
/**/

/*新select*/
select.form-control,
select.form-control:focus {
    background: #fff url(../images/explore/arrow-line.png) no-repeat;
    background-size: 10px;
    background-position: calc(100% - 8px) center !important;
    box-sizing: border-box;
    appearance: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
}

/***************網頁選取顏色***************/
::selection {
    background-color: #999;
    color: #fff;
}

::-moz-selection {
    background-color: #999;
    color: #fff;
}

/**************捲軸樣式**************/
/* 整個捲軸 */

::-webkit-scrollbar {
    width: 5px;
    height: 15px;
}

/* 捲軸的軌道 */
::-webkit-scrollbar-track {
    background: #333;
}

/*捲軸尚未滑到的軌道*/
::-webkit-scrollbar-track-piece {
    background: #666;
}

/* 滑動的區塊 */
::-webkit-scrollbar-thumb {
    background: #ccc;
}

/* 滑鼠移到滑動的區塊上 */
::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/*----------------------
共用
----------------------*/
/**全版面**/
.container-fluid {
    padding-right: 8.5%;
    padding-left: 8.5%;
}

/**內容版面**/

.game-content {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh)* 100);
    background-color: var(--color2);
    padding-top: 110px;
    padding-bottom: 50px;
}

.game-content__header{
    width: 300px;
    margin: 0 auto;
}

.large-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--question-number);
}

.game-content .illustrate {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/**隱藏視窗(通用)**/
.modal-header {
    border: 0;
}

.modal-header .btn-close {
    position: absolute;
    right: 20px;
}

.modal-content {
    border: 0;
    border-radius: 30px;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: 0;
}


/**隱藏視窗(設定)**/

.settings-modal .modal-header h1 {
    display: flex;
    align-items: center;
    margin: auto;
    color: #8e8e8e;
    font-size: 1.5rem;
}

.settings-modal .modal-header h1 img {
    width: 25px;
    margin-right: 3px;
}

.settings-modal .modal-body .btn-backtracking {
    display: flex;
    align-items: center;
    background-color: #ececec;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
}

.settings-modal .modal-body .btn-backtracking img {
    width: 30px;
    margin-right: 5px;
}

.settings-modal .modal-body .style-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.settings-modal .modal-body .style-selection .style-item {
    position: relative;
    font-size: 1.2rem;
    padding: 1rem .75rem 1rem .75rem;
    border-right: 1px solid;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-modal .modal-body .style-selection .style-item:last-child {
    border-right: 0;
}

.settings-modal .modal-body .style-selection .style-item::before {
    content: "";
    background: url(../images/explore/check-no.svg) center center;
    display: block;
    height: 28px;
    width: 28px;
    background-repeat: no-repeat;
    z-index: 1;
}

.settings-modal .modal-body .style-selection .style-item.active::before {
    content: "";
    background: url(../images/explore/check.svg) center center;
    height: 28px;
    width: 28px;
    background-repeat: no-repeat;
    z-index: 1;
}

button.style-item {
    border:none;
    background-color:#fff;
}

/**隱藏視窗(登出)**/
.sign-out-modal .title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.sign-out-modal .modal-footer .btn {
    width: 46%;
    margin: 0 2%;
    border-radius: 50px;
    font-size: 1.5rem;
}

.sign-out-modal .modal-footer .btn.btn-yes,
.sign-out-modal .modal-footer .btn.btn-yes:hover {
    background-color: #0095ff;
    border: 1px solid #0095ff;
    color: #fff;
}

.sign-out-modal .modal-footer .btn.btn-no,
.sign-out-modal .modal-footer .btn.btn-no:hover {
    background-color: #fff;
    color: #0095ff;
    border: 1px solid #0095ff;
}

/*----------------------
上選單
----------------------*/
.navbar-toggler {
    border: 0;
}

.navbar-toggler svg {
    fill: var(--FontColorDark);
    width: 25px;
}

.game-navbar {
    height: 85px;
    background-color: var(--color1);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 999;
}

.game-navbar .container-fluid {
    background-color: var(--color1);
}

.index-game-navbar {
    background-color: #FF6F00 !important;
}

.index-game-navbar .container-fluid {
    background-color: #FF6F00 !important;
}

.game-navbar .logo {
    width: 155px;
    margin-left: 7rem;
}
.game-navbar .demo-title{
    padding: 0px !important;
    margin: 0px !important;
}

.game-navbar .nav-link,
.game-navbar .nav-link:hover {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    /* font-weight: bold; */
    margin-right: 20px;
    color: var(--FontColorDark);
}

.game-navbar .nav-link img,
.game-navbar .nav-link svg,
.game-navbar .nav-link svg:hover {
    width: 23px;
    margin-right: 5px;
    fill: var(--FontColorDark);
}

.game-navbar .container-fluid {
    position: relative;
}

.game-navbar .nav-link.return {
    position: absolute;
    top: 14px;
    left: 7.5%;
}

.dialog-alert-error{
    padding: 10px;
    font-size: 1.5em;
    background-color: #fff;
    border:1px solid #ffffff;
    width: 400px;
    margin: 0 auto;
    text-align: center;
    border-radius:10px;
}
.hide{
    display: none;
}


@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        justify-content: end;
    }
}

@media (max-width: 1199px) {
    /* .game-navbar .nav-link.return {
        left: 2rem;
    } */
}

@media (max-width: 992px) {
    .game-navbar .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .game-navbar .nav-link img,
    .game-navbar .nav-link svg {
        width: 20px;
    }

    .game-navbar .nav-link.return {
        top: inherit;
        left: inherit;
        position: inherit;
    }

    .game-navbar .logo {
        margin-left: 0;
    }

    .game-navbar .navbar-collapse {
        padding: .5rem 0;
    }

    .game-navbar .navbar-nav li {
        border-bottom: 1px solid #fff;
    }

    .game-navbar .navbar-nav li:last-child {
        border-bottom: 0;
    }
}

/*----------------------
下選單
----------------------*/
.bottom-menu {
    background-color: var(--color7);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.bottom-menu ul {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.bottom-menu ul li a,
.bottom-menu ul li {
    text-align: center;
    font-size: 1.25rem;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-menu ul li:nth-child(1) {
    width: 20%;
    background-color: var(--color3);
    color: #fff;
}

.bottom-menu ul li:nth-child(2) {
    width: 20%;
    color: #fff;
    background-color: var(--color3);
    position: relative;
}

.bottom-menu ul li:nth-child(3) {
    width: 30%;
    color: var(--FontColorDark);
}

.bottom-menu ul li:nth-child(4) {
    width: 30%;
    color: var(--FontColorDark);
}

.bottom-menu ul li:nth-child(2)::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 65px 0 0 65px;
    border-color: transparent transparent transparent var(--color3);
    right: -65px;
    top: 0px;
}

.bottom-menu ul li img {
    width: 25px;
    margin-right: 5px;
}

/*----------------------
首頁
----------------------*/

.welcome-entrance {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    padding-top: 100px;
    background-color: #f5a51c;
}

.welcome-header{
    margin-top: 8rem;
    width: 710px;
    margin: 8rem auto 0 auto;
}
.welcome-header a, .welcome-header h1{
    float: left;
}
.welcome-entrance .welcome-words {
    font-size: 46px;
    font-weight: bold;
    margin-bottom: 1rem;
    /* text-align: center; */
    /* margin-top: 8rem; */
}

.welcome-entrance .enter-event {
    display: flex;
    align-items: center;
    border-radius: 0;
    width: 700px;
    margin: 0 auto 2rem auto;
}

.welcome-entrance .enter-event .form-control {
    border-radius: 0;
    width: calc(100% - 100px);
    height: 80px;
    font-size: 1.75rem;
}

.welcome-entrance .enter-event .btn,
.welcome-entrance .enter-event .btn:hover {
    display: flex;
    align-items: center;
    border-radius: 0;
    width: 100px;
    background-color: #00a313;
    border-color: #00a313;
    height: 80px;
}

.welcome-entrance .enter-event .btn img {
    width: 60%;
    margin: 0 20%;
}

.welcome-entrance .enter-illustrate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 700px;
    margin: auto;
}

.welcome-entrance .enter-illustrate .text {
    width: 50%;
    font-size: 20px;
    font-weight: bold;
    line-height: 32px;
}

.welcome-entrance .enter-illustrate .btn,
.welcome-entrance .enter-illustrate .btn:hover {
    width: 50%;
    background-color: #2753b4;
    border-color: #2753b4;
    color: #fff;
    border-radius: 0;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0;
    font-weight: 400;
}
/*----------------------
Demo index
----------------------*/
.dialog-logout-success{
    padding: 10px;
    font-size: 1.5em;
    background-color: #fff;
    border:1px solid #ffffff;
    width: 400px;
    margin: 0 auto;
    text-align: center;
    border-radius:10px;
}

/*----------------------
team
----------------------*/

.team .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 20px 0px 10px 0px;
}

.team .team-group {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    padding: 0 6%;
}

.team .team-group .team-item {
    width: 15%;
    /*等比1:1*/
    aspect-ratio: 1 / 1;
    margin: 0 2.5% 2% 2.5%;
    border-radius: 100%;
    background-color: #fff;
    border: 1px solid var(--circle-stoke-color);
    color: var(--circle-stoke-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
}


/*----------------------
question-number
----------------------*/

.question-number .large-title {
    margin-bottom: .5rem;
}

.question-number .team-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 6%
}

.question-number .team-group .team-item {
    width: 15%;
    /*等比1:1*/
    aspect-ratio: 1.25 / 1;
    margin: 0 2.5% 3% 2.5%;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--question-number);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}
.question-number .team-group .team-item.active{
    background-color: var(--question-number);
    border: 1px solid var(--question-number);
    color: #fff;

}

/*----------------------
question-answer
----------------------*/
.question-answer .number {
    background-color: var(--color2-light);
    color: var(--color2-ligth-text);
    border-radius: 20px;
    font-size: 20px;
    display: inline-block;
    padding: 3px 40px;
    margin: 1rem 0 1rem 41%;
}

.question-box {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.question-box .q-img {
    width: 40%;
    margin: 0;
}

.question-box .q-content {
    width: calc(60% - 3rem);
    margin: 0 0 0 3rem;
}

.question-box .q-content .question {
    font-size: 30px;
    line-height: 40px;
    margin-bottom: 2rem;
    font-weight: bold;
    min-height: 130px;
    margin-left: 30px;
    position: relative;
    color: var(--question-color);
}

.question-box .q-content .question::before {
    content: "Q";
    background-color: #d8d9d9;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: absolute;
    left: -55px;
}

.question-box .q-content .answer {
    font-size: 28px;
    line-height: 35px;
    background-color: #fff;
    padding: 10px 30px;
    border-radius: 15px;
    min-height: 150px;
    box-shadow: 5px 5px 10px -4px rgba(0, 0, 0, .5);
    position: relative;
    font-weight: bold;
    margin-bottom: 3rem;
}

.question-box .q-content .answer::before {
    content: "A";
    background-color: #d8d9d9;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: absolute;
    left: -25px;
    top: -15px;
}

.question-box .button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.question-box .button-group .button-group-item {
    width: 40%;
}

.question-box .button-group .button-group-item .btn,
.question-box .button-group .button-group-item .btn:hover {

    color: #fff;
    width: 100%;
    border-radius: 20px;
}

.question-box .button-group .button-group-item .btn-mistake,
.question-box .button-group .button-group-item .btn-mistake:hover {
    background-color: var(--color-flase);
}

.question-box .button-group .button-group-item .btn-correct,
.question-box .button-group .button-group-item .btn-correct:hover {
    background-color: var(--Color-true);

}

.question-box .button-group .button-group-item .btn img {
    width: 100px;
    margin: auto;
    padding: 20px 0;
}

.question-box .button-group .button-group-item p {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin-top: 1rem;
}

/*----------------------
schedule
----------------------*/
.schedule .large-title {
    color: var(--circle-stoke-color);
}
.schedule .team-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 6%;
}

.schedule .team-group .team-item {
    width: 15%;
    /*等比1:1*/
    aspect-ratio: 1 / 1;
    margin: 0 2.5% 80px 2.5%;
    border-radius: 100%;
    background-color: #fff;
    border: 1px solid var(--circle-stoke-color);
    color: var(--circle-stoke-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.schedule .team-group .team-item .schedule-team {
    font-size: 2.8rem;
    border-bottom: 1px solid var(--circle-stoke-color);
    padding: 0 30px;
}

.schedule .team-group .team-item .schedule-question {
    font-size: 2.4rem;
    color: var(--color5);
}

/*視窗點擊按鈕*/
.schedule .team-item {
    position: relative;
}

.schedule-click {
    background-color: var(--circle-stoke-color);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -45px;
    cursor: pointer;
    z-index: 5;
}

.schedule-click img {
    width: 20px;
}

/*視窗點擊畫面*/
.schedule-modal {
    background-color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    bottom: -25px;
    width: calc(100% + 2px);
    display: none;
}

.schedule-modal .title {
    background-color: var(--circle-stoke-color);
    text-align: center;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 1.2rem;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-modal .text {
    padding: 15px 15px 30px 15px;
    color: #333;
    font-size: 1.2rem;
    height: 85%;
    overflow: auto;
}

.schedule-modal .schedule-close {
    background-color: #e4e4e4;
    width: 42px;
    height: 42px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -21px;
    left: 0;
    right: 0;
    margin: auto;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.schedule-modal .schedule-close img {
    width: 15px;
}

/*----------------------
score
----------------------*/
.game-content.score {
    background-color: #fff !important;
}

.game-content.score .illustrate {
    color: #693201;
}

/*表格*/
.table-bordered>:not(caption)>*>* {

    border-color: #d1d1d1;
}
.table-bordered>:not(caption)>* {
    border-color: #d1d1d1;
}
.table-box {
    overflow: auto;
    margin-bottom: 40px;
    position: relative;
}
.scroll-left{
    display: block;
    position: fixed;
    left: 30px;
    top: 50%;
    width: 30px;
    height: 250px;
}
.scroll-right{
    display: block;
    position: fixed;
    right: 30px;
    top: 50%;
    width: 30px;
    height: 250px;
}
.scroll-left img,
.scroll-right img{
    width: 100%;
    height: auto;
}
.table-score {
    text-align: center;
    vertical-align: middle;
}

.table-score td {
    white-space: nowrap;
}

.table-score thead tr td {
    font-size: 1.4rem;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.2;
}

.table-score tr td:first-child,
.table-score tr td:last-child {
    background-color: #ececec;
    font-size: 1.4rem;
}

.table-score thead tr td.q-finish,
.table-score thead tr td.q-last-time {
    font-size: 1rem;
}

.table-score tr td.active {
    /* background-color: var(--color2-light); */
    background-color: #ffefce;
    font-weight: bolder;
}

.photo-slider-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 讓每列四個項目平均分布 */
    padding: 10px 0;
    gap: 10px;
}

.photo-slider-list .slider-item {
    width: 23%; /* 四個一列，中間留空間給 margin */
    margin-bottom: 10px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    height: 110px;
    border: 1px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.photo-slider-list .slider-item img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.photo-gallery-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px 0;
    gap: 10px;
}

.photo-gallery-list .gallery-item {
    width: 23%;
    height: 110px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-gallery-list .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;

    display: flex;              /* 關鍵：啟用 Flexbox */
    justify-content: center;    /* 水平置中 */
    align-items: center;        /* 垂直置中 */
}
#lightbox-content {
    position: relative;
    text-align: center;
    max-width: 100%;
}

#lightbox-img {
    width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px #000;
}

#lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}