html {
    height: 100%;
}


body {    
	font-family:Arial, 微軟正黑體, 儷黑, 黑體, 標楷體 !important;
	font-size: 14px;
    background: transparent;
}


.card {
	margin-bottom: 28px;
}

.card-header-search, 
.card-header-question,
.card-header-question-selected {
	background-image: linear-gradient(to bottom, #8ac1ef 0%, #337ab7 100%);
	font-weight: bolder;
	font-size: 16px;
	color: #ffffff;
}

.card-search .card-body {
	padding-bottom: 1px;
}

.form-group-search {
	padding-bottom: 8px;
}


.form-group-search label {
	font-weight: bold;
    padding-left: 3px;
}

.form-group-search:nth-last-child(1) {
	padding-bottom: 2px;
}

.form-group-search:nth-last-child(2) {
	padding-bottom: 18px;
}

.form-group-search:nth-last-child(3) {
	padding-bottom: 12px;
}


.card-header-question .card-header-tabs {
	font-size: 14px;
}


.card-header-question-title, 
.card-header-question-selected-title {
	font-size: 18px; 
	padding-right:6px;
}

.card-header-question-tab {
	padding-right: 6px;
	font-size: 18px;
}

.card-body-question, 
.card-body-question-selected {
	padding-top: 4px; 
	padding-bottom: 4px; 
	padding-right: 4px;
}

.card-body-question-panel, 
.card-body-question-selected-panel {
	padding: .75rem;
}

.card-body-question-checkboxall,
.card-body-question-selected-checkboxall {
	padding-top: 8px; 
}

.card-body-question-checkboxall-label,
.card-body-question-selected-checkboxall-label {
	font-weight: bold; 
	font-size: 14px; 
	padding-top: 3px; 
	cursor: pointer;
}

.card-body-question-number-label { 
	font-weight: bold; 
	font-size: 14px; 
	padding-top: 3px; 
	padding-right: 8px;
}


.card-body-question-panel-btn-icon {
	padding-left:3px;
	padding-right:8px;
}

 
.question-list, 
.question-selected {
	/*overflow-y: auto;
	overflow-x: hidden;*/
	max-height: 50%;
	min-height: 150px;
}

.question-list-footer {
	padding: .75rem;
	padding-top: 20px;
	padding-bottom: 20px;
}

.question-list .table, 
.question-selected .table {
	font-size: 14px;
}

.question-list .table tr td:first-child,
.question-selected .table tr td:first-child {
	max-width: 30px;
	width: 30px;
}

.question-list .table tr td:nth-child(2),
.question-selected .table tr td:nth-child(2) {
	 max-width: 64px;
	 width: 64px;
	 padding-top: 16px;
}

.question-selected .table th {
	background: #E6E6FA; 
	padding-top: 8px; 
	padding-bottom: 8px; 
	border-radius: 10px; 
	border-top: 0px solid;
}
	
.question-selected .table-no-top-border td {
	border-top: 0px solid;
}

.question-selected .table tr td:last-child {
	width: 100px;
}

.question-selected .table-group-header-icon {
	padding-left: 4px; 
	padding-right: 4px;
}

.question-selected .question-selected-icon-up,
.question-selected .question-selected-icon-down,
.question-selected .question-selected-icon-remove {
	font-size: 14px; 
	cursor: pointer;
}
	
.question-selected .question-selected-icon-up,
.question-selected .question-selected-icon-down {
	padding-left: 4px; 
	padding-right: 5px; 
	color: #337ab7;
}

.question-selected .question-selected-icon-remove {
	font-weight: bold;
	font-size: 16 px;
	padding-right:8px;
	color:red; 
	cursor:pointer;
}

.question-selected .question-selected-group-icon-up,
.question-selected .question-selected-group-icon-down, 
.question-selected .question-selected-group-icon-remove {
	font-size: 20px; 
	cursor: pointer;
	float: right;
	padding-top: 0px;
	color: #114c7d;
}

.question-selected .question-selected-group-icon-up {
	padding-right: 9px;
}
.question-selected .question-selected-group-icon-down {
	padding-right: 8px;
}

.question-selected .question-selected-group-icon-remove {
	padding-right: 11px;
	font-weight: bold;
	color:red; 
}



	

.mainmenu {
	position: relative;
	padding: 0;
		cursor:pointer;
}

.mainmenu > li {
	background-color: #63a0d4;
	border-top: 1px solid #448dcc;
	height: 36px;
	color: #fbf9f2;
	box-sizing: border-box;

}

.mainmenu > li:nth-last-child(2) { 
	border-radius: 0 0 7px 7px; 
}

.mainmenu > li:first-child {
  border-radius: 7px 7px 0 0;
  border-top: 0;
}



.mainmenu > li span {
	display: inline-block;
	line-height: 36px;
	padding-left: 20px
}

.submenu {
	box-sizing: border-box;
	color: #000000;
	font-size: 13px;
	content: " ";/*opacity: 0.5;*/
}

.submenu li {
	list-style-type: none;
	line-height: 20px;
	height: 32px;
	padding-top: 8px;
	margin-left: -40px;
	background-color: #f9f9f9 ;
	border-left: solid 10px #f9f9f9 ;
	transition: border-left 220ms ease-in;
}

.submenu .chosen, .submenu .chosen:hover { 
	border-left: solid 10px #3684c6; 
}

.submenu li:hover { 
	border-left: solid 10px #3684c6; 
}

.submenu li span { 
	margin-left: 10px; 
}


.nav-item a:focus{
	outline: unset;
}
.nav-item a:hover{
	border: 1px solid #fff !important;
}
.nav-item a{
	color: #114c7d !important;
	font-weight: bold;
	padding-left: 18px;
	padding-right: 18px;
}


.pagination {
	/* float: right; */
	display: inline-block;
	margin: 0 0 5px;
}

.pagination li {
	display: inline-block;
}

.pagination li a {
	border: none;
	font-size: 14px;
	min-width: 30px;
	min-height: 28px;
	color: #999;
	margin: 0 2px;
	line-height: 28px;
	border-radius: 2px !important;
	text-align: center;
	padding: 0 6px;
}
.pagination li a:hover {
	color: #666;
}	
.pagination li.active a, .pagination li.active a.page-link {
	background: #03A9F4;
}
.pagination li.active a:hover {        
	background: #0397d6;
}
.pagination li.disabled i {
	color: #ccc;
}
.pagination li i {
	font-size: 14px;
	padding-top: 6px
}
.hint-text {
	float: left;
	margin-top: 10px;
	font-size: 14px;
}    

.page-item-left-icon {
	padding-left: 3px;
	padding-right: 8px;
	font-size: 12px;
}

.page-item-right-icon {
	padding-left:8px; 
	padding-right:3px; 
	font-size:12px;
}

/* Modal styles */
	.modal .modal-dialog {
		/*max-width: 600px;*/
	}
	.modal .modal-header, .modal .modal-body, .modal .modal-footer {
		padding: 20px 30px;
	}
	.modal .modal-content {
		border-radius: 3px;
	}
	.modal .modal-footer {
		background: #ecf0f1;
		border-radius: 0 0 3px 3px;
	}
    .modal .modal-title {
        display: inline-block;
    }
	.modal .form-control {
		border-radius: 2px;
		box-shadow: none;
		border-color: #dddddd;
	}
	.modal textarea.form-control {
		resize: vertical;
	}
	.modal .btn {
		border-radius: 2px;
		min-width: 80px;
	}	
	.modal form label {
		font-weight: normal;
	}	
	
.form-group-new {
	font-size: 13px;
}


.card-body-question-top-right-panel {
	float: right;
}

.card-header-qbsel {
	padding-bottom:12px;
}

.btn-category {
    font-weight: 600;
    color: #fff;
    background: #336fb7;
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05), inset 0 -1px 0 rgba(0,0,0,.1);
	padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 14px;
    padding-right: 14px
}


