/* 主要版型基礎 */
body {
    padding-top: 100px;
    padding-bottom: 40px;
    background-color: #eee;
    font-size: 20px;
    font-family: "微軟正黑體";
}
.navbar-fixed-top{
    height: 100px;
}
header{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 40px;
    line-height: 40px;
}
.btn {
    font-size: 0.9em;
    padding: 4px 12px;
}

.navbar-fixed-top,.navbar-fixed-bottom { position: fixed;  right: 0;  left: 0;  z-index: 1030;}@media (min-width: 768px) {.navbar-fixed-top,.navbar-fixed-bottom {  border-radius: 0;  }}.navbar-fixed-top {  top: 0;  border-width: 0 0 1px;}.navbar-fixed-bottom {  bottom: 0;  margin-bottom: 0;  border-width: 1px 0 0;}
header {
    background-color: #000;
    color: white;
    font-size: 1.5em;
}
footer {
    background-color: #000;
    color: white;
    font-size: 1.2em;
}

#examDataList{
    width: 100%;
}

#padCounter{
    width: 100%;
}

.input-label {
    text-align: right;
    font-size: 1.2em;
    font-weight: bold;
}

.row {
    padding: 2px;
}

select {
    height: 2em;
    padding-left: 8px;
    padding-right: 8px;
}
hr {
    margin: 4px;
}

#top-menu {
    display: flex;
    justify-content: center;
    padding: 5px 20px;
    background-color: #ddd;
    border-bottom: 1px solid #444;
}

#top-menu #btnExam{
    margin-left: 10px;
    margin-right: auto;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.team-group {
    border: 1px solid #888;
    border-radius: 4px;
    font-size: 1.1em;
    margin: 2px 0px;
    min-height: 4em;
}

.team-title {
    background-color: #12998e;
    color: #fff;
}

.team-list ul {
    margin: 4px;
    padding-left: 14px;
}
.team-list li {
    margin: 2px;
}


#info {
    padding: 4px 12px;
}
#subVersion {
    color: #000;
}


/* 練習模式 */
.team-caption {
    font-size: 0.8em;
}

#teamArea{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#teamArea .row{
    box-sizing: border-box;
    margin:0px;
    
}
#teamArea .team-group{
    width: 580px;
    margin-left: 12px;
    margin-bottom: 20px;
}


@media (max-width: 1600px){
    #teamArea .team-group{
        width: 494px;
        margin-left: 6px;
        margin-bottom: 20px;
    }
}


.team-status div {
    padding: 0px;
    margin-top: -2px;
    margin-right: 0px;
    text-align: right;
}

.team-status button {
    font-size: 0.9em;
    margin: 0px 2px;
}

.team-status .relay {
    background-color: #ddd;
    color: #888;
    border: 1px solid #666;
    border-radius: 4px;
}

.team-status .relay.on {
    background-color: #dd4400;
    color: white;
}

.team-status .chip_status.status_on {
    color: #00bb00;
}

.team-status.disabled .chip_status.status_on {
    color: #aaa;
}

.team-status .chip_status {
    font-size: 1.2em;
    color: #ff0000;
    text-shadow: 1px 1px 0px #fff;
}

.row .team-status {
    margin-right: 2px;
    height: 1.8em;
}

.team-status.disabled>* {
    color: #aaa;
}

.team-status.disabled .relay.on {
    color: #aaa;
    background-color: #ddd;
}

#btnSetQuestion {
    margin-top: 2px;
}

#panelMain .exam-counter {
    display: none;
}

#panelMain .infomation{
    width: 100%;
    display: flex;
}
#panelMain .infomation > div{
    padding: 0px 10px;
}

#panelMain.onexam .exam-counter {
    display: block;
    font-weight: bold;
}

/* 測驗模式 */
#padCounter {
    font-family: "Arial Black";
    border: 2px solid #000;
    font-size: 3.5em;
    background-color: #888;
    color: #fff;
    text-align: center;
    line-height: 1.2em;
    padding-right: 8px;
}

#btnCount {
    float: right;
    font-size: 0.6em;
    background-color: #00bb00;
    color: #fff;
    margin-top: 10px;
    border-top: 3px solid #9c9;
    border-left: 3px solid #9c9;
    border-bottom: 3px solid #080;
    border-right: 3px solid #080;
    padding: 8px 16px;
    line-height: 1em;
}

#padCounter.counting {
    background-color: #00bb00;
}

.counting #btnCount {
    background-color: #f44;
    border-top: 3px solid #f99;
    border-left: 3px solid #f99;
    border-bottom: 3px solid #800;
    border-right: 3px solid #800;
}

.onexam .relay {
    visibility: hidden;
}

.onexam .team-group:hover .relay {
    visibility: visible;
}

/* 晶片類型 */
.modal-body .row div:first-child {
    text-align: right;
}

/* 晶片池 */
#chipPoolModal {

}

#mChipList, #mTeamList {
    font-size: 1.1em;
    height: 160px;
}
#chipPoolModal .modal-body label {
    font-size: 1.2em;
    text-align: center;
}
#chipPoolModal .modal-body button {
    margin-top: 50px;
    font-size: 1em;
}

/*  實習出題    */


#examModal .team-caption, #examModal .team-status div {
    text-align: center;
}

#examModal .team-status>div:first-child {
    text-align: right;
}

#btnRandom {
    box-shadow: 1px 1px 2px #000;
}

.modal-header {
    letter-spacing: 0.1em;
    background-color: #4499ee;
    color: white;
}

.practice-group{
    width: 100%;
    margin: 0px;
}


.btn.disabled{
    opacity: 0;
}

/* 修改 */

#panelAdmin .team-group.col-4{
    height: 550px;
    margin-bottom: 10px;
}
#panelAdmin .team-group.col-4 .team-list ul{
    height: 500px;
    overflow-y: scroll;
}
#panelAdmin .team-group.col-4 .team-list ul li{
    list-style:none;
}

#panelAdmin #_examDataList{
    width: calc(100% - 240px);
}

#btnAdmin{
    margin-left: 10px;
}