main {
	overflow-y: auto;
}

/** Main heading on several pages */
#content-head { 
	font-family: 'Bebas Neue'; 
	font-size: 2em; 
	color: rgba(0,89,158,1);
}

/** Styles for common, globally used content */
#content-paragraph {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
	line-height: 150%;
	font-size: 1em;
}

#data-grid {
	display: grid;
	grid-template-columns: 400px 1fr;
	align-items: flex-start;
	width: 100%;
}

.input_table {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 1em;
	border-spacing: 5px;
}

#presession-hints {
	grid-area: 1 / 2 / 2 / 3;
	width: 100%;
}

#data-input-form {
	grid-area: 1 / 1 / 2 / 2;
}

#user-data { 
	width: max-content;
	border: none;
}

#course-select {
	width: 200px;
	height: 30px;
}

/** Styles for test environment */
#test-control-bar {
	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: 1fr 80px 80px 80px 80px 1fr 120px; /** ----- | first | prev | next | last | ----- | submit */
	height: 30px;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	padding: 0; margin: 0;
	justify-content: center;
	align-items: center;
	background-color: rgba(103,189,0,1);
}

#test-control-bar button {
	text-align: center;
	color: white;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 0.8em;
	width: 100%;
	height: 100%;
	background-color: rgba(103,189,0,1);
	transition-duration: 200ms;
	border: none;
}

#test-control-bar button:hover:enabled {
	background-color: rgba(255,255,255,0.4);
	border: none;
}

#test-control-bar button:active:enabled {
	background-color: rgba(0,0,0,0.4);
	border: none;
}

#first-btn {
	grid-area: 1 / 2 / 2 / 3;
	border-right: 1px solid white !important;
}

#prev-btn {
	grid-area: 1 / 3 / 2 / 4;
	border-right: 1px solid white !important;
}

#next-btn {
	grid-area: 1 / 4 / 2 / 5;
	border-right: 1px solid white !important;
}

#last-btn {
	grid-area: 1 / 5 / 2 / 6;
}

#submit-btn {
	grid-area: 1 / 7 / 2 / 8;
	border-left: 1px solid white !important;
}

#page-info {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: white;
	font-size: 0.9em;
	margin-left: 10px;
	grid-area: 1 / 1 / 2 / 2;
}

#time-info {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: white;
	font-size: 0.9em;
	grid-area: 1 / 7 / 2 / 10;
	margin-left: auto;
	margin-right: 10px;
}

#task_section {
	padding-left: 30px;
	padding-top: 25px;
	width: 100%;
	height: calc(100% - 30px);
	box-sizing: border-box;
}

#task_desc {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: black;
	font-size: 1.2em;
}

#task_text {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: black;
	font-size: 1em;
	margin-left: 20px;
	margin-block-start: 2em;
	padding-right: 50px;
}

#answer_section {
	margin-left: 20px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.ans-plain-text {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Semibold', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: black;
	font-size: 1em;
}

.overlay {
	grid-area: 3 / 1 / 5 / 2;
	display: none;
	width: 100%;
	height: 100%;
	z-index: 2;
	background-color: white;
}

@media (prefers-color-scheme: dark) {
	#content-paragraph, .input_table, label {
		color: white;
	}

	.overlay {
		background-color: rgb(25,25,25);
	}

	#task_desc, #task_text, #answer_section, .ansPlainText, .ansRadio {
		color: white;
	}

	#user-data {
		border-color: white;
	}
}

@media (max-width: 950px) {
	#data-grid {
		grid-template-rows: auto auto;
		grid-template-columns: auto;
		width: 100%;
	}

	#data-input-form {
		grid-area: 2 / 1 / 3 / 2;
		width: 100%;
	}

	#presession-hints {
		grid-area: 1 / 1 / 2 / 2;
		width: 100%;
	}

	#user-data {
		grid-area: 2 / 1 / 3 / 2;
		width: 100%;
		margin-top: 20px;
		padding-top: 15px;
		border-top: 1px solid gainsboro;
	}

	#status-lbl-cell {
		display: none;
	}
	
	#status-lbl-row {
		display: table-row;
	}

	.navbar-session {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	#test-control-bar {
		grid-template-columns: 60px 60px 60px 60px 1fr 100px;
	}

	#first-btn {
		grid-area: 1 / 1 / 2 / 2;
	}

	#prev-btn {
		grid-area: 1 / 2 / 2 / 3;
	}

	#next-btn {
		grid-area: 1 / 3 / 2 / 4;
	}

	#last-btn {
		grid-area: 1 / 4 / 2 / 5;
	}

	#submit-btn {
		grid-area: 1 / 6 / 2 / 7;
	}
}