canvas {
    background-color: #33cc00;
    padding: 5px;
    /*width: 500px;*/
    /*height: 100%;*/
    height: 95vh;
    /*margin: 10px;*/
    /*border-width: 60px;*/
    /*border-color: #010101;
    border-style: solid;*/
}

#game_div{
    /*height: 100vh;*/
    text-align: center;
    width: auto;
    margin: 0;
    padding: 0;
}

#container {
  display: flex;                  /* establish flex container */
  flex-direction: row;            /* default value; can be omitted */
  flex-wrap: nowrap;              /* default value; can be omitted */
  justify-content: space-between; /* switched from default (flex-start, see below) */
}

html, body  { 
	background-image: url('./assets/bg.jpg');
	background-repeat: no-repeat;
	background-position: 0% 0%;
	background-size: cover;
	background-attachment: fixed;
	background-color: #000000;
	/*margin: 0;
	padding: 0;*/
}


/*body:
	position: relative;
}*/

@font-face { 
	font-family: 'Josefin'; 
	src: url('./assets/VT323-Regular.ttf'); 
}

#paus, #ateruppta {
	position: absolute;
	top: 25px;
	/*left: 0px;*/
	/*right: 5px;*/
	width: 50px;
	height: 50px;
	opacity: 0.8;
	display: none;
}

#control-up, #control-down, #control-up-second, #control-down-second, #control-left, #control-right, #control-up-big, #control-down-big, #control-left-big, #control-right-big { 
	position: absolute;
	margin: auto;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 64px;
	cursor: pointer;
	width: 64px;
	height: 64px;
	padding: 5px;
}
#control-up { 
	top: 0px;
	left: 70px;
	background-image: url('./assets/move-up.png');
}
#control-down { 
	bottom: 0px;
	right: 70px;
	background-image: url('./assets/move-down.png');
}
#control-up-second { 
	top: 0px;
	right: 70px;
	background-image: url('./assets/move-up.png');
}
#control-down-second{ 
	bottom: 0px;
	left: 70px;
	background-image: url('./assets/move-down.png');
}
#control-left { 
	bottom: 0px;
	top: 0px;
	left: 0px;
	background-image: url('./assets/move-left.png');
}
#control-right { 
	bottom: 0px;
	top: 0px;
	right: 0px;
	background-image: url('./assets/move-right.png');
}

#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
	position: absolute;
	opacity: 0.2;
	margin: auto;
	padding: 0px;
	display: none;
	background-size: 98px;
	z-index: 999999;
}
#control-up-big { 
	bottom: 40px;
	left: 0px;
	right: 0px;
	width: 40px;
	height: 40px;
	background-image: url('./assets/move-up-big.png');
}
#control-down-big { 
	bottom: 0px;
	left: 0px;
	right: 0px;
	width: 40px;
	height: 40px;
	background-image: url('./assets/move-down-big.png');
}
#control-left-big { 
	left: 110px;
	bottom: 0px;
	width: 40px;
	height: 40px;
	background-image: url('./assets/move-left-big.png');
}
#control-right-big { 
	right: 110px;
	bottom: 0px;
	width: 40px;
	height: 40px;
	background-image: url('./assets/move-right-big.png');
}

#sound {
	cursor: pointer;
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
}

.ui-mobile {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}


@media screen and (min-height:1200px), screen and (min-device-height : 1200px) { 
	#game { 
		/*zoom: 135%;*/
	}
}

@media screen and (max-width:1024px), screen and (min-device-width : 768px) and (max-device-width : 1024px) { 
	#home .help-button, #panel .help-button, #home .github { 
		display: none;
	}
	#game {
		/*width: 100%!important;*/
		height: 98vh%!important;
		padding: 0!important;
		margin: 0!important;
		/*zoom: 105%;*/
	}
	#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
		display: inline; 
	} 

}
@media screen and (max-height:640px), screen and (min-device-height : 480px) and (max-device-height : 640px) and (-webkit-device-pixel-ratio: 3) { 
	#game {
		width: 100%!important;
		height: auto!important;
		padding: 0!important;
		margin: 0!important;
		border: none!important;
		/*zoom: 84%;*/
	}
	html, body {
		margin: 0!important;
		padding: 0!important;
		background-image: none!important;
	}
	#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
		display: inline; 
	} 
	/*#home .help-button, #panel .help-button, #home .github { 
		display: none;
	}*/
	/*h1, #canvas-panel-title-pacman { 
		visibility: hidden;
	}*/
}
@media screen and (max-height:480px), screen and (min-device-height : 320px) and (max-device-height : 480px) { 
	#game {
		width: 100%;
		height: auto!important;
		padding: 0!important;
		margin: 0!important;
		border: none!important;
		/*zoom: 55%;*/
	}
	html, body {
		margin: 0!important;
		padding: 0!important;
		background-image: none!important;
	}
	#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
		display: inline; 
	} 
	#control-up-second, #control-down-second { 
		display: none;
	}
	#control { 
		bottom: 50px;
		width: 550px;
		height: 55px;
	}
	#control-up, #control-down, #control-left, #control-right { 
		top: 0px;
		bottom: 0px;
		background-size: 48px;
		width: 48px;
		height: 48px;
		padding: 5px;
	}
	#message { 
		top: 347px;
	}
}
