@font-face {
  font-family: "MC";
  src: url(./Minecraft-Seven_v2.woff2) format("truetype");
}
/*General styles*/
.itemBoxBorder {
    border: solid 4px;
    border-top-color: #3f3f3f;
    border-left-color: #3f3f3f;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background-color: #8b8b8b;
}
.itemBox {
    width: 100%;
    height: 100%;
    background-image: url(data/items_atlas.webp);
    background-size: calc(50/64*2574px);
    background-position: 100px 100px;
    background-repeat: no-repeat;
}
.itemBox:hover {
    background-color: #9e9e9e;
}

.outputArrow {
    width: 70px;
    margin: 0 28px;
}
.outputSlot {
    width: 62px;
    height: 62px;
    border: solid 4px;
    border-top-color: #3f3f3f;
    border-left-color: #3f3f3f;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    background-color: #8b8b8b;
}
.outputSlot:hover {
    background-color: #9e9e9e;
}
.outputIcon {
    background-image: url(data/items_atlas.webp);
    background-size: calc(50/64*2574px);
    background-position: 100px 100px;
    background-repeat: no-repeat;
    height: 50px;
    width: 50px;
    margin: 6px;
}

button {
    border: solid 4px;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #3f3f3f;
    border-right-color: #3f3f3f;
    background: #b9b9b9;
    font-size: 20px;
    font-family: MC;
    padding: 5px 10px;

}
button:hover {
    background: #adadad;
}
button:active {
    border-top-color: #3f3f3f;
    border-left-color: #3f3f3f;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    background: #919191;
}
label {
    font-size: 18px;
    margin-left: 20px;
}
input[type="text"] {
    background: #919191;
    border: solid 4px;
    border-top-color: #3f3f3f;
    border-left-color: #3f3f3f;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    font-family: MC;
    font-size: 18px;
    outline: none;
}
img {
    image-rendering: pixelated;
    pointer-events: none;
}

/*Element styles*/
body {
    margin: 0;
    background: #c6c6c6;
    font-family: MC;
}
header {
    height: 64px;
    width: 100%;
    background: #3f3f3f;
    display: flex;
}
main {
    display: flex;
    min-height: calc(100vh - 64px);
}
.left {
    width: 60%;
    min-width: 635px;
    height: 100vh;
    /*height: calc(100vh - 64px);*/
    display: flex;
    flex-direction: column;
    
    @media only screen and (max-width: 650px) {
        width: 100%;
        min-width: 0;
    }
}
.right {
    width: 40%;
    border-left: solid #3f3f3f 2px;
    @media only screen and (max-width: 650px) {
        width: 0;
        display: none;
    }
}
#itemsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, 64px);
    padding: 0 20px;
    overflow-y: auto;

    @media only screen and (max-width: 650px) {
        width: 100vw;
        min-width: none;
      }
}
.menuTab  {
    margin: 4px 0 0 4px;
    height: 56px;
    width: 56px;
    border-radius: 8px 8px 0 0;
    border-top: solid 4px #f0f0f0;
    border-left: solid 4px #f0f0f0;
    border-right: solid 4px #595959;
    border-bottom: none;
    background-color: #8b8b8b;
    background-size: 44px;
    background-repeat: no-repeat;
    background-position: 50%;  
}
.menuTab.active {
    background-color: #c6c6c6
}
#menus {
    margin-bottom: 30px;
    margin-top: 40px;
}

.craftingMenu {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

#craftingGrid {
    display: grid;
    grid-template-rows: 58px 58px 58px;
    grid-template-columns: 58px 58px 58px;
}
#craftingReset {
    position: absolute;
    left: -7px;
    top: 90px;
}
#craftingOutputAmount {
    text-align: right;
    font-size: 24px;
    color: #ddd;
    text-shadow: 2px 2px 1px black;
    display: block;
    position: relative;
    top: 26px;
    left: 1px;
}

.furnaceInputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}
.furnaceFire {
    width: 46px;
    height: 46px;
    margin: 6px 0;
}
#furnaceFuelSlot {
    background-image: url(data/items_atlas.webp);
    background-size: calc(50/64*2574px);
    background-position: -622px -775px;
}
#furnaceFuelSlot:hover {
    background-color: #8b8b8b;
}

.smithingInputs {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: calc(58px * 3);
}
.smithingInputs > .itemBoxBorder:first-child {
    background-image: url(images/smithingBG.png);
    background-size: contain;
    image-rendering: pixelated;
    background-repeat: no-repeat;
}

#brewingMenu > img {
    position: absolute;
    height: 190px;
    image-rendering: pixelated;
}

.brewingOutputs {
    height: calc(58px * 3);
}
.brewingOutputs > div {
    width: 58px; 
    height: 58px;
    position: relative;
}

#yt-subwaysurfers {
    display: block;
    width: 95%;
    aspect-ratio: 16 / 9;
    margin: 30px auto;
    pointer-events: none;
    position: sticky;
    top: 30px;
}