#header {
	text-align: center;
	font-size: 170%;
	height: 50px;
	font-weight: bold;
}

body {
	display: flex;
	display: -webkit-flex;
    display: -ms-flexbox;
	align-items: center;
	justify-content: center;
	font-family: "roboto", sans serif !important;
	font-size:100%;
	text-shadow: .5px .5px black !important;
	margin: 8px;
}

#page {
	display: none;
}

#content {
	overflow: hidden;
}

#divRangePuzzleSize, #divRangePuzzleDifficulty {
	max-width: 500px;
}

/*
#divRangePuzzleDifficulty {
	margin-top: 2em;
}
*/

#divRangePuzzleSize .ranges {
	width: 100%;
}

#divRangePuzzleDifficulty .ranges {
	width: 100%;
}

#numberPuzzleSizeOutput div, #puzzleDifficultyOutput div{
	/*color: black !important;*/
	text-align: center;
}

#numberPuzzleSizeOutput, #puzzleDifficultyOutput{
	width: 60px;
	height: 20px;
	display: none;
}

.ranges {
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
	flex-flow: row wrap !important;
	-webkit-flex-flow: row wrap !important;
	justify-content: space-between;
	-webkit-justify-content: space-between;
	font-size: .8em;
	position: relative;
	margin-top: -1em;
}

#secondLine, #thirdLine, #fourthLine {
	max-width: 500px;
	margin-top: 1em;
}

@media screen and (min-device-width : 322px) and (max-width: 800px) and (orientation:landscape) {
	#page {
		width: 300px;
	}
	div #countdown {
		font-size: 300px;
	}
	#winOutput p {
		font-size: .5em !important;
	}
	button {
		font-size: .8em !important;
	}
	.boxContainer{
		width: 300px;
	}
	#header {
		font-size: 90%;
		height: 30px;
	}
}

@media screen and (max-height : 321px) and (orientation:landscape) {
	#page {
		width: 250px;
	}
	div #countdown {
		font-size: 20em;
	}
	#winOutput p {
		font-size: .7em !important;
	}
	button {
		font-size: .8em !important;
	}
	.boxContainer {
		width: 250px;
	}
	#header {
		font-size: 90%;
		height: 25px;
	}
}

@media screen and (max-width : 321px) and (orientation:portrait) {
	#page {
		width: 250px;
	}
	div #countdown {
		font-size: 20em;
	}
	#winOutput p {
		font-size: .7em !important;
	}
	button {
		font-size: .8em !important;
	}
	.boxContainer {
		width: 250px;
	}
	#header {
		font-size: 85%;
		height: 25px;
	}
}


@media screen and (min-width : 1024px)  { 
	#page {
		width: 500px;
	}
	div #countdown {
		font-size: 40em;
	}
	#winOutput p {
		font-size: 1.1em !important;
	}

	.boxContainer {
		width: 500px;
	}
	#header {
		font-size: 170%;
		height: 50px;
	}
} 

@media screen and (min-device-width : 768px) 
and (max-device-width : 1024px)  { 
	#page {
		width: 500px;
	}
	div #countdown {
		font-size: 40em;
	}
	#winOutput p {
		font-size: 1.1em !important;
	}

	.boxContainer {
		width: 500px;
	}
	#header {
		font-size: 170%;
		height: 50px;
	}
}


#divRangePuzzleSize {
	margin-top: 3em;
}

.inputRange {
	margin: 1em auto;
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
	flex-flow: row wrap !important;
	-webkit-flex-flow: row wrap !important;
	justify-content: space-between;
	-webkit-justify-content: space-between;
	font-size: 1em;
}

input[type=range] {
	-webkit-appearance: none;
	width: 100%;
	background: transparent;
}

input[type=range]: focus {
	outline: none;
}

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


input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: .5px solid #000000;
  height: 25px;
  width: 25px;
  border-radius: 3px;
  /*background: #ffffff;*/
  cursor: pointer;
  margin-top: -14px; 
  /*box-shadow: .5px .5px .5px #000000, 0px 0px .5px #0d0d0d;*/ 
}

input[type=range]::-moz-range-thumb {
  /*box-shadow: 1px 1px 1px #000000, 0px 0px .5px #0d0d0d;*/
  border: .5px solid #000000;
  height: 25px;
  width: 10px;
  border-radius: 3px;
  /*background-color: #ffffff;*/
  cursor: pointer;
}

