@font-face {
    font-family:'Minecraftia';
    src: url('./../fonts/F77MinecraftRegular-0VYv.ttf');
}

body {
    font-family:'Minecraftia', sans-serif;
    -webkit-font-smoothing: never;
    font-smooth: never;
    font-kerning: none;
    image-rendering: pixelated;
    text-rendering: geometricPrecision;
    font-size: 16px;
    margin: 0px;
    line-height: 22px;
    color: white;
    background-color: #212121;
    word-break: break-word;
    height: 100vh;
    min-width: 800px;
    overflow-y: hidden;
    overflow-x: auto;
}

.text-small
{
    font-size: 8px;
    line-height: 8px;
    word-spacing: 1px;
}

button {
    font-family: 'Minecraftia', sans-serif;
    font-size: 16px;
    line-height: 22px;
    border: 2px solid;
    border-bottom-width: 4px;
    border-color: #A8A8A8 #565656 #565656 #A8A8A8;
    background-color: #727272;
    color: white;
    text-shadow: 2px 2px #342C34;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 2px black;
}

button:hover {
    box-shadow: 0 0 0 2px white;
}

.icon-button {
    border: none;
    border-image: none;
    background-color: transparent;
    box-shadow: none;
}

.icon-button:hover {
    border:none;
    border-image: none;
    background-color: transparent;
    box-shadow: none;
}

input {
    font-family:'Minecraftia', sans-serif;
    background-color: #8B8B8B;
    font-size: 16px;
    line-height: 16px;
    color: white;
    text-shadow: 2px 2px #342C34;
    pointer-events: all;
    border-style: solid;
    border-width: 2px;
    border-color: #373737 #ffffff #ffffff #373737;
    margin: 2px;
    height: 16;
}

input:focus {
    outline: none;
}

.hgroup
{
    display: flex;
    width: 100%;
    align-items: center; 
}

.vgroup
{
    display: flex;
    height: 100%;
    align-items: center; 
    flex-direction: column;
}

input::placeholder {
    color:#B3B3B3;
}

.panel {
    background-color: #C6C6C6;
    position:absolute;
    color: #3F3F3F;
    border: 4px solid;
    border-color: #ffffff #555555 #555555 #ffffff;
    border-radius: 4px;
    box-shadow: 0 0 0 2px black;
}

#confirm-dialog {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

#confirm-dialog button {
    min-width: 100px;
}

.icon-grid
{
    position: relative;
    width: var(--grid-pixel-width);
    height: var(--grid-pixel-height);
    gap: 0px;
    background-size: 36px;
    background-image: url("./../images/Slot.png");
}

.item-icon-grid {
    position: absolute;
    left: var(--grid-x);
    top: var(--grid-y);
}

.icon {
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;

    background-image: url('./../../data/atlas.webp');
    background-position: var(--pos-x) var(--pos-y);
}

item-icon {
    width: 32px;
    height: 32px;
    position: relative;
    background-repeat: no-repeat;
    pointer-events: auto;
    background-image: url('./../../data/atlas.webp');
    background-position: var(--pos-x) var(--pos-y);
}

item-icon::after {
    content: attr(data-amount);
    position: absolute;
    bottom: -6px;
    right: 1px;
    font-size: 8px;
    text-shadow: 1px 1px #342C34;
    color: white;
    pointer-events: none;
    white-space: nowrap;
}

.probability
{
    position: absolute;
    top: -5px;
    right: 1px;
    font-size: 8px;
    color: #FFD700;
    text-shadow: 1px 1px #342C34;
    pointer-events: none;
}

p {
    margin: 0.5em 0;
}

#panels
{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    z-index: 1000;
    background-color: #000000B0;
    visibility: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

h2 {
    font-weight:normal;
    font-size: 24px;
}

#panels:has(> :not(.hidden)) {
    visibility: visible;
    pointer-events: auto;
}

#loading {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 100px;
    max-width: 600px;
}

.scrollbar-measure {
	width: 100px;
	height: 100px;
	overflow: scroll;
	position: absolute;
	top: -9999px;
}

h1
{
    font-weight:normal;
    font-size:64px;
}

.scroll-area
{
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

.hidden
{
    display: none !important;
}

a {
    color: #1E90FF;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

a:hover {
    color: #FFD700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}