*{
	margin: 0;
	padding: 0;
	font-family: 'Courier', Courier !important;
}

img{
	border: none;
}

a{
	text-decoration: none;
}

html,body{
	height: 100%;
	width: 100%;
	overflow: hidden;
	min-height: 200px;
	min-width: 250px;
}

svg{
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
}

	svg:focus, svg *:focus{
		/*outline: #00FF00 dotted 0;*/
	}

.button{
	cursor: pointer;
	text-align: center;
	display: inline-block;
}

.button:hover{
	
}

.customTimeButton {
    border: none;
    color: #ddd;
    background-color: #555;
    width: 40%;
    height: 30px;
    margin: 8px 5%;
}

.customTimeButton.active {
    background-color: #8f0000;
}

.customTimeButton:hover {
    color: white;
    background-color: #999;
    cursor: pointer;
}

.customTimeButton 

.noSelect{
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#topTopper{
	position: relative;
	width: 100%;
	height: 3%;
}

	#topTopper div{
		display: block;
		margin-left: 20%;
		width: 30%;
		float: left;
		white-space: nowrap;
	}
	
	#topTopper a{
		display: block;
		float: right;
		margin-right: 20%;
		width: 20%;
		text-align: right;
		white-space: nowrap;
	}
	
		#topTopper  a:hover{
			
		}

#topper{
	width: 100%;
	height: 12%;
	text-align: center;
	position: relative;
}

	#logga{
		height: 100%;
		/*width: 70%;*/
		position: relative;
		float: left;
		margin-left: 20%;
		max-width: 30%;
	}

	#logga svg{
		height: 80%;
		text-align: center;
		
	}

	#menyKnapp{
		display: none;
	}
	
	#menyKnapp.menyClosed{
		
	}
	
	#menyKnapp.menyOpened{
		
	}
	
	#topMeny{
		position: absolute;
		width: 30%;
		right: 20%;
		top: calc(50% - 0.5em);
		font-size: 15px;
		white-space: nowrap;
		text-align: right;
		z-index: 3;
	}
		
		#topMeny div{
			display: inline-block;
		}
		
			#topMeny div:nth-child(2n){
				margin-left: 0.2em;
				margin-right: 0.2em;
			}
		
		#topMeny div:hover:nth-child(2n-1){
			cursor: pointer;
		}
	
#middlerBase{
	width: 100%;
	height: 62%;
	/*min-height: 200px;*/
	position: relative;
	
}
	