.sidepanel  {
	width: 0;
	position: fixed;
	z-index: 1;
	height: 100%;
	top: 0;
	right: 0;
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;
	/*background-color: rgba(128, 128, 128, 0.9);*/
	background-color: rgba(244, 245, 247, 1);
	box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 4px 20px 0 rgba(0,0,0,0.19);
	z-index: 2000;
	margin-bottom: 50px;
}

.sidepanel a {
	text-decoration: none;
	font-size: 25px;
	color: #818181;
	display: block;
	transition: 0.3s;
}

.sidepanel .card {
	
    margin-bottom:60px;
}


.sidepanel .closebtn {
	position: absolute;
	top: 0;
	right: 25px;
	font-size: 36px;
}

.sidepanel-width { 
	width: 98%;
	padding-left: 28px;
	padding-top: 48px;
	padding-right: 8px;
}


.btn-export-action {
	display:inline-block;
	padding-left: 4px;
	padding-right: 10px;
	padding-top: 4px;
	padding-bottom: 4px;
}

.btn-export-action button {
	margin-left:2px;
	margin-right:2px;
}

.btn-primary-teacher {
	background-color: #f3706a;
	border-color: #f3706a;
}

.btn-primary-teacher:hover {
	background-color: #ef433b;
	border-color: #ef433b;
}

