html, body {
	height: 100%;
}

body {
	background-color: #999999;
	font-family: "Trebuchet MS", Verdana, serif;
	text-align: center;
	margin: 0px;
	padding: 0px;
}

#container {
	margin: 0 auto;
	width: 100%;
	text-align: left;
	min-height: 100%;
	position: relative;
}

#header_container {
	background-color: #000000;
	background-image: url('../images/top_frame3.png');
	background-repeat: repeat-x;
	height: 126px;
	width: 100%;
}

img#logo {
	border-width:0px;
	position:absolute;
	top:0px;
	left:0px;
	z-index:3;
}

#header {
	position: absolute;
	top: 0px;
	left: 120px;
	width: 410px;
	height: 126px;
	color: #FFFFFF;
	background-image: url("../images/logo_extension5.png");
	background-repeat: no-repeat;
}

#menu {
	position:absolute;
	top:85px;
	left:0px;
	width:100%;height:44px;
	overflow: hidden;
	text-align: right;
}

#menu_links {
	list-style-type:none;
	margin:15px;
	padding-left:120px;
	padding-right: 50px;
	white-space: nowrap;
}

#menu_links li {
	color: #333333;
	display: inline;
	list-style-type:none;
	padding: 0px 10px 0px 10px;
	margin:0px 1px 0px 1px;
}

#menu_links li a {
	text-decoration:none;
	color:#660000;
	list-style-type:none;
	padding: 0px 5px;
	margin:0px;
	height:20px;
}
#menu_links li a:hover {
	color: #CC0000;
}

#body_container_frontpageprint {
		display: none;
}
	
#body_container_teoritest {
	float: left;
	width: 100%;
	padding-bottom: 76px;
}


#table_container_questions {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	max-width: 21cm;
	width: 80%;
	background-color: #FFFFFF;
	display: none;
}


#table_container_choices {
	background-color: #FFFFFF;
}

#results_feedback {
	background-color: #999999;
	text-align: left;
	padding: 10px 0 10px 30px;
}


#button_container {
	width: 100%;
	margin-top: 20px;
	/*display:inline-block;margin-right:10px;
	/*float: right!important;
	background-color: #999999;*/
}


button {
	float: right;
	font-weight: bold;
}

button:hover {
	background-color: #CACADE;
}


#teoritestTable {
	width: 100%;/*
	border-width: 1px;
	border-spacing: 1px;
	border-style: solid;
	border-collapse: collapse;
	border-color: #777777;*/
	background-color: #FFFFFF;
	text-align: left;
	margin: 0px auto;
	overflow: scroll;
	height: 100%;
	border-collapse:collapse;
}

#teoritestTable th {
	margin-top: 50px;
}

#teoritestTable td {
	font-family: Verdana;
	border-style: none;
	
	padding: 5px 2px 5px 7px;
	color: #000000;
}

#teoritestTable tr {
	vertical-align: text-top;
	height: 1px;
	/*border-bottom: 1px solid black;*/
	
}

.highlight {
	background-color: #abc;
	/*border: solid red;*/
}

/*
#teoritestTable tbody td:hover{
	background: #000000;
}*/

/*
#teoritestTable label {
	width: 100%;
	display: inline-block;
}*/

#cell_title {
	padding-top: 35px;
	font-size: 18px;
	color: #000000;/*#CACADE;*/
	text-align: center;
}


.selected {
	border: 2px solid black;
}


.question_row {
	font-size: 12px;
	font-weight: bold;
	padding: 5px;
}

.question {
	float: left;
	padding-bottom: 10px;
}



#but_create {
	float: right;
	background: url("./img/plus.png");
	background-repeat: no-repeat;
	background-size:16px 16px;
	border: none;
	width: 18px;
	height: 18px;	
	padding: 15px;
}

#but_create:hover {
	background-size:18px 18px;	
}

#but_create:focus {
	background-size:14px 14px;
	outline: 0;
	text-decoration: none;
}

.edit_buttons {
	float: right;
	/*width: 110px;*/
}

.hide {
	display: none;
}


.dirbut {
	background: url("./img/double_arrows.png");
	background-repeat: no-repeat;
	background-size:16px 16px;
	border: none;
	width: 18px;
	height: 18px;
	padding: 10px;
}

.dirbut:hover {
	background-size:18px 18px;		
}