input[type=range]::-ms-thumb {
  /*box-shadow: .5px .5px .5px #000000, 0px 0px .5px #0d0d0d;*/
  border: .5px solid #000000;
  height: 25px;
  width: 10px;
  border-radius: 3px;
  /*background: #ffffff;*/
  cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 7px;
  cursor: pointer;
  /*box-shadow: .5px .5px .5px #000000, 0px 0px .5px #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-progress {
	width: 100%;
  height: 7px;
  cursor: pointer;
  /*box-shadow: .5px .5px .5px #000000, 0px 0px .5px #0d0d0d;*/
  /*background: #3071a9;*/
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}

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

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

input[type=range]::-ms-fill-lower {
  /*background: #2a6495;*/
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
}



input[type=range]::-ms-fill-upper {
  /*background: #3071a9;*/
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
}


#puzzleBild {
	max-width: 500px;
	max-height: 500px;
	position: relative;
	z-index: 1;
	width: 100%;
}

#vorschaubild, #myCanvas{
	width: 100%;
	height: 100%;
}

#logoBackground{
	position: absolute; 
}

div #win {
	width: 490px;
	height: 490px;
	position: absolute; 
	background-color: white;
	z-index: 4;
	display: none;
	border-radius: 10px;
} 

/*
div #countdown {
	position: absolute;
	z-index: 3;
	text-shadow: 5px 5px #2E2E2E;
	opacity: .7;
	display: none;
	text-align: center;
  	color: white;
  	font-family: roboto;
  	z-index: 2;
}

#countdown p {
	margin-top: -5%;
}
*/


#winOutput{
    position: absolute;
    /*border: 2px solid black;*/ 
    background-color: white;
    margin: 10% 10%;
    width: 80%;
    height: 80%;
}

#successText {
	position: relative;
	overflow: auto;
    /*border: 2px solid black;*/ 
    background-color: white;
    margin: 10% 10%;
    width: 80%;
    height: 80%;
    color: black; 
    text-shadow: none !important;
}

#winOutput p{
  color: black; 
  font-family: "Courier";
  margin: 10px 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  width: 30em;
  -ms-animation: type 3s steps(60, end);
  -webkit-animation: type 3s steps(60, end);
  animation: type 3s steps(60, end); 
  width: 100%;
}

#winOutput div {
	margin-top: 10%;
}

#winOutput p:nth-child(1){
  margin-left: 15%;
}

#winOutput p:nth-child(2){
  margin-left: 15%;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  -webkit-animation: type 5s steps(60, end);
  animation: type2 3s steps(60, end);
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  -webkit-animation-fill-mode: forwards;
  -ms-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  margin-top: 10%;
}

#winOutput p:nth-child(3){
  margin-left: 15%;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  -webkit-animation: type 3s steps(60, end);
  animation: type3 3s steps(60, end);
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  margin-top: 5%;
}

#winOutput p:nth-child(4){
    margin-left: 15%;
   white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  -webkit-animation: type 3s steps(60, end);
  animation: type4 3s steps(60, end);
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

#winOutput p:nth-child(5){
    margin-left: 15%;
   white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  -webkit-animation: type 3s steps(60, end);
  animation: type4 3s steps(60, end);
  -webkit-animation-delay: 4s;
  animation-delay: 4s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

#winOutput p:nth-child(6){
    margin-left: 15%;
   white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  -webkit-animation: type 3s steps(60, end);
  animation: type4 3s steps(60, end);
  -webkit-animation-delay: 6s;
  animation-delay: 6s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

#winOutput p span {
  animation: blink 1s infinite;
}

@keyframes type{ 
  from{ width: 0;
  } 
} 

@-webkit-keyframes type {
  from {
    width: 0;
  }
}

@keyframes type2 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes type2 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes type3 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes type3 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes type4 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes type4 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes type5, @keyframes type5 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes type5, @-webkit-keyframes type5 {
  0% {
    width: 0;
  }
  from {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blink{
  to{opacity: .0;}
}

#divStart {
	margin-top: 2em;
	width: 100%;
}

#startButton, #gameContinue {
	width: 100%;
	/*color: black !important;*/
}

#startButton {
	font-size: 1.1em !important;
	height: 2.5em; 
}

#hilfeButtons {
	margin: 1em auto;
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
	flex-flow: row wrap !important;
	-webkit-flex-flow: row wrap !important;
	justify-content: space-between;
	-webkit-justify-content: space-between;
}

#firstContent, #secondContent {
	display: none;
}

#secondContent {
	margin-top: 1em;
}

#myCanvas {
	/*border: 2.5px solid black;*/
	display: none;	
}


