/* head */

header {
    position: fixed;
    top: 0px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1em;
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0px 1px 2px rgba(44, 45, 45, 0.05);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    /* filter: blur(3px);
    -webkit-filter: blur(3px); */
    z-index: 99;
}

header>div {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

header>div>.btn {
    border-radius: 0.25em;
    background: radial-gradient(farthest-side at center, #00B5F1, #005BFF);
    -webkit-transition: background-color 2s ease-out;
    -moz-transition: background-color 2s ease-out;
    -o-transition: background-color 2s ease-out;
    transition: background-color 2s ease-out;
}

header>div>.btn>p {
    margin: 1px 0px 2px;
    padding: 0.3em 0.5em 0.2em;
    background: -webkit-linear-gradient(bottom, #00B5F1, #005BFF);
    background: -moz-linear-gradient(bottom, #00B5F1, #005BFF);
    background: -o-linear-gradient(bottom, #00B5F1, #005BFF);
    background: linear-gradient(bottom, #00B5F1, #005BFF);
    letter-spacing: 0.08em;
    border-bottom: 1px solid #92F3FF;
    border-radius: 0.25em;
    cursor: pointer;
}

header>div>.btn:not(:last-child) {
    margin-right: 0.5em;
}

header>div>.btn:hover p {
    background: -webkit-linear-gradient(top, #00B5F1, #005BFF);
    background: -moz-linear-gradient(top, #00B5F1, #005BFF);
    background: -o-linear-gradient(top, #00B5F1, #005BFF);
    background: linear-gradient(top, #00B5F1, #005BFF);
}

.login_btn {
    position: relative;
}

.login_btn::before {
    content: '';
    position: absolute;
    top: -0.45em;
    left: -0.45em;
    width: 1em;
    height: 1em;
    background: url(../../../img/front/tips.svg);
    border-radius: 50%;
    box-shadow: 0 0 0 0 #ff3c41;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 60, 65, 0.7)
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 60, 65, 0)
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 60, 65, 0)
    }
}

.tips {
    position: absolute;
    width: 190px;
    top: 110%;
    left: -0.5em;
    pointer-events: none;
}

.tips>img {
    width: 100%;
    height: 100%;
}


/* 登入 */

form {
    text-align: center;
}

input {
    width: 100%;
    height: 100%;
    padding: 0.5em 0.5em 0.6em;
    background: #FFE497;
    font-family: 'Harmony_blod';
    font-size: 1em;
    border: 3px solid #F4B541;
    border-radius: 99em;
}

.login_box input {
    text-align: center;
}

.login_box {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0px auto;
    padding: 2em 20px 1.5em;
    background: #FCF2E8;
    border: 3px solid #974014;
    border-radius: 20px;
}

.login_box>.heading {
    position: absolute;
    top: 0;
    left: 50%;
    width: 52%;
    text-shadow: none;
    transform: translate(-50%, -50%);
}

.login_box>.heading>p {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-family: 'Harmony_blod';
    letter-spacing: 0.1em;
    transform: translate(-50%, -50%);
}

.login_box form {
    width: 80%;
    margin: 0px auto;
}

.login_box form>.item,
.login_box form>.item>input {
    color: #4C2C22;
    font-family: 'Harmony_blod';
    letter-spacing: 0.1em;
}

.login_box form>.item:last-child {
    margin-top: 0.5em;
}

.login_box form>.item>label {
    line-height: 2;
}

.login_box form>.item>input[type=password] {
    letter-spacing: -0.3em;
}

.submit_btn {
    max-width: 150px;
    margin: 1.5em auto 0px;
    background: radial-gradient(farthest-side at center, #FAAA21, #ED6A00);
    -moz-border-image: -moz-radial-gradient(top left, #FAAA21, #ED6A00);
    -webkit-border-image: -webkit-radial-gradient(top left, #FAAA21, #ED6A00);
    border-image: radial-gradient(to bottom right, #FAAA21, #ED6A00);
    border-image-slice: 1;
    border-radius: 99em;
}

.submit_btn input[type=submit] {
    padding: 0.3em 0.5em;
    background: #FAAA21;
    font-family: 'Harmony';
    color: #FFFFFF;
    font-size: 0.88em;
    letter-spacing: 0.1em;
    border: 4px solid #ED6A00;
    box-shadow: 0 6px 0px rgba(22, 21, 9, 0.75);
    cursor: pointer;
}

.login_box form>.item>input:not([type=submit]):focus {
    box-shadow: 0px 0px 5px #F4B541;
}

.login_box .close_btn {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 40px;
    cursor: pointer;
}

.login_box .close_btn:hover {
    transform: scale(1.2);
}


/* 首頁 */

.bg {
    padding: 2em 20px;
    min-height: 100vh;
    background: url(../../../img/front/index_bg.jpg) center no-repeat;
    background-size: cover !important;
}

.heading {
    position: relative;
    width: 32%;
    max-width: 450px;
    margin: 0px auto;
    font-family: "Harmony_blod";
    color: #004098;
    line-height: 0;
    text-align: center;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

.heading>p {
    margin-bottom: 0.5em;
}

.stage_box ul {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 90%;
    margin: 0px auto;
}

.stage_box ul>li {
    position: relative;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    width: calc(25% - 2em);
    margin: 2em 1em;
    padding: 2em 2em 1.5em;
    min-height: 10.5vw;
    color: #fff;
    font-size: 1em;
    text-align: center;
    letter-spacing: 0.1em;
    filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.3));
    -webkit-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
}
.stage_box ul>li {
    /* 超過八個考場時的樣式 */
    background-color: #11102c;
}

.stage_box ul>li:nth-child(1n) {
    background: url(../../../img/front/stage_1.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(2n) {
    background: url(../../../img/front/stage_2.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(3n) {
    background: url(../../../img/front/stage_3.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(4n) {
    background: url(../../../img/front/stage_4.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(5n) {
    background: url(../../../img/front/stage_5.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(6n) {
    background: url(../../../img/front/stage_6.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(7n) {
    background: url(../../../img/front/stage_7.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(8n) {
    background: url(../../../img/front/stage_8.svg) center no-repeat;
    background-size: 100% 100%;
}


/* .stage_box ul>li:nth-child(1):hover {
    background: url(../../../img/front/stage_1_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(2):hover {
    background: url(../../../img/front/stage_2_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(3):hover {
    background: url(../../../img/front/stage_3_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(4):hover {
    background: url(../../../img/front/stage_4_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(5):hover {
    background: url(../../../img/front/stage_5_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(6):hover {
    background: url(../../../img/front/stage_6_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(7):hover {
    background: url(../../../img/front/stage_7_h.svg) center no-repeat;
    background-size: 100% 100%;
}

.stage_box ul>li:nth-child(8):hover {
    background: url(../../../img/front/stage_8_h.svg) center no-repeat;
    background-size: 100% 100%;
} */

.stage_box ul>li p {
    flex: 1;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5em;
    -webkit-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;
    width: 100%;
    word-break: break-all;
}


/* .stage_box ul>li:hover>p {
    opacity: 0;
} */

.stage_box ul>li:hover>.btn_box {
    opacity: 1;
    pointer-events: visible;
}

.stage_box .btn_box {
    /* position: absolute; */
    position: relative;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    width: 65%;
    min-width: 245px;
    /* opacity: 0; */
    opacity: 1;
    -webkit-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;
    pointer-events: none;
}

.stage_box .btn_box a {
    position: relative;
    display: block;
    color: #3C5984;
    font-size: 0.8em;
    line-height: 0;
    height: 50px;
    pointer-events:auto;
}

.stage_box .btn_box a>p {
    position: absolute;
    top: 46%;
    left: calc(50% + 1px);
    width: 100%;
    padding-bottom: 0;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.stage_box .btn_box a>img {
    width: 100%;
    height: 100%;
}

.stage_box .btn_box .m {
    transform: translateY(2.5%);
}

.stage_box .btn_box>.btn_enter a {
    color: #E95D53;
    font-size: 160%;
    height: 65px;
}

.stage_box .btn_box>.btn_leaderboard a {
    font-size: 95%;
}

.stage_box .btn_box>.btn_enter a,
.stage_box .btn_box>.btn_enter a>img {
    width: 125px;
}
.stage_box .btn_box>.btn_leaderboard a,
.stage_box .btn_box>.btn_leaderboard a>img {
    width: 102px;
}

@media screen and (max-width: 1600px) {
    .stage_box ul>li {
        /* min-height: 15vw; */
        min-height: 150px;
    }
    .stage_box .btn_box {
        width: 76%;
        min-width: 215px;
    }
    .stage_box .btn_box a {
        /* height: 80px; */
        font-size: 15px;
    }
    .stage_box .btn_box>.btn_enter a,
    .stage_box .btn_box>.btn_enter a>img {
        width: 102px;
    }
    .stage_box .btn_box>.btn_leaderboard a,
    .stage_box .btn_box>.btn_leaderboard a>img {
        width: 72px;
        height: 40px;
    }
        
}

@media screen and (max-width: 1366px) {
    .stage_box ul {
        width: 100%;
    }
    .stage_box ul>li {
        width: calc(100%/3 - 1em);
        margin: 1.5em 0.5em;
    }
    .stage_box .btn_box {
        width: 62%;
        min-width: 200px;
    }
    /* .stage_box .btn_box a {
        height: 72px;
    } */
    .stage_box .btn_box>.btn_enter a,
    .stage_box .btn_box>.btn_enter a>img {
        width: 102px;
    }
    .stage_box .btn_box>.btn_leaderboard a,
    .stage_box .btn_box>.btn_leaderboard a>img {
        width: 70px;
        height: 40px;
    }
}

@media screen and (max-width: 1200px) {
    .stage_box ul>li {
        width: calc(100%/3 - 1em);
    }
    .stage_box .btn_box {
        width: 55%;
    }
}

@media screen and (min-width: 1366px) and (max-width: 1920px) {
    .heading,
    .stage_box {
        font-size: calc(18px + (24 - 18) * ((100vw - 1366px) / (1920 - 1366)));
    }
    .login_box {
        font-size: calc(16px + (22 - 16) * ((100vw - 1366px) / (1920 - 1366)));
    }
}

@media screen and (max-width: 1024px) {
    .stage_box ul>li {
        width: calc(100%/2 - 1em);
    }
}

@media screen and (max-width: 768px) {
    .bg>.heading {
        width: 100%;
        max-width: 300px;
        margin: 3.5em auto 1em;
        z-index: 1;
    }
    .stage_box ul>li {
        width: 285px;
        min-height: 150px;
    }
    .stage_box .btn_box {
        width: 70%;
    }
}

@media screen and (max-width: 600px) {
    .stage_box ul {
        flex-direction: column;
        margin-top: 1em;
    }
    .stage_box ul>li {
        width: 80vw;
        min-height: 45.4vw;
        margin: 1em 0px;
        padding: 2em 2em 2.5em;
    }
}


/* 首頁公告 */

.notice_box {
    width: 95%;
    max-width: 768px;
    margin: 2% auto 0px;
    padding: 1em;
    background: #25946d;
    /* background: #228a8b; */
    color: #fff;
    font-size: 1em;
    text-align: center;
    letter-spacing: 0.08em;
    border: 0.35em solid #c8591b;
    border-radius: 0.25em;
    box-shadow: inset 0px 0px 5px 1px #176e50;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.3));
}

.notice_box>.heading {
    padding-left: 0.15em;
    font-family: "Harmony";
    color: inherit;
    letter-spacing: 0.15em;
}

.notice_box>.heading>p {
    display: inline-block;
    border-bottom: 0.15em solid #fff;
}

.notice_box>.content {
    font-family: "TaipeiSans";
}

.notice_box>.content>p {
    line-height: 2;
}


/* 授權 */

.copyright {
    position: absolute;
    width: 100%;
    left: 0px;
    right: 0px;
    bottom: 0px;
    padding: 0.5em;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 1em;
    letter-spacing: 0.15em;
    color: #f2f2f2;
    cursor: default;
}


/* 流體字 */

@media screen and (min-width: 1024px) and (max-width: 2500px) {
    .copyright {
        font-size: calc(14px + (16 - 14) * ((100vw - 1024px) / (1920 - 1024)));
    }
}


/* 彈跳視窗 */

.swal2-container.swal2-center {
    pointer-events: none;
}


@media screen and (max-width: 768px) {
    header > div > .btn > p{
        padding: 0.2em 0.25em 0.1em;
    }
    header{
        font-size: 0.95em;
    }
}