.dirbut:active {
	background-size:14px 14px;	
}

.dirbut:focus {
	outline: none;
}


.newbut {
	background: url("./img/refresh2.png");
	background-repeat: no-repeat;
	background-size:16px 16px;
	border: none;
	width: 18px;
	height: 18px;
	padding: 10px;
}

.newbut:hover {
	background-size:18px 18px;	
}

.newbut:active {
	background-size:14px 14px;	
}

.newbut:focus {
	outline: none;	
}

.rembut {
	background: url("./img/delete2.png");
	background-repeat: no-repeat;
	background-size:16px 16px;
	border: none;
	width: 18px;
	height: 18px;
	padding: 10px;
}

.rembut:hover {
	background-size:18px 18px;	
}

.rembut:active {
	background-size:14px 14px;
}
.rembut:focus {
	outline: none;
}


.upbut {
	background: url("./img/arrow_up.png");
	background-repeat: no-repeat;
	background-size:16px 16px;
	border: none;
	width: 18px;
	height: 18px;
	padding: 10px;
}

.upbut:hover {
	background-size:18px 18px;		
}

.upbut:active {
	background-size:14px 14px;	
}

.upbut:focus {
	outline: none;
}

.downbut {
	background: url("./img/arrow_down.png");
	background-repeat: no-repeat;
	background-size:16px 16px;
	border: none;
	width: 18px;
	height: 18px;	
	padding: 10px;
}

.downbut:hover {
	background-size:18px 18px;		
}

.downbut:active {
	background-size:14px 14px;	
}
.downbut:focus {
	outline: none;	
}


.answer_row {
	/*float: left;*/
	font-size: 12px;
	display: inline-block;
	padding: 2px;
	width: 95%;
	/*border: solid 1px red;*/
}

.checkbox {
	display: inline-block;
	/*float: left;*/
	width: 10%;
	/*padding: 0;*/
	height:13px;
	width:13px;
	background: none;
	border: solid black thin;
	vertical-align: top;
}

.mydiv {
	display: inline-block;
	/*display: block;*/
	/*float : left;*/
	width: 80%;
	margin-left: 15px;
	/*border: solid 1px green;*/
	vertical-align: top;
}

.correctshow {
	font-weight: bold;
}

.nonedit {
	border: none;
	color: black;
	background-color: white;
}

.answer_row:hover > .checkbox {
	background: url("../images/checkmark_grey.png");
	background-repeat: no-repeat;
	background-size:13px 13px;
}

.choice:checked + .checkbox {  
	background: url("../images/checkmark.png");
	background-repeat: no-repeat;
	background-size:13px 13px;
}

input[disabled] {
	pointer-events: none;
}



#checkboxes {	
	float: left;
	width: 50%;
	margin-left: 5px;
	margin-right: auto;
	background-color: #FFFFFF;
	position: relative;
	font-size: 18px;
	font-weight: normal;
}

#checkboxes_grad {
	float: left;
	padding: 10px;
	/*display: table-cell;*/
}

#checkboxes_grad div {
	padding: 5px;
}
/*
#choose_grades {
	display: block;
	margin: auto;
	font-size: 18px;
}
*/


#checkboxes_kat {
	padding: 10px;
	/*display: table-cell;*/
}

#checkboxes_div {
	padding: 10px;
	/*display: table-cell;*/
}

#choose_grades, #choose_categories, #choose_div {
	padding-right: 20px;
}


#choose_grades th, #choose_categories th, #choose_div th {
	padding: 10px;
}

#choose_grades td, #choose_categories td, #choose_div td {
	padding: 3px;
}

.checkbox_text {
	min-width: 160px;
}

.styled-select select {
    padding:3px;
    margin: 0;
    -webkit-border-radius:4px;
    -moz-border-radius:4px;
    border-radius:4px;
    -webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
    -moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
    /*box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;*/
    background: #FFFFFF;/*#f8f8f8;*/
    color: #888;
    border:none;
    outline:none;
    display: inline-block;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    /*cursor:pointer;*/
}


.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}




input[type=range] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  width: 100px; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
  padding: 0;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;

  /* Hides the slider so custom styles can be added */
  background: transparent; 
  border-color: transparent;
  color: transparent;
}

