@font-face {
	font-family: 'RetroGaming';
	src: url('Retro_Gaming.ttf') format('truetype'),
		url('Retro_Gaming.ttf') format('woff'),
		url('Retro_Gaming.ttf') format('woff2');
}

html {
	background-color: #000;
	cursor: url('img/cursor.png'), auto;
	font-family: 'RetroGaming', 'ms gothic';
	font-size: 22px;
	font-smooth: never;
	-webkit-font-smoothing : none;
	image-rendering: optimizeSpeed;
	image-rendering: -moz-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: optimize-contrast;
	image-rendering: pixelated; 
	-ms-interpolation-mode: nearest-neighbor; 
}

main {
	max-width: 440px;
	margin: auto;
	border: #fff solid 4px;
}

hr {
    border: 0;
    border-top: 2px #fff solid;
}

#shop-display {
	overflow: hidden;
	background-image:url('img/bg.png');
	max-width:440px;
	height: 300px;
	position: relative;
}

#slug-shopkeeper {
	position: absolute;
	width: 150px;
	height: 212px;
	top: 18px;
	left: 16px;
	cursor: url('img/cursor-pointer.png'), pointer;
	background-repeat:no-repeat;
	background-size:contain;
	background-position:bottom;
	background-image:url('img/slug-1.png');
}
  
.animate-slug {
  animation: slug-blink .3s infinite;
  -webkit-animation-iteration-count: 5;}
  

@keyframes slug-blink { 
  
  0% { background-image:url('img/slug-2.png'); }
  50% { background-image:url('img/slug-2.png'); }
  50.01% { background-image:url('img/slug-1.png'); }
  100% { background-image:url('img/slug-1.png'); }
  
}

#shop-textbox {
	height: 120px;
	overflow-y: auto;
	border-top: #fff 4px solid;
	color: #fff;
	padding: 16px;
	cursor: url('img/cursor-pointer.png'), pointer;
}

#shop-textbox p {
	margin: 0;
	filter: contrast(1);
}

nav {
	z-index: 100;
}

a {
	color: #fff;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

#choice-menu a {
	display: block;
	line-height: 1.5;
}

#choice-menu {
	right: 12px;
	bottom: 12px;
	padding: 12px;
	position: absolute;
	background-color: #000;
	border: #fff 4px solid;
}

#order-menu {
	display: flex;
	flex-direction: column;
	left: 12px;
	right: 12px;
	top: 12px;
	bottom: 12px;
	padding: 12px;
	position: absolute;
	background-color: #000;
	border: #fff 4px solid;
	overflow-x: auto;
}

#order-menu div {
	display: flex;
	justify-content: space-between;
	overflow-wrap: anywhere;
}

#order-menu div img {
	width:32px;
	height:32px;
}

/* Scrollbar Styling */

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-thumb {
	background: #fff;
}

::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0);
}

@media only screen and (min-width: 400px) {
	#shop-textbox {
		height: 90px;
	}

	#order-menu {
		left: 24px;
		right: 24px;
		top: 24px;
		bottom: 24px;
	}
	
	#choice-menu {
		right: 24px;
		bottom: 24px;
	}
}

@media only screen and (min-width: 380px) {
	#slug-shopkeeper {
		left: 38px;
	}
}

@media only screen and (min-width: 460px) {
	#shop-textbox {
		height: 60px;
	}
	

	#slug-shopkeeper {
		left: 38px;
	}
}

@media only screen and (min-width: 460px) and (min-height: 460px) {
	main {
		width: 440px;
		margin-top: 0;
		position: absolute;
		top: 45%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
}