.middler{
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

	#middler2{
		pointer-events: none;
		height: 100%;
	}

	#left{
		height: 100%;
		width: 20%;
		float: left;
		display: block;
		position: relative;
		pointer-events: auto;
		
		/*
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		*/
	}
	
		#leftUp{
			width: 100%;
			height: 10%;
			position: absolute;
			left: 0;
			top: 0;
			background: #8f0000;
		}
		
			#curPuzzle{
				width: 40%;
				float: left;
				padding-left: 5%;
				padding-right: 5%;
				text-align: center;
				white-space: nowrap;
				color: #ffffff;
			}
		
			#leftUp select{
				width: 45%;
				height: 2em;
				max-height: 70%;
				float: left;
				margin-right: 5%;
			}
			
		#average{
			position: absolute;
			left: 0;
			top: 10%;
			width: 100%;
			height: 90%;
			white-space: nowrap;
			overflow-y: visible;
		}
		
			#average div{
				position: relative;
				display: block;
				float: left;
				width: 100%;
			}

				#average div div{
					width: 46%;
					float: left;
					padding-left: 2%;
					padding-right: 2%;
					padding-bottom: 1%;
				}
			
				#average div div:first-child{
					text-align: center;
					width: 50%;
				}
				
				#average div div:last-child{
					width: 42%;
					text-align: center;
				}
				
				#avgAntal{
					margin-top: 2%;
				}
				
			.avgSpace{
				visibility: hidden;
			}
	
	#middle{
		height: 100%;
		width: 60%;
		float: left;
		display: block;
		margin-left: 20%;
		position: relative;
		
	}
	
		#middle.red{
			background-color: #8f0000;
		}
		
		#middle.green{
			
		}
		
		#middle.blue{
			
		}
	
		#timer{
			display: block;
			width: 98%;
			padding: 0 1%;
			height: 20%;
			position: absolute;
			left: 0;
			top: 40%;
			text-align: center;
			
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
			
		}
		
		#blandning{
			display: block;
			width: 98%;
			min-height: 11%;
			max-height: 38%;
			position: absolute;
			left: 0;
			top: 10%;
			text-align: center;
			
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
			
			padding: 1%;
		}
		
		#snabbKnappar{
			display: block;
			width: 58%;
			height: 7%;
			position: absolute;
			left: 20%;
			bottom: 2%;
			text-align: center;
			
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
			
			overflow-y: auto;
		}
		
			#snabbPenalty{
				width: 100%;
				position: relative;
				height: 100%;
				pointer-events: auto; 
			}
		
				#snabbNo, #snabb2, #snabbDNF{
					position: absolute;
					display: block;
					padding: 1% 2%;
					width: 27%;
					bottom: 0;
					white-space: nowrap;
				}
				
				#snabbNo{
					left: 1.75%;
				}
				
				#snabb2{
					left: 34.5%;/*1.75+31+1.75*/
				}
				
				#snabbDNF{
					left: 67.25%;/*1.75+31+1.75+31+1.75*/
				}
			
			#snabbAvg{
				position: relative;
				width: 100%;
				height: 70%;
				white-space: nowrap;
				display: none;
				
			}
	
	#right{
		height: 100%;
		width: 20%;
		float: right;
		display: block;
		pointer-events: auto;
		position: relative;
	}
	
		#rightUp{
			position: absolute;
			width: 100%;
			height: 10%;
			top: 0;
			left: 0;
		}
		
			#rightUpText{
				display: inline-block;
				width: 60%;
				float: left;
				white-space: nowrap;
				font-weight: bold;
				margin-left: 3%;
			}
			
			#clearBtn{
				display: block;
				float: right;
				font-size: 0.75em;
				padding: 0.15em;
			}
	
		#historyHolder{
			position: absolute;
			left: 0;
			top: 10%;
			width: 100%;
			height: 90%;
			overflow: hidden;
			
		}
	
			#history{
				width: 100%;
				height: 100%;
				overflow-y: scroll;
				overflow-x: hidden;
			}
			
				#historySizing{
					visibility: hidden;
				}
				
				.historyItem{
					width: 50%;
					padding-left: 0%;
					padding-right: 0%;
					float: left;
				}
				
				.time{
					text-align: center;
					margin-top: 0.25em;
				}
				
				.time:hover{
					cursor: pointer;
				}
					
			#timeShow{
				width: 100%;
				height: 0;
				overflow: hidden;
				position: relative;
				pointer-events: auto;
				overflow-y: hidden;
			}
			
				#timeShowContent{
					display: block;
					width: 90%;
					padding: 5% 5% 0 5%;
					position: relative;
					padding-bottom: 1em;
				}
			
					#timeShowTime{
						text-align: center;
						width: 80%;
						margin-left: 10%;
						margin-bottom: 0.75em;
						margin-top: 0.5em;
					}
					
					#timeShowBland{
						width: 100%;
						overflow: hidden;
						text-overflow: ellipsis;
						cursor: pointer;
						overflow: hidden;
						font-size: 1em;
						white-space: nowrap;
						margin-bottom: 1em;
					}
		
					#buttonContainer{
						width: 100%;
						position: relative;
						overflow: hidden;
						display: block;
					}
		
						#timeShowDelete{
							float: left;
						}
						
						#timeShowClose{
							float: right;
						}
						
						#buttonContainer  .button{
							white-space: nowrap;
							font-size: 0.6em;
							padding: 0.3em;
						}
						
						#timeShowContent .erikRadio{
							width: 0.6em;
							height: 0.6em;
						}
				

#curtain{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	display: none;
}

#blackW{
	width: 60%;
	height: 90%;
	top: 5%;
	left: 20%;
	position: fixed;
	z-index: 3;
	display: none;
	overflow-y: auto;
}

	#blackExit{
		position: absolute;
		top: 2%;
		right: 2%;
		z-index: 5;
		width: 2%;
		height: auto;
		padding: 1.5% 1.5%;
		text-align: center;
	}
	
		#blackExit svg{
			width: 100%;
			height: 100%;
			display: block;
		}
		
	#options{
		width: 100%;
		min-height: 97%;
		display: none;
		position: absolute;
		left: 0;
		top: 3%;
	}
	
		.optTitle{
			width: 100%;
			text-align: center;
			margin-top: 0.75em;
			font-size: 1.5em;
			position: relative;
		}
	
		.optRuta{
			width: 86%;
			margin-left: 5%;
			padding: 2%;
			position: relative;
		}
		
			#optCustom input{
				width: 100%;
				font-size: 1em;
			}
			
		#skinSelect{
			width: 100%;
			font-size: 1em;
		}
		
		#inspection{
			font-size: 1em;
		}
		
			#inspection p{
				display: inline-block;
				font-size: 1em;
			}
		
			#inspection .erikCheckbox{
				width: calc(1.2em - 2px);
				height: calc(1.2em - 2px);
			}
			
		#layout{
			
		}
		
			#layout select{
				width: 100%;
				font-size: 1em;
			}
			
			#layout .erikRadio{
				width: 1em;
				height: 1em;
			}
			
			#layout .erikCheckbox{
				width: calc(1.2em - 2px);
				height: calc(1.2em - 2px);
			}
		
		#optSpara{
			display: block;
			width: 5em;
			margin: auto;
			margin-top: 1.2em;
			padding: 0.5em;
			font-size: 1.4em;
			margin-bottom: 3%;
		}
		
	#help{
		width: 100%;
		min-height: 97%;
		display: none;
		position: absolute;
		left: 0;
		top: 3%;
	}
	
		#help .optRuta p{
			margin-bottom: 0.9em;
			font-size: 1em;
		}
		
	#func{
		width: 100%;
		min-height: 97%;
		display: none;
		position: absolute;
		left: 0;
		top: 3%;
	}
	
		#func .optRuta p{
			margin-bottom: 0.9em;
			font-size: 1em;
		}
		
