@font-face {
    font-family: Exo2;
    src: url("./fonts/exo/Exo2-VariableFont_wght.ttf");
}

*{
	font-family: "Exo2", sans-serif;
	margin:0px;
	padding:0px;
}

body{
	background-color:#000000;
}

#inventory {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1000;
  min-height:60px;
}

.slot {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.slot.selected {
  border-color: red;
}

.item-icon {
  max-width: 80%;
  max-height: 80%;

  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.container-ui {
  position: fixed;
  top: 30%;
  left: 30%;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}
.infolabel{
	color: white;
}

#mainMenu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border: 2px solid #ffff66;
}

#desc {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 1.0);
	padding: 70px;
	padding-top:10px;
	border: 2px solid #ffff66;
}

b{
	text-align: left;
	padding:5px;
	background-color: #ffff66;
}

h1{
	background-color: #ffff66;
	padding:5px;
}
p{
	padding:5px;
	background-color: #ffff66;
}

/*#startbtn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #ffff66;
  color: #000;
  border: none;
  cursor: pointer;
}

#respawn{
	padding: 10px 20px;
	font-size: 18px;
	background-color: #ffff66;
	color: #000;
	border: none;
	cursor: pointer;
}
*/

button{
	padding: 10px 20px;
	font-size: 18px;
	background-color: #ffff66;
	color: #000;
	border: none;
	cursor: pointer;
	transition: 0.3s background-color;
}

button:active,button:focus,button:hover{
	background-color: #ff6666;
}

#gui {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(20, 20, 20, 0.5);
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
  color: white;
}

#nameOverlay {
  inset: 0;
  background-color: #ffff66;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.nameBox {
  background: #222;
  border: 2px solid #ffff66;
  padding: 10px 10px;
  text-align: center;
  color: #ffff66;
  font-family: monospace;
}

.nameBox label {
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

#playerName {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ffff66;
  background: #111;
  color: #ff6666;
  width: 200px;
  text-align: center;
}

.nameBox button:hover {
  background: #ffff00;
}

#roomholder{
	width:100%;
	max-width:500px;
	max-height:120px;
	overflow-y: scroll;
}

.mobile_controls{
  position:fixed;
  z-index:10000;
  right:10px;
  bottom:10px;
}
.controlbtn{
  width:50px;
  height:50px;
  background: rgba(0,0,0,0.4);
  border: 1px solid white;
  color: white;
  font-size:30px;
  margin:4px;
  transition: 0.3s;
}
.controlbtn:hover{
  background-color: red;
}
#wbtn{
  position:absolute;
  top: -58px;
  left: 62px;
}
#qbtn{
  position:absolute;
  top: -58px;
}