.btn-export-ans {
	display:inline-block;
	padding-left: 4px;
	padding-right: 4px;
}


.form-check {
	margin: 12px;
	margin-top:14px;
	position: relative;
	display: block;
}

.form-check-toggle {
	position: relative;
	padding-left: 0;
	line-height: 30px;
}

.form-check-toggle input {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 0%;
	margin: 0;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
}

.form-check-toggle input + span {
	cursor: pointer;
	user-select: none;
	height: 30px;
	margin-left: 60px;
	display: block;

	font-size: 17px;
	color: #fff;
}

.form-check-toggle input + span:before {
	content: '';
	position: absolute;
	left: 0;
	display: inline-block;
	height: 30px;
	width: 50px;
	background: #DDDEDE;
	border: solid 1px #eff2f3;
	border-color: #DDDEDE;
	transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
	border-radius: 15px;
}

.form-check-toggle input + span:after {
	width: 28px;
	height: 28px;
	margin-top: 1px;
	margin-left: 1px;
	border-radius: 50%;
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	background: #fff;
	transition: margin-left 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
	text-align: center;
	font-weight: bold;
	content: '';
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 0, 0, 0.05);
}

.form-check-toggle input:checked + span:after {
	content: '';
	margin-left: 21px;
	box-shadow: none;

}

.form-check-toggle input:checked + span:before {
	background-color: #F93C3A;
	border-color: #F93C3A;
	transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}



.btn-toggle {
	margin: 0 1rem;
	padding: 0;
	position: relative;
	border: none;
	height: 1.5rem;
	width: 3rem;
	border-radius: 1.5rem;
	color: #007bff;
	background: #007bff;
}
.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
	outline: none;
}

.togglebefore, 
.toggleafter {
	text-align: center;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 2px;
	color:#fff;
}

/*
.btn-toggle:before,
.btn-toggle:after {
	line-height: 1.5rem;
	width: 4rem;
	text-align: center;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 2px;
	position: absolute;
	bottom: 0;
	transition: opacity 0.25s;
}

.btn-toggle:before {
	content: '';
	left: -5rem;
}

.btn-toggle:after {
	content: '';
	right: -4rem;
	opacity: 0.5;
}
*/

