body{
    font-size: 3.5vh;
    width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
    font-family: Arial, sans-serif;
}

span {
    display: block;
    overflow: hidden;
    padding-right:10px;
}

#gamecanvas{
    position: absolute;
    top: 0px;
    left: 0px;
}

#startmenu{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: dimgray;
    padding: 20px;
    border-radius: 25px;
}

#controls{
    font-size: 16px;
}

.ui{
    position: absolute;
    background-color:rgba(134, 134, 134, 0.5);
    padding: 10px;
    user-select: none;
    font-weight: bold;
    display: none;
}

.uinobg{
    position: absolute;
    user-select: none;
    font-weight: bold;
    display: none;
}

#hotbar{
    bottom: 20px;
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translate(-50%, 0%);
}

#inventory{
    top: 50px;
    left: 50%;
    transform: translate(-50%, 0%);
    width: fit-content;
    text-align: center;
}

.slot{
    display: inline-block;
    position: relative;
    background-color:rgba(134, 134, 134, 0.5);
    transform: none;
    margin: 2px;
    width: 100px;
    height: 100px;
    text-align: left;
    vertical-align: top;
}

.slotselected{
    box-shadow: 0 0 0 3px black;
}

#craftingmenu{
    display: flex;
    flex-wrap: wrap;
    width: 1100px;
}

.recipe{
    width: fit-content;
    margin: 15px;
}

.craftingslot{
    display: inline-block;
    position: relative;
    background-color:rgba(134, 134, 134, 0.5);
    transform: none;
    margin: 1px;
    width: 75px;
    height: 75px;
    text-align: left;
    vertical-align: top;
}

.ingredientslot{
    display: inline-block;
    position: relative;
    background-color:rgba(134, 134, 134, 0.5);
    transform: none;
    margin: 1px;
    width: 50px;
    height: 50px;
    text-align: left;
    vertical-align: top;
}

.item{
    width: 80%;
    height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.itemamount{
    position: absolute;
    bottom: 0;
    margin: 2px;
    left: 0;
    z-index: 1;
}

#chat{
    bottom: 140px;
    left: 20px;
    width: 40%;
    overflow-wrap: break-word;
    font-size: 16px;
}

#chatinput{
    width: 100%;
}

#info{
    text-align: right;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
}

#connectionlost{
    bottom: 130px;
    right: 20px;
}

#tab{
    top: 20px;
    left: 50%;
    width: fit-content;
    text-align: left;
    transform: translate(-50%, 0%);
    font-size: 16px;
}

#dont{
    pointer-events: none;
}