#footer{
	width: 100%;
	height: 20%;
	z-index: 2;
	position: relative;
}

	#canvasHolder{
		position: absolute;
		width: 99%;
		height: 90%;
		left: 0.5%;
		top: 5%;
	}
	
		#timeCanvas{
			height: 100%;
			width: 100%;
		}

#footFooter{
	position: relative;
	width: 100%;
	height: 3%;
	text-align: center;
}

	#footFooter div{
		display: inline-block;
	}
	
	#footFooter a{
		
	}
	
		#footFooter a:hover{
			
		}
	
/*	
@media(max-width: 768px){
	
	
}
*/

/*MOBILE CSS*/
.mobile #timeShowContent .erikRadio{
	width: 1.1em;
	height: 1.1em;
}

.mobile #timeShowDelete, .mobile #timeShowClose{
	padding: 0.9em;
}

.mobile #menyKnapp{
	display: block;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	text-align: left;
}

	.mobile #menyKnapp svg{
		width: 80%;
		height: 80%;
		margin-left: 10%;
		margin-top: 10%;
	}

.mobile #logga{
	max-width: 100%;
	cursor:pointer;
}

	.mobile #logga svg{
		/*margin-left: 70px;*/
	}
	
.mobile #topper{
	height: 11%;
}

.mobile #topMeny{
	width: 100%;
	height: calc(50% + 0.5em);
	left: 0;
	top: calc(-50% - 0.5em);
	overflow: hidden;
	text-align: center;
}

.mobile #middle{
	display: block;
	width: 100%;
	margin-left: 0;
}

.mobile #left{
	width: 50%;
	height: 100%;
	margin-left: -50%;
}

.mobile #right{
	width: 50%;
	height: 100%;
	margin-right: -50%;
}

.mobile #middlerBase{
	height: 89%;
	width: 100%;
}

.mobile #footer{
	height: calc(89% * 0.3);
}

.mobile #middler2{
	height: 70%;
}

.mobile #blackW{
	width: 95%;
	height: 95%;
	top: 2.5%;
	left: 2.5%;
}

	.mobile #blackExit{
		top: 3%;
		right: 3%;
		width: 3%;
		padding: 2.5% 2.5%;
	}

	.mobile #options, .mobile #func, .mobile #help{
		font-size: 1.8em;
	}

.mobile #footFooter, .mobile #topTopper {
	display: none;
}

.mobile #snabbKnappar{
	display: block;
	width: 90%;
	height: 20%;
	position: absolute;
	left: 5%;
	bottom: 2%;
	text-align: center;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

	.mobile #snabbPenalty{
		width: 100%;
		position: absolute;
		height: 25%;
		pointer-events: auto; 
		left: 0;
		bottom: 0;
	}

		.mobile #snabbNo, .mobile #snabb2, .mobile #snabbDNF{
			position: absolute;
			display: block;
			padding: 1% 2%;
			height: 75%;
			line-height: 2em;
			width: 27%;
			bottom: 0;
			white-space: nowrap;
		}
		
		.mobile #snabbNo{
			left: 1.75%;
		}
		
		.mobile #snabb2{
			left: 34.5%;/*1.75+31+1.75*/
		}
		
		.mobile #snabbDNF{
			left: 67.25%;/*1.75+31+1.75+31+1.75*/
		}
	
	.mobile #snabbAvg{
		position: absolute;
		left: 5%;
		top: 0;
		width: 90%;
		height: 75%;
		white-space: nowrap;
		display: block;
	}
	
		.mobile #snabbAvg div{
			position: relative;
			display: block;
			float: left;
			width: 100%;
			height: 33.33333%;
		}

			.mobile #snabbAvg div div{
				width: 46%;
				height: 80%;
				float: left;
				padding-left: 2%;
				padding-right: 2%;
				padding-bottom: 1%;
			}
		
			.mobile #snabbAvg div div:first-child{
				text-align: center;
				width: 50%;
			}
			
			.mobile #snabbAvg div div:last-child{
				width: 42%;
				text-align: center;
			}