@font-face {
    font-family: visitor;
    src: url(./assets/fonts/visitor2.ttf);
}

@font-face {
    font-family: minecraftia;
    src: url('./assets/fonts/RopaSans-Regular.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    cursor: default;
    font-family: 'visitor', 'Ubuntu Mono', Arial;
    font-weight: 400;
    font-size: 18px;
    color: #bbbbbb;
    padding: 0;
    margin: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #0a0a0a;
}

h1 { color: #fff; }

#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 8px;
    text-align: center;
}

#start-screen h1 { font-size: 34px; margin-bottom: 6px; }

#start-screen .group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#start-screen label {
    display: inline-block;
    width: 120px;
    text-align: right;
    color: #fff;
}

#start-screen input,
#start-screen select {
    background: #0a0a0a;
    border: 1px #4d5255 solid;
    padding: 2px 5px;
    margin: 1px;
    font-size: 18px;
    width: 198px;
    height: 26px;
    color: #fff;
}

#start-screen .button {
    color: #0a0a0a;
    text-decoration: none;
    display: inline-block;
    width: 210px;
    height: 40px;
    line-height: 40px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 18px;
}

#start-screen .hint {
    margin-top: 16px;
    max-width: 420px;
    font-family: 'minecraftia', Arial;
    font-size: 15px;
    line-height: 20px;
    color: #888;
}

#game {
    position: fixed;
    inset: 0;
    font-family: 'visitor', 'Ubuntu Mono', Arial;
    font-weight: 400;
    color: #fff;
    padding: 0;
    margin: 0;
    background-color: #000;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

.message {
    position: absolute;
    display: none;
    top: 30px;
    left: 5px;
    background-color: yellow;
    color: red;
    padding: 2px 5px;
    z-index: 5;
}

.menu.top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    line-height: 32px;
    background-color: rgba(10, 10, 10, 0.75);
    border-bottom: 1px #4d5255 solid;
    padding: 0 10px;
    z-index: 4;
}

.menu.top a {
    color: #8cf;
    cursor: pointer;
    margin: 0 4px;
}

.menu.top a.active {
    color: #fff;
    text-decoration: underline;
}

.menu.top img {
    vertical-align: middle;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay .modal {
    padding: 30px;
    text-align: center;
    width: 320px;
    max-width: 90vw;
    background: #111;
    border: 2px #4d5255 solid;
}

.overlay .modal .button {
    color: #0a0a0a;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    margin: 10px 0;
}

.overlay .modal h1 {
    font-size: 26px;
    color: #fff;
}

.craft .window {
    min-width: 300px;
    min-height: 150px;
    background: #111;
    border: 2px #4d5255 solid;
    padding: 10px;
}

.craft .window .header {
    background: #222;
    color: #fff;
    padding: 4px 8px;
    cursor: move;
}