.btn-toggle > .handle {
	position: absolute;
	top: 0.1875rem;
	left: 0.1875rem;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 1.125rem;
	background: #fff;
	transition: left 0.25s;
}
.btn-toggle.active {
	transition: background-color 0.25s;
}
.btn-toggle.active > .handle {
	left: 1.6875rem;
	transition: left 0.25s;
}
.btn-toggle.active:before {
	opacity: 0.5;
}
.btn-toggle.active:after {
	opacity: 1;
}

.btn-toggle:before,
.btn-toggle:after {
	color: #fff;
}
.btn-toggle.active {
	background-color: #007bff;
}

.btn-view-test-papers {
    color: #fff;
    background-color: #2e6da4;
    border-color: #3684c6;
}

.btn-view-test-papers:focus,
.btn-view-test-papers:hover,
.btn-view-test-papers:focus.active,
.btn-view-test-papers.focus.active {
    background-color: #337ab7;
}

.btn-save-test-papers {
    color: #fff;
    background-color: #2e6da4;
    border-color: #3684c6;
}

.btn-save-test-papers:focus,
.btn-save-test-papers:hover,
.btn-save-test-papers:focus.active,
.btn-save-test-papers.focus.active {
    background-color: #337ab7;
}


.qcardsel-footer {
	background-color:#fff;
    border-top: none;
}

#saveTestPaperModal .modal-content {
	border-radius: 0px;
}

#saveTestPaperModal .modal-dialog .modal-content {
    border: 0;
	border-radius: 4px !important;
    -webkit-box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18), 0 4px 15px 0 rgba(0,0,0,0.15);
    box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18), 0 4px 15px 0 rgba(0,0,0,0.15);
}

#saveTestPaperModal .modal-header {
	background-image: linear-gradient(to bottom, #8ac1ef 0%, #337ab7 100%);
	border-bottom: none;
	/*background-color: #33b5e5;*/
	box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	padding: 14px 18px;
}

#saveTestPaperModal .modal-footer {
	background-color:#fff;
	border-top: none;
}

#saveTestPaperModal .close {
	color: #fff;
}




#viewTestPaperModal .modal-content {
	border-radius: 0px;
}

#viewTestPaperModal .modal-dialog .modal-content {
    border: 0;
	border-radius: 4px !important;
    -webkit-box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18), 0 4px 15px 0 rgba(0,0,0,0.15);
    box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18), 0 4px 15px 0 rgba(0,0,0,0.15);
}

#viewTestPaperModal .modal-header {
	background-image: linear-gradient(to bottom, #8ac1ef 0%, #337ab7 100%);
	border-bottom: none;
	/*background-color: #33b5e5;*/
	box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	padding: 14px 18px;

}

#viewTestPaperModal .modal-footer {
	background-color:#fff;
	border-top: none;
}

#viewTestPaperModal .close {
	color: #fff;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
} 

.spinner-border{
	display: inline-block;
	width: 1rem;
	height: 1rem;
	vertical-align: text-bottom;
	border: .15em solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	-webkit-animation: spinner-border .75s linear infinite;
	animation: spinner-border .75s linear infinite;
}
.spinner-border-sm{
	height: 1rem;
	border-width: .2em;
}



footer {
	position: fixed;
	bottom: 0;
	width: 100%;
	/* Set the fixed height of the footer here */
	min-height: 60px;
	/*line-height: 60px; */ /* Vertically center the text there */
	background-color: rgba(158, 158, 158, 0.88);
	z-index: 2000;
	padding-left: 18px;
	padding-right: 18px;
	padding-top: 6px;
	padding-bottom: 12px;
	
}



@media only screen and (max-width: 600px) {
    .card-body-question-top-right-panel {
        float: left;
		padding-top: 8px;
    }
	
	.card-body-question-panel-btn-icon {
		padding-top:8px;
	}
	
	.card-header-qbsel {
		padding-bottom:24px;
	}
		
	.sidepanel-width {
		width: 98%;
		padding-left: 8px;
	}
	
}