/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 8px;
  width: 8px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  margin-top: -3px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; /* Add cool effects to your sliders! */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 8px;
  width: 8px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  border: 1px solid #000000;
  height: 8px;
  width: 8px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #3071a9;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #367ebd;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #3071a9;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 4px 0;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #3071a9;/*#2a6495;*/
  border: 0.1px solid #010101;
  border-radius: 1px;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  box-shadow: 0px 0px 0px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}
input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.1px solid #010101;
  border-radius: 1px;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  box-shadow: 0px 0px 0px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}

input[type=range]::-ms-tooltip {
    display: none;
}

/*
.slider {
	visibility: hidden;
}*/





#input_antal_sp {
	width: 40px;
	height: 12px;
}



#input_antal_sp{
	
}

#dropdown_antal_sp {
	
}


#options_button_container {
	/*position: relative;*/
	width: 100%;
	float: left;
	height: 100%;
}

#options_button {
	float: right;
	padding: 10px;
}

#part_txt {
	margin-right: 50px;
	font-weight: bold;
}


.choice {
	visibility: hidden;
}

/*
tr:hover {
	background: #AFC2CE;
}*/

#question_stats span {
	display: block;
	background-color: #999999;
}

div[name="grade_stats_kup"], div[name="grade_stats_dan"]{
	font-size: 12px;
	border: solid 1px black;
	display: inline-block;
	margin: 5px;
	padding: 2px;
	background-color: #AAAAAA;
	width: 62px;
}
div[name="grade_stats_cat"] {
	font-size: 12px;
	border: solid 1px black;
	display: inline-block;
	margin: 5px;
	padding: 2px;
	background-color: #AAAAAA;
}


#javascript_message {
	text-align: center;
}

.clear {
	display: block;
	clear: both;
	width: 100%;
	height:1px;
	overflow:hidden;
}



#text {
	float: left;
	width: 100%;
}


#footer {
	position: absolute;
	bottom: 0px;
	background-color: #5b5a63;
	background-image: url('../images/bottom_frame5.png');
	background-repeat: repeat-x;
	height: 56px;
	width: 100%;
	border-width: 0px;
	text-align: center;
}

#footer_text {
	position: relative;
	top: 5px;
	margin: 10px;
}


#but_create {
	/*border: solid red 1px;*/
}



@media all {
	.page-break{
		display: none;
	}
}


@media print {
	#header_container {
		display: none;
	}
	tr{
        page-break-inside: avoid;
    }
	
	body {
		background-color: #FFFFFF;
	}
	
	/*Front page should only be shown when printing. The following are styles for the front page.*/
	#body_container_frontpageprint {
		display: block;
		padding-left: 70px;
		padding-right: 70px;
		text-align: center;
		font-size: 32px;
		padding-top: 200px;
	}
	
	#results_feedback {
		display: none;
	}
	
	#test_header {
	}
	
	#test_numq {
		font-size: 18px;
	}
	
	#test_grades {
		font-size: 18px;
	}	
	.vertical-space {
		padding-top: 50px;
	}	
	#cell_title {		/* Don't show table header on every page.*/
		display: none;
	}
	/* Front page styles above.*/
	
	
	
	.selected {
		border: hidden;
	}
	
	.question_row {
		font-size: 20px;
	}
	
	.answer_row > div {
		font-size: 20px;
	}
	
	

	
	.choice:checked + .checkbox {  
		/*background: url("../../images/checkmark.png");*/
		/*background-repeat: no-repeat;*/
		background-color: black;
	}

	.mydiv {
		/*border: hidden;*/
	}
	
	.correct {
		color: black;
		font-weight: normal;
	}

	#table_container_questions {
		margin-left: auto;
		margin-right: auto;
		width: 21cm;
		background-color: #FFFFFF;
	}
	
	#teoritestTable {
		border: none;
	}
	#teoritestTable td {
		border: none;
	}
	
	#footer {
		display: none;
	}
	#results_feedback {
		/*display: none;*/
	}
	#button_container {
		display: none;
	}
	
	.page-break{
		display: block;
		page-break-before: always;
	}
	
	.dirbut, .newbut, .rembut, .upbut, .downbut {
		display: none;
	}
	
	.checkbox {
		-webkit-print-color-adjust: exact !important;   /*Chrome, Safari*/
		color-adjust: exact !important;                 /*Firefox*/
		margin-top: 5px;
		height:18px;
		width:18px;
	}

}