#firstLine, #secondLine, #thirdLine, #fourthLine {
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
	flex-flow: row wrap !important;
	-webkit-flex-flow: row wrap !important;
	justify-content: space-between;
	-webkit-justify-content: space-between;
}

#secondLine {
	/*margin-top: 2em;*/
}


.buttonsGame {
	/*color: black !important;*/
	width: 40%; 
	/*height: 2.3em;*/
}


#buttonBack {
	/*color: black !important;*/
	width: 100%; 
}


#timeDiv, #maxZuege, #allPulls {
	font-size: 90% !important;
}


#timeOutput p, #maxPullsOutput p, #countPullsOutput p{
	padding-top: 5px;
	/*color: black !important;*/
	border: 1px solid black;
	height: 1.5em;
	width: 5em;
	text-align: center;
}


.lines{
	position: absolute;
	width: 1%;
  	height: 1%;
}

#info {
	/*color: black !important;*/
	font-size: 1em;
	text-align: center;
	float: right;
	width: 2.5em;
	height: 2.5em;
	border-radius: 10em;
	/*background-color: white;*/
	/*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  	border: 1px solid #000000;
  	margin-top: -2em;
}


button {
	text-shadow: .5px .5px black !important;
	/*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  	border: 1px solid #000000;
  	height: 2.5em;
  	cursor: pointer;
  	font-family: roboto, sans serif !important;
  	border-radius: 5px;
  	font-size: 1em;
  	z-index: 1;
}

#pullBackHide {
	/*border: 1px solid black;*/
	margin-left: -60%;
	z-index: 2;
	opacity: .3;
	background-color: white;
	border-radius: 5px;
}

#infoBox, #hilfeBox{
	position: relative;
	width: 90%;
	max-height: 500px;
	text-align: center;
	margin: auto;
	background-color: #859f1f;
	/*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  	border: 1px solid #000000;
  	color: black !important;
  	display: none;
  	overflow: auto;
	text-shadow: none !important;
}

#imagePreview {
	position: relative;
	text-align: center;
	margin: auto;
  	/*color: black !important;*/
  	display: none;
}

#preview {
	z-index: 3;
}

.shutInfoContainer {
	cursor: pointer;
	position: absolute;
	margin: -1% 2%;
	width: 20px; 
	border-radius: 20px; 
	background-color: red; 
	border: .5px solid black;
	z-index:1;
	display: none;
}

.shutInfo {
	transform: rotate(45deg); 
	text-align: center;
	font-size: 1em;
}


.boxContainer{
	max-width: 500px;
	position: absolute;
	z-index: 3;
	/*color: black !important;*/
	margin-top: 5%;
}

.vorschauContainer{
	max-width: 500px;
	position: absolute;
	z-index: 5;
	/*color: black !important;*/
}

.boxContainer p{
	margin: 0 2em 0 2em;
}

#infoOk, #hilfeOk, #hilfeAbbrechen {
	color: black !important;
	margin-bottom: 1em;
	width: 5em;
	height: 2.5em;
	font-weight: normal !important;
}

#gameContinue {
	/*color: black !important;*/
	margin-top: 3em;
	display: none;
}

#hilfeAbbrechen {
	width: 10em;
	margin-right: 1em;
}

#hilfeOk {
	margin-left: 1em;
}

#hilfeBox table {
	margin: 2em auto;
	border-collapse: collapse;
}

#hilfeBox table tr td {
	width: 3em;
	height: 3em;
	border: 1px solid black;
}

#divLeer {
	position: absolute;
    display: none;
}

#qlogo {
	animation: turner 4s infinite linear;
	-ms-animation: turner 4s infinite linear;
  	-webkit-animation: turner 4s infinite linear;
  	-webkit-transform-style: preserve-3d;
  	z-index: 10000;
  	position: relative;
}

@keyframes turner{
   from{  transform: rotateY(0deg); -webkit-transform: rotateY(0deg); -ms-transform: rotateY(0deg) }
    to  {  transform: rotateY(360deg); -webkit-transform: rotateY(360deg); -ms-transform: rotateY(360deg) }
}

@-webkit-keyframes turner{
   from{  transform: rotateY(0deg); -webkit-transform: rotateY(0deg); -ms-transform: rotateY(0deg) }
    to  {  transform: rotateY(360deg); -webkit-transform: rotateY(360deg); -ms-transform: rotateY(360deg) }
}

#impressum {
	margin-top: 1.5em;
	width: 100%;
	text-align: center;
}

#impressum a {
	text-decoration: none;
}

