@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@800&display=swap');
[v-cloak] {
    display: none;
}

* {
    position: relative;
}

*::scrollbar,
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.btn:focus,
.btn:active {
    outline: none;
    box-shadow: none;
}
a,
a:hover{
    text-decoration: none;
}
select:focus,
input:focus,
textarea:focus {
    box-shadow: none;
    outline: none;
}

.form-control:focus {
    border-color: #07a4a0;
    box-shadow: none;
    outline: none;
}
body {
    font-family: "微軟正黑體";
    background-color: #f7f7f7;
}
main {
    min-height: calc(100svh - 150px);
    width: 100%;
    background-image: url(/img/q_finalBg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px;
    background-attachment: fixed;
    padding: 0px 10vw;
    padding-bottom: 60px;
}
header{
    position: fixed;
    left: 0px;
    top: 0px;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10vw;
    z-index: 1;
    background-color: rgba(255,255,255,1);
    /*box-shadow: 0px 2px 5px #ccc;*/
    border-bottom: 3px solid #16703e;
    z-index: 100;
}
header img.logo{
    max-width: 100%;
    height: 65px;
}
header .logoBox span{
    color: #0b2345;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}
header ul{
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}
header ul li{
    height: 100%;
}
header ul li a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    color: #fff;
    height: 100%;
    flex-direction: column;
    letter-spacing: 2px;
    transition: all .5s;
}
header ul li a i{
    font-size: 26px;
    margin-bottom: 5px;
}
header ul li:nth-child(1) a{
    background-color: #f0c24b;
}
header ul li:nth-child(2) a{
    background-color: #ea7066;
}
header ul li:nth-child(3) a{
    background-color: #b5d56a;
}
header ul li a:hover{
    color: #fff;
    text-shadow: 0px 2px 5px #333;
}
footer{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10vw;
    height: 70px;
    background-color: #666;
    color: #fff;
    z-index: 100;
}
footer a{
    color: #fff;
    font-size: 30px;
}
.banner{
    padding-top:30px;
}
.swiper-banner{
    width: 100%;
    overflow: hidden;
    /*height: calc(100svh - 150px);*/
    height: 50vh;
    border-radius: 30px;
    overflow: hidden; 
    /*border: 5px solid #46c6e3;   */
    border: 1px solid #fff;
    box-shadow: 13px 11px 0px #058789;
}
.swiper-banner .swiper-slide {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.swiperBtn{
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 50px;
    font-size: 30px;
    color: #fff;
    opacity: 0.5;
    cursor: pointer;
}
.swiperBtn.btnNext{
    left: auto;
    right: 0px;
}
.swiperBtn i{
    border: 2px solid #000;
    border-radius: 50%;
    background-color: #000;
}
.leaderboard{
    padding: 60px 0px;
}
.leaderboard h2{
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    font-weight: bold;
    color: #3C6C84;
}
.leaderboard ul{
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.leaderboard li{
    width: calc(100% / 3 - 50px);
    margin: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    font-size: 1.5em;
    box-shadow: 7px 5px 0px #ccc;
}
.leaderboard li .top{
    background-color: #50b1d1;
    color: #fff;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-family: 'Catamaran', sans-serif;
    height: 100px;
}
.leaderboard li:nth-child(2) .top{
    background-color: #ea7066;
}
.leaderboard li:nth-child(3) .top{
    background-color: #b5d56a;
}
.leaderboard li:nth-child(4) .top{
    background-color: #F0D399;
}
.leaderboard li:nth-child(5) .top{
    background-color: #595151;
}
.leaderboard li:nth-child(6) .top{
    background-color: #CC9B25;
}
.leaderboard li:nth-child(7) .top{
    background-color: #C7D1AF;
}
.leaderboard li:nth-child(8) .top{
    background-color: #96B49C;
}
.leaderboard li:nth-child(9) .top{
    background-color: #F38A8A;
}
.leaderboard li .name{
    width: 100%;
    height: 80px;  
    display: flex;
    align-items: center;
    justify-content: center;  
}
.title{
    display: flex;
    align-items: center;
    justify-content: center;
}
.title img{
    height: 100px;
}
.searchBox{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 10vw;
    padding: 30px 0px;
    padding-bottom: 60px;
}
.searchBox .blackboard{
    width: 80%;
    height: 350px;
    background-color: #54874f;
    color: #fff;
    box-shadow: 12px 10px 0px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 24px;
    letter-spacing: 2px;
}
.searchBox .blackboard .wood{
    width: 60%;
    height: 40px;
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 1;
    background-color: #8b4b1f;
}
.searchBox .form-control{
    width: 40%;
    height: 50px;
    border-radius: 25px;
    margin: 15px 0px;
    font-size: 18px;
    text-align: center;
}
.searchBox .btn{
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #de9d89;
    width: 40%;
    height: 50px;
    border-radius: 25px;
}
.searchBox .btn i{
    margin-right: 5px;
}
#teacherModal .modal-body{
    padding: 50px;
}
#teacherModal .form-control{
    border-radius: 10px;
    border: 1px solid #000;
    height: 40px;
}
#teacherModal .btn{
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    height: 40px;
}
.searchBox .table{
    background-color: #fff;
}
.resultBox{
    width: 80%;
    margin: auto;
    border: 3px solid #a597e7;
    background-color: #fff;
    border-radius: 30px;
    padding: 30px;
    font-family: Arial;
    font-size: 18px;
}
.resultBox .plus{
    color: #86B8B1;
}
.resultBox .less{
    color: #F34739;
}
.resultBox .student{
    font-size: 24px;
    font-weight: bold;
    color: #4E395D;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.resultBox .student span{
    margin-right: 15px;
}
.mask{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    left: 0px;
    top: 0px;
    position: fixed;
    opacity: 0;
    transition: all .5s;
    visibility: hidden;
}
.modeWrap{
    width: 100vw;
    height: 100vh;
    left: 0px;
    top: 0px;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .5s;
    visibility: hidden;
}
.mask.open,
.modeWrap.open{
    top: 0px;
    z-index: 100;
    opacity: 1;
    visibility: visible;
}
.modeWrap .modeBox{
    width: 50vw;
    min-width: 500px;
    /*min-height: 500px;*/
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
}
.mode-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    font-size: 18px;
    padding-bottom: 5px;
}
.mode-header .btn{
    background-color: #fff;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}
.mode-body{
    display: flex;
    /*align-items: start;*/
    justify-content: space-between;
    padding: 30px 0px;
}

.mode-body ::placeholder{
    color: #ccc;
}
.mode-body .left{
    width: 47%;
}
.mode-body .right{
    width: 47%;
    padding: 30px;
    border-radius: 30px;
    background-color: #A7C5BD;
}
.mode-body .left .flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.mode-body .left .flex .form-control{
    border: 2px solid #f0c24b;
    height: 45px;
    border-radius: 0px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    text-align: center;
}
.mode-body .left .flex .btn{
    width: 120px;
    flex-shrink: 0;
    background-color: #f0c24b;
    height: 45px;
    color: #fff;
    border-radius: 0px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;    
}
.mode-body .left ul{
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}
.mode-body .left ul li{
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}
.mode-body .left ul li i{
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    color: #fff;
    background-color: #000;
    margin-right: 10px;
}
.mode-body .left ul li:nth-child(1) i{
    background-color: #84bed6;
}
.mode-body .left ul li:nth-child(2) i{
    background-color: #f0c24b;
}
.mode-body .left ul li:nth-child(3) i{
    background-color: #b5d56a;
}
.mode-body .left ul li:nth-child(4) i{
    background-color: #FC354C;
}
.mode-body .right h4{
    font-size: 20px;
    height: 45px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid;
    /*padding-bottom: 5px;*/
    margin-bottom: 10px;
    /*color: #0AABBA;*/
    color: #7B8F8A;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mode-body .right h4 .btn{
    background-color: #fff;
    color: #7B8F8A;
}
.mode-body .right ul{
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}
.mode-body .right ul li{
    margin-bottom: 10px;
}
.mode-body .right ul li input.form-control{
    border: 3px solid #b5d56a;
    border: 3px solid #7B8F8A;
    height: 50px;
    border-radius: 15px;
}

.mode-body .right ul li textarea.form-control{
    border: 3px solid #7B8F8A;
    border-radius: 15px;
}
.mode-body .right ul li .btn{
    color: #fff;
    background-color: #7E5686;
    width: 100%;
    height: 45px;
    border-radius: 15px;
}
.mode-body .export{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #A7C5BD;
}
.mode-body .export .form-control{
    margin-right: 2px;
    border: 2px solid #A7C5BD;
}
.mode-body .export .btn{
    background-color: #ea7066;
    color: #fff;
    flex-shrink: 0;
}
.batchBox{
    width: 100%;
}
ul.batch{
    list-style-type: none;
    padding: 0px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0px;
    border-bottom: 1px dashed #ccc;
}
ul.batch li{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
ul.batch li.action{
    width: 50px;
    flex-shrink: 0;
    margin-right: 0px;
}
ul.batch li.action .btn{
    border: 1px solid #000;
}
ul.batch li{
    margin-right: 5px;
}
ul.batch li .form-control{
    border: 1px solid #000;
}
.batchBox .btns{
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 15px;
}
.batchBox .btnAdd{
    background-color: #3CA2A2;
    color: #fff;
}
.batchBox .batchEdit{
    background-color: #FF7474;
    color: #fff;
    margin-left: 10px;
    width: 200px;
}
.batchBox .batchEdit i{
    margin-right: 5px;
}
@media(max-width: 820px){
    header{
        padding: 0px 15px;
    }
    header .logoBox span{
        font-size: 18px;
    }
    header ul li a{
        width: 100px;
    }
    .swiper-banner{
        height: 35vw;
    }
    main{
        padding: 0px 30px;
    }
    .leaderboard li{
        width: calc(100% / 3 - 30px);
        margin: 15px;
    }   
    .searchBox .blackboard,
    .resultBox{
        width: 100%;
    }
    .modeWrap .modeBox{
        width: 95vw;
        border-radius: 20px;
        padding: 20px;
    }
    .mode-body .right{
        padding: 15px;
        border-radius: 15px;
    }
}
@media(max-width: 576px){

    header ul{
        /*display: none;*/
    }
    header .logoBox a img{
        flex-shrink: 0;
    }
    header .logoBox span{
        display: none;
    }
    header ul li a{
        width: 80px;
        font-size: 13px;
    }
    .swiper-banner{
        box-shadow: 5px 4px 0px #058789;
        border-radius: 15px;
    }
    .leaderboard{
        padding: 30px 0px;
    }
    .leaderboard li{
        width: 100%;
        margin: 15px 0px;
    } 
    .searchBox{
        /*padding: 15px 0px;*/
    }
    .searchBox .blackboard{
        height: auto;
        padding: 60px 0px;
    }
    .searchBox .blackboard .text{
        width: 80%;
        font-size: 18px;
    }
    .searchBox .form-control,
    .searchBox .btn{
        width: 80%;
    }
    .resultBox{
        padding: 15px;
        border-radius: 15px;
    }
    .resultBox .student{
        font-size: 14px;
    }
    .resultBox .student .btn{
        font-size: 12px;
        padding: 5px 10px;
    }
    .resultBox table{
        font-size: 12px;
    }
    .resultBox .table td, 
    .resultBox .table th{
        padding: 0.2rem;
    }
    footer{
        height: 50px;
        font-size: 14px;
        margin-top: 15px;
    }
}