@font-face{
    font-family:"Pixelated MS Sans Serif";
    font-style:normal;
    font-weight:400;
    src:url(fonts/ms_sans_serif_mono.woff) format("woff");
		
}

body {
	background-color: #ca9;
	font-family: Pixelated MS Sans Serif;
  image-rendering: pixelated;
	user-select: none;
}

h1 {
	font-size: 33px;
	line-height: 33px;
	margin: 4px;
	margin-top: 6px;
}

p {
	font-size: 22px;
	line-height: 26px;
	margin: 4px;
}

button {
	border: 3px solid #666;
	border-radius: 6px;
	padding-left: 8px;
	padding-right: 8px;
	font-family: Pixelated MS Sans Serif;
	font-size: 22px;
	height: 30px;
	background-color: #ccc;
}

button:hover {
	cursor: pointer;
}

#buttons {
	margin-top: 125px;
	margin-left: 4px;
	height: calc(100vh - 220px);
	overflow-y: scroll;
	width: calc(100vw - 320px);
	position: relative;
	z-index: 1;
}

#backgroundPattern {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('img/patterns/pattern1.png');
	opacity: 0.04;
	background-attachment: fixed;
}

.button {
	margin-left: 6px;
	margin-top: 6px;
	width: 144px;
	height: 144px;
	background-size: 144px 144px;
	text-align: center;
	display: inline-block;
	position: relative;
	vertical-align: top;
	z-index: 2;
	transition: transform 200ms ease-out;
}

.button:hover {
	cursor: pointer;
	transform: scale(1.05)
}

.button1 {
	background-image: url('img/button1.png');
	color: #400;
}

.button2 {
	background-image: url('img/button2.png');
	color: #206;
}

.button3 {
	background-image: url('img/button3.png');
	color: #440;
}

.button4 {
	background-image: url('img/button4.png');
	color: #046;
}

.button5 {
	background-image: url('img/button5.png');
	color: #333;
}

.button6 {
	background-image: url('img/button6.png');
	color: #620;
}

.buttonText {
	padding-top: 20px;
	margin-left: 6px;
	margin-right: 6px;
}

#resourcesScreen {
	position: fixed;
	top: 124px;
	right: 0px;
	height: calc(100% - 232px);
	width: 300px;
	background-color: rgba(0,0,0,0.1);
	border-left: 3px solid rgba(0,0,0,0.5);
	border-bottom: 3px solid rgba(0,0,0,0.5);
	border-top: 3px solid rgba(0,0,0,0.5);
	border-radius: 8px 0 0 8px;
	box-sizing: border-box;
	padding: 10px;
}

.resourceText {
	text-shadow: 0 2px rgba(0,0,0,0.3);
}

.potionIcon {
	position: absolute;
	left: 3px;
	width: 48px;
	display: none;
}

#potionTooltip {
	position: absolute;
	left: 50px;
	top: 80px;
	height: 26px;
	border: 3px solid #222;
	background-color: #444;
	color: #ddd;
	padding-left: 10px;
	padding-right: 10px;
	line-height: 26px;
	border-radius: 8px;
	opacity: 0;
	transition: opacity 300ms;
}

#logo {
	width: 52px;
	display: inline-block;
	vertical-align: top;
	float: right;
}

#logoText {
	display: inline-block;
	vertical-align: top;
	margin-top: 4px;
	margin-right: 8px;
	color: #fdb;
	float: right;
	text-align: right;
}

#topBar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 108px;
	background-color: rgba(0,0,0,0.2);
}

.topBarArrow {
	width: 78px;
	height: 84px;
	background-size: 78px 84px;
	margin-top: 12px;
	margin-left: 12px;
	display: inline-block;
	vertical-align: top;
}

.topBarArrow:hover {
	cursor: pointer;
}

#topBarWorld {
	width: 200px;
	height: 84px;
	margin-top: 12px;
	margin-left: 12px;
	background-color: #444;
	border: 6px solid black;
	box-sizing: border-box;
	display: inline-block;
	color: #ddd;
	text-align: center;
	vertical-align: top;
	font-size: 22px;
	padding-top: 12px;
}

.topButton {
	position: relative;
	margin: 0;
	margin-left: 6px;
	float: right;
	background-image: url('img/buttonBottom.png');
	width: 192px;
	height: 96px;
	background-size: 192px 96px;
	text-align: center;
	font-size: 33px;
	color: #630;
	padding-top: 30px;
	box-sizing: border-box;
	display: inline-block;
}

#crateNotification {
	position: absolute;
	top: 0;
	left: 6px;
	color: #bff;
	background-color: #088;
	font-size: 22px;
	padding-left: 6px;
	padding-right: 4px;
	padding-top: 3px;
	border-bottom: 6px solid #363636;
	border-right: 6px solid #363636;
}

.topButton2 {
	position: relative;
	margin: 0;
	margin-left: 6px;
	float: right;
	background-image: url('img/buttonBottom2.png');
	width: 192px;
	height: 96px;
	background-size: 192px 96px;
	text-align: center;
	font-size: 33px;
	color: #035;
	padding-top: 30px;
	box-sizing: border-box;
	display: none;
}

.topButton:hover {
	cursor: pointer;
}

.topButton2:hover {
	cursor: pointer;
}

#bottomBar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 90px;
	border-top: 5px solid #222;
	background-color: #b22;
	color: white;
	transition: background-color 500ms;
	text-align: center;
}

#bottomBarBack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.4) 100%);
}

#XPBarBack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: black;
}

#XPBar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 10px;
  background-color: #0ff;
	transition: width 300ms;
}

#itemScreen {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120vh;
	height: 80vh;
	max-width: 90vw;
	background-color: #666;
	padding: 2vh;
	box-sizing: border-box;
	display: none;
	border: 6px solid #333;
	border-radius: 16px;
	z-index: 3;
}

#itemScreenInfo {
	position: absolute;
	top: 0;
	right: 0;
	width: 300px;
	height: 100%;
	background-color: #888;
	border-left: 3px solid #333;
	border-radius: 0 12px 12px 0;
}

.closeButton {
	position: absolute;
	top: 8px;
	right: 6px;
	font-size: 33px;
	color: #333;
}

.closeButton:hover {
	cursor: pointer;
}

#itemScreenIcon {
	margin-top: 48px;
	margin-left: 48px;
	width: 192px;
	height: 192px;
	background-size: 192px 192px;
	background-color: #bbb;
	border: 6px solid #666;
	display: none;
}

#itemScreenName {
	text-align: center;
	color: white;
}

#itemScreenInfoText {
	text-align: center;
	color: #ddd;
}

.item {
	width: 96px;
	margin-top: 10px;
	margin-left: 10px;
	border: 6px solid #666;
	background-color: #bbb;
}

.itemText {
	text-align: center;
	color: white;
	font-size: 33px;
	margin-top: 8px;
}

#worldPurchaseScreen {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70vh;
	max-width: 90vw;
	background-color: #666;
	padding: 4vh;
	box-sizing: border-box;
	display: none;
	border: 6px solid #333;
	border-radius: 16px;
	text-align: center;
	color: #ddd;
	z-index: 3;
}

#miningScreen {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60vh;
	height: 80vh;
	max-width: 90vw;
	background-color: #666;
	padding: 2vh;
	box-sizing: border-box;
	display: none;
	border: 6px solid #333;
	border-radius: 16px;
	overflow-y: auto;
	z-index: 3;
}