/* Copyright (c) NiXiE Studio, All rights reserved */

pre {
	white-space: pre-wrap;
}

.preline {
	white-space: pre-line;
}

.word-wrap {
	word-break: break-all;
}

footer a {
	color: white;
}

footer a:hover {
	color: yellow;
}

.help-inline {
	margin-left: 10px;
	color: #404040;
}

.fullWidth {
	width: 100%;
}

.topic {
	font-size: 1.2em;
	font-weight: bold;
}

.red {
	color: red;
	font-weight: bold;
}

.right {
	float: right;
}

.nixie-pending-alert i {
	margin-right: 10px;
	font-size: 0.75em;
}

.nixie-pending-img {
	margin-right: 10px;
}

.logSender {
	max-width: 150px;
	overflow: hidden;
	text-overflow: clip;
	white-space: normal;
}

.logSender:hover {
	overflow: scroll;
}

.logMsg {
	max-width: 200px;
	overflow: hidden;
	text-overflow: clip;
	white-space: normal;
}

.logMsg:hover {
	overflow: scroll;
}

.logData {
	max-width: 400px;
	overflow: hidden;
	text-overflow: clip;
	white-space: normal;
}

.logData:hover {
	overflow: scroll;
}

/* for Logo in Nav Bar */
/* .nav {
	margin-bottom: 40px;
} */

.section {
	position: relative;
	padding: 35px 0;
}

.section-primary {
	background-color: #337cbb;
	color: white;
}

.section-primary h1,
.section-primary h2,
.section-primary p {
	color: white;
}

.cookie-banner {
	background-color: rgba(0.2, 0.2, 0.2, 0.65);
	color: #eee;
	position: fixed;
	bottom: 10px;
	right: 20px;
	border-radius: 16px;
	padding: 15px;
	width: 80%;
	max-width: 480px;
	z-index: 120;
}

.cookie-banner a {
	float: right;
	border-radius: 16px;
	margin: 5px;
	padding: 8px 12px;
	font-size: 1em;
}

.pdf {
	width: 100%;
	height: calc(100vh - 80px);
}

.panel-scroll {
	width: 100%;
	height: calc(100vh - 120px);
	overflow-y: scroll;
}

.ans-table {
	text-align: center;
}

.ans-text {
	background-color: seashell;
}

table {
	border-spacing: 0;
	border-collapse: collapse;
	width: 100%;
}

table,
th,
td {
	border: 1px solid #ddd !important;
}

th {
	padding: 4px 8px;
	border-bottom: 2px solid #aaa;
}

td {
	padding: 4px 8px;
}

tr:nth-child(2n) {
	background: #f3f3f3;
}

.right {
	margin-left: 12px;
}

.result-progress,
.result-progress .progress-bar {
	font-size: 14px;
	height: 21px;
	line-height: 21px;
}

/**************************
* NxForm
***************************/

.nx-form input[type="text"],
.nx-form input[type="number"],
.nx-form input[type="password"],
.nx-form select {
	border: 1px solid gray;
	border-radius: 5px;
	padding: 3px;
	margin: 3px 12px 3px 3px;	
}

.nx-form input[type="text"]:hover, .nx-form input[type="text"]:focus,
.nx-form input[type="number"]:hover, .nx-form input[type="number"]:focus,
.nx-form input[type="password"]:hover, .nx-form input[type="password"]:focus,
.nx-form select:hover, .nx-form select:focus {
	border: 0px;
	box-shadow: 0px 0px 3px 2px #43a2f5;
}

/**************************
* Answer Input Class
***************************/

.choice-input {
	vertical-align: bottom;
	width: 1.5em;
	height: 1.5em;
	min-width: 1.5em;
	min-height: 1.5em;
}

.choice-label {
	display: flex;
	gap: 12px;
	align-items: baseline;
	cursor: pointer;
	padding: 12px 16px;
}

.choice-label p {
	margin: 8px 0;
}

.choice-label:has(.choice-input:checked) {
	background-color: #c9fbff;
	color: #000;
}

.input-number {
	font-size: 1.25em;
}

.input-text {
	font-size: 1.25em;
}

.show-qans .correct {
	color: rgb(7, 207, 7) !important;
}

.show-qans .correct i {
	content: url('/res/images/correct.png');
	margin-left: 8px;
}

.show-qans .wrong,
.show-qans .choice-label:not(.correct):has(.choice-input:checked) {
	color: red;
}

.show-qans .wrong i,
.show-qans .choice-label:not(.correct):has(.choice-input:checked) i {
	content: url('/res/images/wrong.png');
	margin-left: 8px;
}

/**************************
* QNav
***************************/

#qnav {
	display: none;
}

.qnav {
	display: inline-block;
	padding-left: 0;
	margin: 20px 0;
	list-style-type: none;
}

.qnav>li {
	display: inline;
}

.qnav>li.qcurrent>a {
	padding: 4px 12px;
	box-shadow: inset 0px 0px 3px 2px #43a2f5;
}

.qnav>li>a {
	padding: 4px 8px;
	font-size: 13px;
	float: left;
	margin-left: -1px;
	text-decoration: none;
	color: #000;
	background-color: #fff;
	border: 1px solid #ddd;
}

.qnav>li>a:hover,
.qnav>li>a:focus {
	background-color: #eee;
}

.qnav>li.qdone>a {
	background-color: #c9fbff;
	/* color: #fff;
	background-color: #18bc9c; */
	border: 1px solid transparent;
}

.qnav>li.qdone>a:hover,
.qnav>li.qdone>a:focus {
	background-color: #b4e2e6;
	/* background-color: #0f7864; */
}

.qnav .qmark :after {
	content: "•";
	color: red;
	margin-left: 1px;
	position: relative;
	vertical-align: baseline;
	top: -0.5em;
}

/**************************
* Switch
***************************/

.switch {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 17px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 17px;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 13px;
	width: 13px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	transition: .4s;
}

input:checked+.slider {
	background-color: #2196F3;
}

input:focus+.slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
	transform: translateX(13px);
}
