@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

@font-face {
    font-family: 'Minecraft Ten';
    src: url('fonts/MinecraftTen-VGORe.ttf') format('truetype');
}

@font-face {
    font-family: 'Minecraft';
    src: url('fonts/MinecraftRegular-Bmg3.otf') format('opentype');
}

:root {
    --green-1: #51a435;
    --green-2: #3c8427;
    --green-3: #2a631c;
    --secondary-color: #5e5e5e;
    --bg-color: #2b2b2b;
    --bg-color-alt: #3c3c3c;
    --box-bg-color: #1e1e1e;
    --text-color: #f0f0f0;
    --border-color: #444;
    --cursor-default: url('./cursors/diamond-sword-cursor.png');
    --cursor-button: url('./cursors/diamond-sword-pointer.png');
    /*--cursor-text: url('./cursors/diamond-sword-text.png'), text;*/
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: Minecraft, sans-serif;
    font-size: 16px;
    cursor: var(--cursor-default), auto;
}

h1, h2, h3 {
    color: var(--green-1);
    font-family: "Minecraft Ten", sans-serif;
}

input, button {
    font-family: Minecraft, sans-serif;
    font-size: 1rem;
    background-color: var(--bg-color-alt);
    color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 0;
    outline: none;
}

input:focus {
    border-color: var(--green-1);
}

button {
    background-color: var(--secondary-color);
    color: white;
    transition: background-color 0.2s, border 0.2s;
    padding: 0.5rem 1rem;
}

button:hover {
    background-color: var(--green-2);
    border-color: var(--green-1);
    color: black;
}

button, a, input[type="button"], input[type="submit"] {
    cursor: var(--cursor-button), pointer;
}

.tip {
    font-size: 0.9rem;
    color: #a8a8a8;
    margin-top: 1rem;
}

footer {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background-color: #111111;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.main-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5rem 5rem;
}

.box-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section {
    margin-top: 3rem;
    padding: 1rem 2rem;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 2px 2px 0 #111;
}

.coords-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    gap: 0.5rem;
    background-color: var(--box-bg-color);
    border: 2px solid var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 2px 2px 0 #000;
}

.coords-box label {
    display: inline-block;
    width: fit-content;
    text-align: right;
    margin-right: 0.5rem;
}

.coords-box input {
    width: 100px;
}

.coords-box h3 {
    margin-bottom: 1rem;
}

.result {
    font-family: Consolas, sans-serif;
    font-size: 1.25rem;
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    /*border: 2px solid var(--secondary-color);*/
    /*background-color: var(--box-bg-color);*/
    /*box-shadow: 2px 2px 0 #000;*/
    color: var(--green-1);
}

.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}