*, *:before, *:after {
  box-sizing: border-box;
}

html, body {max-width: 598px; overflow-x: hidden;}


body {
  font-family: arial, sans-serif;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
  background-image:url(imgs/muster-beyerle.png);
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid black;
  z-index: 1;
  width: 600px;
  height: 360px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0
}
li {
  padding: 10px 0;
}

a {
  text-decoration: none;
  color: inherit;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.wrapper {
  width: 600px;
  height: 360px;
  position: absolute;
  top: 50%;
    margin-top: -180px;
    left: 50%;
    margin-left: -300px;
}

#menu {
  position: absolute;
  width: 600px;
  height: 360px;
  border: 1px solid black;
  z-index: 2;
  text-align: center;
  background-color: grey;
}
#menu.main {
  background-image: url('imgs/menu-bg.png');
}
#menu.credits {
  background-image: url('imgs/credits-bg.png');
}

#progress {
  height: 12%;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
#percent {
  color: white;
  font-weight: bold;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
#progress-bar {
  width: 200px;
}


#main {
  display: none;
  height: 60%;
  overflow: auto;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
#main h1 {
  color: #000;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.button {
  display: block;
  width: 150px;
  margin: 0 auto;
  height: 30px;
  line-height: 30px;
  border: 1px solid #446e78;
  color: white;
  font-weight: bold;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  background-color: #f0801b;
  background-image: -webkit-linear-gradient(bottom, #f0801b 0%, #fdddb4 100%);
  background-image:         linear-gradient(to bottom, #f0801b 0%, #fdddb4 100%);
  border-radius: 5px;
}

.button:hover {
  background-color: #fdddb4;
  background-image: -webkit-linear-gradient(bottom, #fdddb4 0%, #f0801b 100%);
  background-image:         linear-gradient(to bottom, #fdddb4 0%, #f0801b 100%);
}

#credits {
  display: none;
  line-height: 30px;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
#credits li {
  padding: 5px 0;
}

.artwork, .music, .developer {
  color: #000;
}

.artwork a, .music a, .developer a {
  Text-shadow: none;}

.back, .back:hover {
  margin-top: 10px;
}

#game-over {
  display: none;
  text-align: center;
  padding-top: 92px;
  z-index: 1;
  width: 600px;
  height: 360px;
  position: absolute;
}

#newHighScore
{
  display: none;
}


#game-over > h2 { color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;}
  
#score {color: #fff !important;}

#width-600 {width:600px; overflow-x: hidden;}

	div.drehen > p, div.drehen img{clear: both; float: none; width: 50%; height: auto;}
	div.drehen img {width: 100%; height: auto;}

	

@media (orientation: portrait) and (max-width: 649px), orientation: landscape) and (max-width:649px){
	div.wrapper{display: none;}
	div.drehen{width: 100%; height: 100%; min-height: 568px; text-align: center; position: relative; display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
	padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);}
	}

@media (orientation: landscape) and (min-width:650px), (orientation: portrait) and (min-width: 650px){
	div.wrapper{display: block;}
	div.drehen{display: none;}
	}
	
	



