@font-face {
    font-family: 'Neuropol';
    src: url('./NEUROPOL.ttf');
}

body {
    margin: 0;
    font-family: 'Neuropol';
    font-size: 3vmin;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

canvas {
    max-width: 100%;
    max-height: 100vh;
}

h1 {
    margin: 0;
    font-weight: normal;
}

p {
    margin: 0;
    color: #FFFFFF;
}

div {
    color: #FFFFFF;
}

#overlay, #ingameOverlay, #mainMenu, #loadingOverlay, #settingsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#ingameOverlay {
    background-color: unset;
}

#flightSpeedMultiplierLabel {
    position: fixed;
    top: 2vmin;
    left: 2vmin;
    font-size: 2vmin;
}

#FPSCounter {
    position: fixed;
    top: 2vmin;
    right: 2vmin;
    font-size: 2vmin;
}

#hotbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: center;
}

#hotbar > img {
    border: 0.3vw solid #000000;
    image-rendering: pixelated;
    width: 3vw;
    height: 3vw;
    margin: 0 -0.15vw;
}

button, .button {
    display: block;
    font-family: inherit;
    font-size: inherit;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: 0.3vmin solid #FFFFFF;
    outline: none;
    cursor: pointer;
    padding: 1vmin 2vmin;
}

.button {
    height: calc(1em + 0.3vmin);
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.crosshair {
    width: 6vmin;
    height: 6vmin;
}

#worldInput, #settingsOverlay {
    display: none;
}

#mainMenu, #loadingOverlay, #settingsOverlay {
    background-color: #000000;
    flex-direction: column;
}

.menu {
    width: 80vmin;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.menu :nth-child(odd) {
    justify-self: start;
    align-self: center;
}

.menu :nth-child(even) {
    justify-self: end;
    align-self: center;
}

.menu > p, .menu > div, .menu > label, .menu > button {
    margin: 1vmin 0;
}

.range, .checkbox {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

hr {
    width: 100vmin;
    height: 0;
    border-width: 0.1vmin;
    border-style: solid;
    background-color: #FFFFFF;
    margin: 3vmin 0;
}

/* Input type range */
input[type=range] {
    -webkit-appearance: none;
    width: 60%;
    margin-right: 2vmin;
    margin-left: 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 60%;
    height: 2.7vmin;
    cursor: pointer;
    background: #000000;
    border: 0.2vmin solid #FFFFFF;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0.2vmin;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: none;
    border: none;
    height: 2.1vmin;
    width: 2.1vmin;
    border-radius: 0;
    background: #FFFFFF;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: 0.2vmin;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #000000;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 2.7vmin;
    cursor: pointer;
    background: #000000;
    border: 0.2vmin solid #FFFFFF;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0.2vmin;
}

input[type=range]::-moz-range-thumb {
    box-shadow: none;
    border: none;
    height: 2.1vmin;
    width: 2.1vmin;
    border-radius: 0;
    background: #FFFFFF;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: 0.2vmin;
}

/* Loading Bar */
#loadingOverlay {
    display: none;
}

.loadingBarOutline {
    width: 80vmin;
    height: 5vmin;
    border: 0.3vmin solid #FFFFFF;
    padding: 0.3vmin;
    margin-top: 5vmin;
    margin-bottom: 5vmin;
}

#loadingBar {
    height: 100%;
    width: 0%;
    background-color: #FFFFFF;
}

/* Settings menu */
.button-top-left {
    position: fixed;
    left: 3vmin;
    top: 3vmin;
}

.button-bottom-left {
    position: fixed;
    left: 3vmin;
    bottom: 3vmin;
}

/* Checkbox */
.checkbox-container {
    cursor: pointer;
    display: block;
    width: 2.3vmin;
    height: 2.3vmin;
    border: 0.2vmin solid #FFFFFF;
    margin-right: 2vmin;
}

.checkbox-container.checked {
    background-color: #FFFFFF;
}

.checkbox-container input {
    display: none;
}